Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 200048 - gnome-system-monitor-2.20.1 fails to compile with IconLookupFlags not declared
Summary: gnome-system-monitor-2.20.1 fails to compile with IconLookupFlags not declared
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-23 05:35 UTC by Mark D.
Modified: 2008-06-30 09:22 UTC (History)
2 users (show)

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


Attachments
compile log file (gnome-extra:gnome-system-monitor-2.20.1:20071123-053200.log,48.95 KB, text/plain)
2007-11-23 05:38 UTC, Mark D.
Details
emerge --info output (emerge_info.txt,3.30 KB, text/plain)
2007-11-23 05:39 UTC, Mark D.
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mark D. 2007-11-23 05:35:45 UTC
then mv -f ".deps/e_date.Tpo" ".deps/e_date.Po"; else rm -f ".deps/e_date.Tpo"; exit 1; fi
LC_ALL=C ../intltool-merge -s -u -c ../po/.intltool-merge-cache ../po gnome-system-monitor.schemas.in gnome-system-monitor.schemas
Generating and caching the translation database
iconthemewrapper.h:13: error: ‘Gtk::IconLookupFlags’ has not been declared
iconthemewrapper.cpp:10: error: ‘Gtk::IconLookupFlags’ has not been declared
iconthemewrapper.cpp: In member function ‘Glib::RefPtr<Gdk::Pixbuf> procman::IconThemeWrapper::load_icon(const Glib::ustring&, int, int) const’:
iconthemewrapper.cpp:14: error: ‘Gtk::IconTheme’ has not been declared
iconthemewrapper.cpp:16: error: expected type-specifier
iconthemewrapper.cpp:16: error: expected unqualified-id before ‘&’ token
iconthemewrapper.cpp:16: error: expected `)' before ‘&’ token
iconthemewrapper.cpp:16: error: expected `{' before ‘&’ token
iconthemewrapper.cpp:16: error: ‘error’ was not declared in this scope
iconthemewrapper.cpp:16: error: expected `;' before ‘)’ token
make[2]: *** [iconthemewrapper.o] Error 1
make[2]: *** Waiting for unfinished jobs....
Merging translations into gnome-system-monitor.schemas.
make[2]: Leaving directory `/var/tmp/portage/gnome-extra/gnome-system-monitor-2.20.1/work/gnome-system-monitor-2.20.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/gnome-extra/gnome-system-monitor-2.20.1/work/gnome-system-monitor-2.20.1'
make: *** [all] Error 2
 * 
 * ERROR: gnome-extra/gnome-system-monitor-2.20.1 failed.
 * Call stack:
 *       ebuild.sh, line 1701:  Called dyn_compile
 *       ebuild.sh, line 1039:  Called qa_call 'src_compile'
 *       ebuild.sh, line   44:  Called src_compile
 *       ebuild.sh, line 1383:  Called gnome2_src_compile
 *   gnome2.eclass, line   71:  Called die
 * The specific snippet of code:
 *      emake || die "compile failure"
 *  The die message:
 *   compile failure
 *
Comment 1 Mark D. 2007-11-23 05:38:44 UTC
Created attachment 136733 [details]
compile log file
Comment 2 Mark D. 2007-11-23 05:39:05 UTC
Created attachment 136734 [details]
emerge --info output
Comment 3 Daniel Gryniewicz (RETIRED) gentoo-dev 2007-11-26 03:59:49 UTC
Which version of gtk+ do you have installed?
Comment 4 Alexandre Lima 2007-11-26 17:20:45 UTC
2.12.1-r2 for me
Comment 5 krims0n 2007-11-26 21:05:07 UTC
Having the same issue on AMD64 as well.

x11-libs/gtk+-2.12.1-r2
Comment 6 Mark D. 2007-11-27 06:51:16 UTC
gtk+-2.12.1-r2
Comment 7 Daniel Gryniewicz (RETIRED) gentoo-dev 2007-11-27 18:45:53 UTC
Oh wow.  I completely missed the C++ part...

What version of gtkmm do you guys have?
Comment 8 Mark D. 2007-11-27 20:13:14 UTC
gtkmm-2.2.12
and
gtkmm-2.8.3
Comment 9 krims0n 2007-11-27 20:15:35 UTC
gtkmm-2.8.3 for me.
Comment 10 Mark D. 2007-11-27 20:48:05 UTC
I upgraded gtkmm to 2.12.1 and gnome-system-monitor emerged successfully.
Comment 11 krims0n 2007-11-27 21:15:38 UTC
That worked for me too.
Comment 12 Alexandre Lima 2007-11-28 18:23:40 UTC
yes, same story. Thanks for the tip !
Comment 13 Gilles Dartiguelongue (RETIRED) gentoo-dev 2007-11-28 22:21:52 UTC
This failure is strange because iirc gtkmm-2.8 was in the 2.4 slot and here is the relevant documentation:

http://www.gtkmm.org/docs/gtkmm-2.4/docs/reference/html/group__gtkmmEnums.html#g6d0c2193613cfb97ab313746a5bacaa2
http://www.gtkmm.org/docs/gtkmm-2.4/docs/reference/html/classGtk_1_1IconTheme.html
Comment 14 Bill Skellenger 2007-12-21 13:41:48 UTC
I've got the same issue.

gtkmm versions installed:

gladstone wskellenger # equery list gtkmm
[ Searching for package 'gtkmm' in all categories among: ]
 * installed packages
[I--] [  ] dev-cpp/gtkmm-1.2.9-r2 (1.2)
[I--] [M ] dev-cpp/gtkmm-2.2.8 (2)
[I--] [M ] dev-cpp/gtkmm-2.8.1 (2.4)

Forum post suggests icontheme.h is the culprit:

http://forums.gentoo.org/viewtopic-p-4606091.html?sid=505e824d0b971c747797334da759170c

I have this file, but in a different directory:

gladstone gtkmm-2.4 # locate icontheme.h
/usr/kde/3.4/include/kicontheme.h
/usr/kde/3.5/include/kicontheme.h
/usr/include/gtkmm-2.4/gtkmm/icontheme.h
/usr/include/gtk-2.0/gtk/gtkicontheme.h

We can see that it's expected in a different location from the last compile error:

if i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -DPROCMAN_DATADIR=\""/usr/share/procman/"\" -DGNOMELOCALEDIR=\""/usr/share/locale"\" -DDATADIR=\""/usr/share"\" -DORBIT2=1 -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gconf/2 -I/usr/include/orbit-2.0 -I/usr/include/libgtop-2.0 -I/usr/include/libwnck-1.0 -I/usr/include/gtk-2.0 -I/usr/include/startup-notification-1.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/gtkmm-2.4 -I/usr/lib/gtkmm-2.4/include -I/usr/include/glibmm-2.4 -I/usr/lib/glibmm-2.4/include -I/usr/include/gdkmm-2.4 -I/usr/lib/gdkmm-2.4/include -I/usr/include/pangomm-1.4 -I/usr/include/atkmm-1.6 -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I/usr/include/libxml2     -Wall -std=c++98 -O3 -march=pentium3 -fprefetch-loop-arrays -fomit-frame-pointer -pipe -MT iconthemewrapper.o -MD -MP -MF ".deps/iconthemewrapper.Tpo" -c -o iconthemewrapper.o iconthemewrapper.cpp; \
        then mv -f ".deps/iconthemewrapper.Tpo" ".deps/iconthemewrapper.Po"; else rm -f ".deps/iconthemewrapper.Tpo"; exit 1; fi
iconthemewrapper.h:13: error: 'Gtk::IconLookupFlags' has not been declared
iconthemewrapper.cpp:10: error: 'Gtk::IconLookupFlags' has not been declared
iconthemewrapper.cpp: In member function 'Glib::RefPtr<Gdk::Pixbuf> procman::IconThemeWrapper::load_icon(const Glib::ustring&, int, int) const':

From above it looks like it wants to find gtkmm here:

-I/usr/include/gtkmm-2.4 -I/usr/lib/gtkmm-2.4/include

Comment 15 Rémi Cardona (RETIRED) gentoo-dev 2008-05-28 15:46:02 UTC
Ping all,

Is this still an issue with newer versions of gtkmm and g-s-m 2.20.2 ? If so, don't hesitate to reopen that bug with a full build.log.

Thanks
Comment 16 Mark D. 2008-06-11 05:43:09 UTC
No longer an issue for gnome-extra/gnome-system-monitor-2.20.2
Comment 17 Martin von Gagern 2008-06-30 08:05:52 UTC
Still an issue with gnome-system-monitor-2.20.2 and gtkmm-2.8.3 here.
Yes, I know that gtkmm version isn't in portage any longer.
Still, maybe a dependency in g-s-m could have helped portage to get the order right in a world update.
Comment 18 Gilles Dartiguelongue (RETIRED) gentoo-dev 2008-06-30 08:54:13 UTC
what happens if you reemerge gtkmm (even the version you have) ?
Comment 19 Martin von Gagern 2008-06-30 09:22:25 UTC
(In reply to comment #18)
> what happens if you reemerge gtkmm (even the version you have) ?

I can't remerge gtkmm-2.8.3 as it is no longer in portage.
After upgrading to 2.12.1 g-s-m emerged all right.