Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 435008 - sys-block/gparted-0.13.1 with <dev-cpp/glibmm-2.32.0 - In file included from Device.cc:19: /usr/include/glib-2.0/glib/gtree.h:28:2: error: #error "Only <glib.h> can be included directly."
Summary: sys-block/gparted-0.13.1 with <dev-cpp/glibmm-2.32.0 - In file included from ...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gilles Dartiguelongue (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-14 11:22 UTC by Tomas Psika
Modified: 2012-09-17 07:02 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Psika 2012-09-14 11:22:04 UTC
system:
  =dev-cpp/glibmm-2.24.2-r1 (rather old) -> should upgrade in any case
  =dev-cpp/gtkmm-2.24.2 - newest :(2.4)
  =dev-libs/glib-2.32.4 - newest :(2)

sys-block/gparted-0.13.1 (and maybe older versions!) fails to compile:
===
In file included from /usr/include/glibmm-2.4/glibmm/balancedtree.h:29:0,
                 from /usr/include/glibmm-2.4/glibmm.h:83,
                 from /usr/include/gtkmm-2.4/gtkmm/label.h:7,
                 from ../include/../include/../include/Utils.h:30,
                 from ../include/../include/Partition.h:27,
                 from ../include/Device.h:22,
                 from Device.cc:19:
/usr/include/glib-2.0/glib/gtree.h:28:2: error: #error "Only <glib.h> can be included directly."
===

Must upgrade glibmm. But only emerge >=dev-cpp/glibmm-2.32.0 works because of this compile errors on older versions (eg. 2.28.2 and 2.30.1):

===
In file included from varianttype.cc:26:0:
/usr/include/glib-2.0/glib/gvarianttype.h:24:2: error: #error "Only <glib.h> can be included directly."
===

Finally after successfull upgrade to >=dev-cpp/glibmm-2.32.1 GParted emerges fine. This dependency is not specified anywhere in portage.

See commit c589a3db61a7d256db23553808e0f63126787ce1 in glibmm library which solved the issue:

  http://git.gnome.org/browse/glibmm/commit/glib/src/varianttype.ccg?id=c589a3db61a7d256db23553808e0f63126787ce1

# (glibmm clone): git tag --contains c589a3db61a7d256db23553808e0f63126787ce1
2.31.0
2.31.0.1
2.31.0.2
2.31.16
...
2.33.2
2.33.3
2.33.4



Reproducible: Always
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2012-09-16 14:58:41 UTC
I guess this is invalid - you should simply upgrade (all) your packages to the unstable branch.
Comment 2 Pacho Ramos gentoo-dev 2012-09-17 07:02:08 UTC
Yes, you need to update glibmm if you want latest glib