emerge --info: ------------------------------------------------------------------ Portage 2.0.54 (default-linux/x86/2005.1, gcc-3.4.5, glibc-2.3.5-r2, 2.6.15-gentoo-r1 i686) ================================================================= System uname: 2.6.15-gentoo-r1 i686 Mobile Intel(R) Pentium(R) 4 CPU 3.06GHz Gentoo Base System version 1.6.14 ccache version 2.3 [enabled] dev-lang/python: 2.3.5-r2, 2.4.2 sys-apps/sandbox: 1.2.12 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.6-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /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/splash /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache 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" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X aac acpi alsa amd applet arts asf audiofile automount avi bash-completion bitmap-fonts bzip2 cardbus chroot crypt crypto_libgcrypt crypto_openssl cups curl curlwrappers dri dvd eds emboss encode esd exif expat fam fat fbcon fbsplash font-server fontconfig foomaticdb fortran gdbm gif glut gmp gnome gnome-print gpm gstreamer gtk gtk2 gtkhtml gvim gzip idn ieee1394 imagemagick imlib ipv6 java jpeg kde lcms libg++ libwww mad mikmod mng motif mozilla mp3 mpeg mpeg2 mplayer ncurses nls ntfs ogg oggvorbis opengl openssh openssl oss pam pcre pdflib perl png python qt quicktime readline real samba screen sdl spell splashutils sse sse2 ssl symlink tcltk tcpd tiff truetype truetype-fonts type1-fonts udev urandom usb video_cards_ati vim vim-with-x vnc vorbis wifi wma x11vnc xml xml2 xmms xv xvid zlib video_cards_radeon userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTDIR_OVERLAY ------------------------------------------------------------------ I was going to compile gkismet and it should have... [ebuild NS ] gnome-base/gnome-panel-1.4.2-r2 and the compilation of gnome-panel failed... the end of compilation: ------------------------------------------------------------------ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I. -I../intl -I../intl -I../panel -DGNOMELOCALEDIR=\""/var/tmp/portage/gnome-panel-1.4.2-r2/image//usr/share/locale"\" -DGNOME_DATADIR=\""/var/tmp/portage/gnome-panel-1.4.2-r2/image//usr/share"\" -DGLADEDIR=\""/var/tmp/portage/gnome-panel-1.4.2-r2/image//usr/share/gnome/panel"\" -DGLOBAL_CONFDIR=\""/var/tmp/portage/gnome-panel-1.4.2-r2/image//etc/gnome/panel-config"\" -I/var/tmp/portage/gnome-panel-1.4.2-r2/image//usr/include -I/usr/include/gnome-1.0 -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/orbit-1.0 -I/usr/include/gtk-1.2 -I/usr/include/libcapplet1 -I/usr/include/gnome-1.0 -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/orbit-1.0 -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/orbit-1.0 -I/usr/include/gnome-1.0 -I/usr/include/freetype2 -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/gdk-pixbuf-1.0 -I/usr/include/gnome-xml -I/usr/include/libglade-1.0 -I/usr/include/gnome-xml -I/usr/include/gdk-pixbuf-1.0 -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -march=pentium4 -O2 -pipe -fomit-frame-pointer -I/usr/include/gdk-pixbuf-1.0 -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -Wall -Wunused -c gwmh.c gwmh.c: In function `gwmh_init': gwmh.c:233: error: syntax error before string constant gwmh.c:233: warning: left-hand operand of comma expression has no effect gwmh.c:233: error: syntax error before ')' token gwmh.c: In function `get_typed_property_data': gwmh.c:393: error: syntax error before string constant gwmh.c:399: error: syntax error before string constant gwmh.c: In function `gwmh_desk_notifier_remove': gwmh.c:1589: error: syntax error before string constant gwmh.c:1589: warning: left-hand operand of comma expression has no effect gwmh.c:1589: error: syntax error before ')' token gwmh.c: In function `gwmh_task_notifier_remove': gwmh.c:1599: error: syntax error before string constant gwmh.c:1599: warning: left-hand operand of comma expression has no effect gwmh.c:1599: error: syntax error before ')' token gwmh.c: In function `gwmh_desk_notifier_remove_func': gwmh.c:1627: error: syntax error before string constant gwmh.c:1627: warning: left-hand operand of comma expression has no effect gwmh.c:1627: warning: left-hand operand of comma expression has no effect gwmh.c:1627: error: syntax error before ')' token gwmh.c: In function `gwmh_task_notifier_remove_func': gwmh.c:1646: error: syntax error before string constant gwmh.c:1646: warning: left-hand operand of comma expression has no effect gwmh.c:1646: warning: left-hand operand of comma expression has no effect gwmh.c:1646: error: syntax error before ')' token gwmh.c: In function `check_client': gwmh.c:2548: warning: dereferencing type-punned pointer will break strict-aliasing rules make[1]: *** [gwmh.o] Error 1 make[1]: Leaving directory `/var/tmp/portage/gnome-panel-1.4.2-r2/work/gnome-core-1.4.2/panel' make: *** [install-recursive] Error 1 make: Leaving directory `/var/tmp/portage/gnome-panel-1.4.2-r2/work/gnome-core-1.4.2/panel' ------------------------------------------------------------------
I'm also having the same problem. This is the error output: DGNOMELOCALEDIR=\""/var/tmp/portage/gnome-panel-1.4.2-r2/image//usr/share/locale"\" -DGNOME_DATADIR=\""/var/tmp/portage/gnome-panel-1.4.2-r2/image//usr/share"\" -DGLADEDIR=\""/var/tmp/portage/gnome-panel-1.4.2-r2/image//usr/share/gnome/panel"\" -DGLOBAL_CONFDIR=\""/var/tmp/portage/gnome-panel-1.4.2-r2/image//etc/gnome/panel-config"\" -I/var/tmp/portage/gnome-panel-1.4.2-r2/image//usr/include -I/usr/include/gnome-1.0 -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/orbit-1.0 -I/usr/include/gtk-1.2 -I/usr/include/libcapplet1 -I/usr/include/gnome-1.0 -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/orbit-1.0 -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/orbit-1.0 -I/usr/include/libglade-1.0 -I/usr/include/gnome-xml -I/usr/include/gdk-pixbuf-1.0 -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -march=athlon-tbird -O3 -pipe -I/usr/include/gdk-pixbuf-1.0 -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -Wall -Wunused -c gwmh.c gwmh.c: In function `gwmh_init': gwmh.c:233: error: syntax error before string constant gwmh.c:233: warning: left-hand operand of comma expression has no effect gwmh.c:233: error: syntax error before ')' token gwmh.c: In function `get_typed_property_data': gwmh.c:393: error: syntax error before string constant gwmh.c:399: error: syntax error before string constant gwmh.c: In function `gwmh_desk_notifier_remove': gwmh.c:1589: error: syntax error before string constant gwmh.c:1589: warning: left-hand operand of comma expression has no effect gwmh.c:1589: error: syntax error before ')' token gwmh.c: In function `gwmh_task_notifier_remove': gwmh.c:1599: error: syntax error before string constant gwmh.c:1599: warning: left-hand operand of comma expression has no effect gwmh.c:1599: error: syntax error before ')' token gwmh.c: In function `gwmh_desk_notifier_remove_func': gwmh.c:1627: error: syntax error before string constant gwmh.c:1627: warning: left-hand operand of comma expression has no effect gwmh.c:1627: warning: left-hand operand of comma expression has no effect gwmh.c:1627: error: syntax error before ')' token gwmh.c: In function `gwmh_task_notifier_remove_func': gwmh.c:1646: error: syntax error before string constant gwmh.c:1646: warning: left-hand operand of comma expression has no effect gwmh.c:1646: warning: left-hand operand of comma expression has no effect gwmh.c:1646: error: syntax error before ')' token gwmh.c: In function `check_client': gwmh.c:2548: warning: dereferencing type-punned pointer will break strict-aliasing rules make[1]: *** [gwmh.o] Error 1 make[1]: Leaving directory `/var/tmp/portage/gnome-panel-1.4.2-r2/work/gnome-core-1.4.2/panel' make: *** [install-recursive] Error 1 make: Leaving directory `/var/tmp/portage/gnome-panel-1.4.2-r2/work/gnome-core-1.4.2/panel' Here is the emerge --info: Portage 2203-svn (default-linux/x86/2006.0, gcc-3.4.5, glibc-2.3.6-r3, 2.6.15.1 i686) ================================================================= System uname: 2.6.15.1 i686 AMD Athlon(tm) processor Gentoo Base System version 1.6.14 dev-lang/python: 2.4.2 dev-python/pycrypto: 2.0-r1 dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=athlon-tbird -O3 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.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/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-tbird -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache digest distlocks sandbox sfperms strict userpriv usersandbox" GENTOO_MIRRORS="ftp://ftp.rhnet.is/pub/gentoo http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo" LC_ALL="is_IS.UTF-8" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/ipl_ebuilds" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 3dnow 3dnowext 3ds S3TC X a52 aac acpi aim alsa amarok apache2 apm applet async audacious audiofile avi bash-completion bdf bindist bitmap-fonts bittorrent blender-game bzip2 cairo ccache cdda cddb cdinstall cdparanoia cdr cdrom chroot cli cpudetection crypt css cups curl dbus devmap dga dnd dri dts dvd dvdread emboss encode escreen exif expat exscalibar extensions fam ffmpeg firefox flac fmod foomaticdb fortran gd gdbm gecko-sdk gif glut gmail gmailtimestamps gmp gnome gpm gstreamer gtk gtk2 guile hal idn imagemagick imap imlib imlib2 ipod isdnlog jabber javascript joystick jpeg jpeg2k kde kdeenablefinal lcms libg++ libwww mad maildir mhash mikmod mmx mng mono motif mp3 mpeg mplayer msn music musicbrainz mysql nagios-dns nagios-ntp nagios-ping nagios-ssh ncurses net network nls nocd nowin nptl nsplugin nvidia ogg openal opengl oss pam pcre pdf pdflib perl physfs png pnp pppd python qemu-fast qt quicktime readline real reflection reiserfs remix remote samba savedconfig sdl session smartcard softmmu sounds speech speex spell spl sqlite sse ssl stencil-buffer svg tcltk tcpd tga theora threads tiff truetype truetype-fonts trusted type1-fonts udev unicode urandom usb utf8 vfat visualization voice vorbis win32codecs wordperfect wv x264 xanim xface xml xml2 xorg xpm xprint xrandr xscreensaver xv xvid xvmc yahoo zeroconf zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, INSTALL_MASK, LANG, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTAGE_RSYNC_OPTS I hope someone takes this bug seriously and takes a look at it.
I found a way to get this to work on my system. In the source dir there is a subdir called panel. In panel are two .h files gstc.h and gwmh.h with lines like: -------------start------------------------------------------ /* FIXME: this works around old glib versions (pre 1.2.2) */ #undef G_GNUC_FUNCTION #undef G_GNUC_PRETTY_FUNCTION #ifdef __GNUC__ #define G_GNUC_FUNCTION __FUNCTION__ #define G_GNUC_PRETTY_FUNCTION __PRETTY_FUNCTION__ #else /* !__GNUC__ */ #define G_GNUC_FUNCTION "" #define G_GNUC_PRETTY_FUNCTION "" #endif /* !__GNUC__ */ -----------------------end--------------------------------- If I comment out the ifdef GNUC parts, it compiles cleanly. The files then look like: /* FIXME: this works around old glib versions (pre 1.2.2) */ #undef G_GNUC_FUNCTION #undef G_GNUC_PRETTY_FUNCTION //#ifdef __GNUC__ //#define G_GNUC_FUNCTION __FUNCTION__ //#define G_GNUC_PRETTY_FUNCTION __PRETTY_FUNCTION__ //#else /* !__GNUC__ */ #define G_GNUC_FUNCTION "" #define G_GNUC_PRETTY_FUNCTION "" //#endif /* !__GNUC__ */ I haven't learned how to create patches yet :(
Gnome folks, Does the change in comment 2 work for you? (this blocks being unable to unmask dev-perl/POE because of a dep on gnome-panel-1*) Thanks, ~mcummings
*** Bug 138211 has been marked as a duplicate of this bug. ***
The bug still exists in gnome-panel-1.4.2-r2. The "patch" in comment #2 fixed the problem for me. emerge --info Portage 2.1.2_pre2-r6 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.4-r4, 2.6.17-gentoo-r8-baby_tux i686) ================================================================= System uname: 2.6.17-gentoo-r8-baby_tux i686 AMD Athlon(tm) XP 3200+ Gentoo Base System version 1.12.5 Last Sync: Sun, 08 Oct 2006 05:50:01 +0000 ccache version 2.4 [disabled] app-admin/eselect-compiler: [Not Present] dev-java/java-config: 1.3.7, 2.0.30 dev-lang/python: 2.2.3-r6, 2.3.5-r2, 2.4.3-r4 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.4-r6 dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.60 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.17 sys-devel/gcc-config: 1.3.13-r4 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-mtune=athlon-xp -O3 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/fax /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/spool/fax/etc" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-mtune=athlon-xp -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks fixpackages metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo" LANG="fr_CA.utf8" LC_ALL="fr_CA.utf8" LINGUAS="fr en" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.ca.gentoo.org/gentoo-portage" USE="x86 16bit 3dnow 3dnowext 3ds 7zip X a52 aac abook accessibility acpi activefilter ada adsl aim aimextras alsa amd apache2 apm arts berkdb bitmap-fonts bonjour cdda cddb cdinstall cdparanoia cdr cdrom cg cgi chroot cjk cli courier crypt css ctype cups dba divx4linux dlloader doc dri dv dvd dvdr eds elibc_glibc emacs emacs-w3 emboss encode esd fat fbdev fbsplash ffmpeg firefox flac foomaticdb fortran ftp fuse gaim gd gdbm gif gimp gmail gmailtimestamps gnome gphoto2 gpm gs gstreamer gtk gtk2 gtkhtml hal html id3 ieee1394 imap imlib input_devices_evdev input_devices_joystick input_devices_keyboard input_devices_mouse ipv6 irc irssi isdnlog jabber joystick jpeg kde kernel_linux ldap libg++ libwww linguas_en linguas_fr lirc live logrotate lzo lzw mad mail maildir maildrop mailwrapper math md5sum mikmod mime mjpeg mmx motif mozcalendar mp3 mp4 mp4live mpe mpeg mpeg2 mplayer msn musepack music mysql mysqli mythtv ncurses net network nfs nls nptl nptlonly nsplugin ntfs nvidia objc odbc ogg opengl openssl oscar oss pam pcre pdf pdfkit pdo-external pear perl php player plugin pmu png pop postfix ppds pppd print python qmail qt3 qt4 quicktime quotas rar readline real realms reflection reiser4 reiserfs remix remote rhythmbox rss rtc samba sasl sblive scanner screen sdk sdl sendfile sendmail serial server session sftp silc simplexml smtp soap sockets socks5 sounds sox speech speedo speex spell spl sql sse ssl tcpd tga truetype truetype-fonts type1-fonts udev unicode userland_GNU userlocales utf8 v4l v4l2 vcd vda vhosts video_cards_fbdev video_cards_nvidia video_cards_vesa vim vim-pager vim-with-x vnc vorbis win32codecs wma wma123 wmf x11vnc xchat xchatdccserver xemacs xfs xinerama xmail xml xmms xorg xscreensaver xsl xv xvid yahoo zip zlib" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 100442 [details, diff] gnome-panel-1.4.2-prettyfunction.diff This patch fixes the problem in a better way, IMHO; starting with GCC 3.4, __FUNCTION__ and __PRETTY_FUNCTION__ are not string literals anymore (that can be concatenated with other string literals), but variables. See http://gcc.gnu.org/onlinedocs/gcc-4.1.1/gcc/Function-Names.html#Function-Names for more details.
Created attachment 100444 [details, diff] gnome-panel-1.4.2-prettyfunction.diff Oops. The previous patch included the result of the <locale.h> sed substitution in the ebuild...
(In reply to comment #7) > Created an attachment (id=100444) [edit] > gnome-panel-1.4.2-prettyfunction.diff Compiled successfully with this patch. Thanks.
Marked for removal. Please migrate to gnome-2.x