Emerge of gnome-panel fails when compiling. This has been discussed in a forum thread: http://forums.gentoo.org/viewtopic-t-346797-highlight-gnomepanel+gmacros+h.html Reproducible: Always Steps to Reproduce: 1. emerge gnome-panel Actual Results: In file included from /usr/include/glib-2.0/glib/gmacros.h:36, from /usr/lib/glib-2.0/include/glibconfig.h:9, from /usr/include/glib-2.0/glib/gtypes.h:30, from /usr/include/glib-2.0/glib/galloca.h:30, from /usr/include/glib-2.0/glib.h:30, from /usr/include/libgnome-2.0/libgnome/gnome-program.h:34, from /usr/include/libgnomeui-2.0/libgnomeui/gnome-ui-init.h:31, from main.c:16: /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5-20050130/include/stddef.h:151: error: syntax error before "typedef" make[3]: *** [main.o] Error 1 make[3]: *** Waiting for unfinished jobs.... make[3]: Leaving directory `/var/tmp/portage/gnome-panel-2.10.0/work/gnome-panel-2.10.0/gnome-panel' make[2]: *** [all] Error 2 make[2]: Leaving directory `/var/tmp/portage/gnome-panel-2.10.0/work/gnome-panel-2.10.0/gnome-panel' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/gnome-panel-2.10.0/work/gnome-panel-2.10.0' make: *** [all] Error 2 !!! ERROR: gnome-base/gnome-panel-2.10.0 failed. !!! Function src_compile, Line 51, Exitcode 2 !!! (no error message) !!! If you need support, post the topmost build error, NOT this status message.
please attach a full build log
no response from reporter
Created attachment 65294 [details] complete build log
complete build information supplied - apologies for the delay
could you also attach config.log and post emerge info. Thanks!
Created attachment 65408 [details] Log file from configure Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.3.5-20050130, glibc-2.3.5-r0, 2.6.11-gentoo-r9 i686) ================================================================= System uname: 2.6.11-gentoo-r9 i686 AMD Athlon(tm) Gentoo Base System version 1.6.13 dev-lang/python: 2.2.3-r5, 2.3.5 sys-apps/sandbox: 1.2.11 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=athlon-xp -O3 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/init.d /etc/sane.d /etc/terminfo /usr/X11R6/lib/X11/xkb /etc/env.d" CXXFLAGS="-march=athlon-xp -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="ftp://mirror.internode.on.net/pub/gentoo ftp://planetmirror.com.au/pub/gentoo http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://mirror.internode.on.net/gentoo-portage" USE="x86 X aac aalib alsa amd apache2 apm arts artworkextra avi bash-completion berkdb bitmap-fonts bluetooth bonobo bootsplash cdparanoia cdr crypt css cups curl dba directfb doc dvb eds emacs emboss encode esd evo fam fbcon flac foomaticdb fortran freetype gd gdbm gif gnome gpm gstreamer gtk gtk2 gtkhtml imagemagick imap imlib innodb ipv6 java jpeg junit kde libg++ libwww lirc mad maildir mikmod mmx motif mozilla mp3 mpeg mppe-mppc mysql mythtv nas ncurses nls odbc ogg oggvorbis opengl pam pdflib perl png postgres python qt qtmt quicktime radeon readline samba sdl slang snmp spell sse ssl svga tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts vorbis xine xinerama xml xml2 xmms xv yahoo zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Same issue here... ------------------- In file included from /usr/include/glib-2.0/glib/gmacros.h:36, from /usr/lib/glib-2.0/include/glibconfig.h:9, from /usr/include/glib-2.0/glib/gtypes.h:30, from /usr/include/glib-2.0/glib/galloca.h:30, from /usr/include/glib-2.0/glib.h:30, from /usr/include/libgnome-2.0/libgnome/gnome-program.h:34, from /usr/include/libgnomeui-2.0/libgnomeui/gnome-ui-init.h:31, from main.c:16: /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/include/stddef.h:151: error: syntax error before "typedef" make[3]: *** [main.o] Error 1 make[3]: Leaving directory `/var/tmp/portage/gnome-panel-2.10.2/work/gnome-panel-2.10.2/gnome-panel' make[2]: *** [all] Error 2 make[2]: Leaving directory `/var/tmp/portage/gnome-panel-2.10.2/work/gnome-panel-2.10.2/gnome-panel' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/gnome-panel-2.10.2/work/gnome-panel-2.10.2' make: *** [all] Error 2 !!! ERROR: gnome-base/gnome-panel-2.10.2 failed. !!! Function src_compile, Line 50, Exitcode 2 !!! (no error message) !!! If you need support, post the topmost build error, NOT this status message. bash-2.05b# ---------------------------- emerge info bash-2.05b# emerge info Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.3.2, glibc-2.3.2-r9, 2.6.11-gentoo-r4 i686) ================================================================= System uname: 2.6.11-gentoo-r4 i686 Pentium III (Coppermine) Gentoo Base System version 1.4.16 distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] dev-lang/python: 2.2.3-r5, 2.3.5 sys-apps/sandbox: 1.2.10 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 sys-devel/binutils: 2.14.90.0.7-r4 sys-devel/libtool: 1.4.3-r4 virtual/os-headers: 2.4.19-r1, 2.4.21-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O3 -march=pentium3 -fprefetch-loop-arrays -funroll-loops -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -march=pentium3 -fprefetch-loop-arrays -funroll-loops -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X alsa apm arts avi berkdb bitmap-fonts bonobo cdparanoia cdr crypt cups curl directfb doc eds emboss encode esd fam foomaticdb fortran gd gdbm gif gimpprint gnome gpm gstreamer gtk gtk2 gtkhtml guile imagemagick imlib ipv6 java jpeg kde ldap libg++ libwww mad mikmod motif mozilla mp3 mpeg mysql ncurses nls ogg oggvorbis opengl oss palm pam pda pdflib perl pilot png postgres ppds python qt quicktime quotes readline ruby samba sdl slang spell ssl svga tcpd tiff truetype truetype-fonts type1-fonts usb visualization vorbis xine xml xml2 xmms xprint xv zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS
Seems like it was an old(er) version of glib causing the problem. I emerged glib-2.6.5: ------------------- These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild U ] app-text/docbook-xml-dtd-4.1.2-r5 [4.1.2-r4] 73 kB [ebuild U ] dev-libs/glib-2.6.5 [2.6.2-r1] +doc -hardened -static 2,301 kB Total size of downloads: 2,375 kB bash-2.05b# Then had success with gnome-panel: -------------------------- >>> Regenerating /etc/ld.so.cache... >>> gnome-base/gnome-panel-2.10.2 merged.
After reading comment #8 from Bill Skellenger, i've upgraded my glib from 2.6.4 to 2.6.5 (the same target version has he has), but i still get the same error when compiling gnome-panel-2.10.2
After preprocessing gnome-panel/main.c i've noticed the problem was in gnome-ui-init.h (the G_BEGIN_DECLS macro didn't get expanded because of missing glib.h in include nesting), after emerging libgnomeui-2.10.2 gnome-panel-2.10.2 emerged without errors. The gnome-panel-2.10.2.ebuild contains RDEPEND >= gnome-base/libgnomeui-2.5.4, i think this is not correct because i had 2.6.1.1 installed and it didn't work. Hope this helps.
I had the exact same error. See comment #10: "after emerging libgnomeui-2.10.2 gnome-panel-2.10.2 emerged without errors." This worked for me, too.
this should be already fixed in 2.12.