as noted in the following forum posting...emerge of gnusound fails. http://forums.gentoo.org/viewtopic.php?p=1674441#1674441 Reproducible: Always Steps to Reproduce: 1.emerge -v media-sound/gnusound 2. 3. Actual Results: [...] gcc -Wall -I. -I.. -O3 -march=athlon -funroll-loops -fprefetch-loop-arrays -pipe -DGNOME_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -rdynamic -DORBIT2=1 -pthread -I/usr/include/libgnomeui-2.0 -I/usr/include/libgnome-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/gtk-2.0 -I/usr/include/libart-2.0 -I/usr/include/gconf/2 -I/usr/include/libbonoboui-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/orbit-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/bonobo-activation-2.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/libxml2 -I/usr/include/libglade-2.0 -O3 -fomit-frame-pointer -pthread -DLIBDIR="\"/usr/lib/gnusound\"" -DPIXMAPDIR="\"/usr/share/pixmaps\"" -DSYSCONFDIR="\"/etc\"" -DPREFIX="\"/usr\"" -DDATADIR="\"/usr/share\"" -c -o module.o module.c In file included from modutils.c:11: shell.h:197: error: syntax error before "GtkOptionMenu" shell.h:197: warning: no semicolon at end of struct or union shell.h:225: error: `mixer' redeclared as different kind of symbol mixer.h:32: error: previous declaration of `mixer' shell.h:232: error: syntax error before '}' token shell.h:232: warning: type defaults to `int' in declaration of `shell' shell.h:232: warning: data definition has no type or storage class shell.h:235: error: syntax error before '*' token shell.h:236: warning: type defaults to `int' in declaration of `shell_new' shell.h:236: warning: data definition has no type or storage class shell.h:239: error: syntax error before '*' token shell.h:242: error: syntax error before '*' token shell.h:246: error: syntax error before '*' token shell.h:250: error: syntax error before '*' token shell.h:254: error: syntax error before '*' token shell.h:261: error: syntax error before '*' token shell.h:264: error: syntax error before '*' token shell.h:269: error: syntax error before '*' token shell.h:272: error: syntax error before '*' token shell.h:275: error: syntax error before '*' token shell.h:280: error: syntax error before '*' token shell.h:284: error: syntax error before '*' token shell.h:288: error: syntax error before '*' token In file included from undo.h:11, from module.h:7, from modutils.c:12: action.h:65: error: syntax error before "shell" action.h:65: warning: no semicolon at end of struct or union action.h:79: error: syntax error before '}' token action.h:79: warning: type defaults to `int' in declaration of `action' action.h:79: warning: data definition has no type or storage class action.h:83: error: syntax error before "action" action.h:83: warning: no semicolon at end of struct or union action.h:84: warning: type defaults to `int' in declaration of `action_group' action.h:84: warning: data definition has no type or storage class action.h:88: error: syntax error before "action_group" action.h:88: warning: no semicolon at end of struct or union action.h:90: error: syntax error before '}' token action.h:90: warning: type defaults to `int' in declaration of `action_desc' action.h:90: warning: data definition has no type or storage class action.h:95: error: syntax error before "action_group" action.h:95: warning: no semicolon at end of struct or union action.h:97: error: syntax error before '}' token action.h:97: warning: type defaults to `int' in declaration of `action_result' action.h:97: warning: data definition has no type or storage class action.h:230: error: syntax error before '*' token action.h:232: error: syntax error before "shell" action.h:242: warning: type defaults to `int' in declaration of `action_new' action.h:242: warning: data definition has no type or storage class action.h:245: error: syntax error before '*' token action.h:246: warning: type defaults to `int' in declaration of `action_group_new' action.h:246: warning: data definition has no type or storage class action.h:248: error: syntax error before '*' token action.h:249: warning: type defaults to `int' in declaration of `action_group_new_empty' action.h:249: warning: data definition has no type or storage class action.h:251: error: syntax error before '*' token action.h:252: error: syntax error before '*' token action.h:253: warning: type defaults to `int' in declaration of `action_group_append' action.h:253: warning: data definition has no type or storage class action.h:255: error: syntax error before '*' token action.h:256: error: syntax error before '*' token action.h:261: warning: type defaults to `int' in declaration of `action_group_undo_create' action.h:261: warning: data definition has no type or storage class action.h:264: error: syntax error before '*' token action.h:267: error: syntax error before '*' token action.h:268: error: syntax error before '*' token action.h:268: warning: type defaults to `int' in declaration of `action_do' action.h:268: warning: data definition has no type or storage class action.h:271: error: syntax error before '*' token action.h:274: error: syntax error before '*' token action.h:277: error: syntax error before '*' token action.h:280: error: syntax error before '*' token action.h:285: error: syntax error before '*' token action.h:290: error: syntax error before '*' token action.h:293: error: syntax error before '*' token action.h:296: error: syntax error before '*' token In file included from module.h:7, from modutils.c:12: undo.h:15: error: syntax error before "action_group" In file included from modutils.c:12: module.h:103: error: syntax error before "shell" module.h:125: error: syntax error before '*' token module.h:126: error: syntax error before '*' token module.h:127: warning: type defaults to `int' in declaration of `module_execute' module.h:127: warning: data definition has no type or storage class In file included from modutils.c:14: gui.h:72: error: syntax error before "shell" gui.h:119: error: syntax error before '*' token modutils.c:42: error: syntax error before '*' token modutils.c: In function `mix': modutils.c:53: error: `target_offset' undeclared (first use in this function) modutils.c:53: error: (Each undeclared identifier is reported only once modutils.c:53: error: for each function it appears in.) modutils.c:53: error: `frame_count' undeclared (first use in this function) modutils.c:63: error: `target_shell' undeclared (first use in this function) modutils.c:63: error: `target_channel' undeclared (first use in this function) modutils.c:63: error: `source_sr' undeclared (first use in this function) modutils.c:63: error: `source_channel' undeclared (first use in this function) modutils.c:63: error: `source_offset' undeclared (first use in this function) modutils.c: At top level: modutils.c:130: error: syntax error before '*' token modutils.c: In function `resample': modutils.c:140: error: `end_offset' undeclared (first use in this function) modutils.c:140: error: `start_offset' undeclared (first use in this function) modutils.c:140: error: `new_frame_count' undeclared (first use in this function) modutils.c:157: error: `shl' undeclared (first use in this function) modutils.c:157: error: syntax error before "track" modutils.c:157: error: `honor_envelopes' undeclared (first use in this function) modutils.c:157: error: syntax error before "track" modutils.c:157: error: syntax error before "track" modutils.c:157: error: syntax error before "track" modutils.c:157: error: `guarantee_new_frame_count' undeclared (first use in this function) modutils.c:157: error: syntax error before "track" modutils.c:193: error: syntax error before "track" modutils.c: At top level: modutils.c:406: error: syntax error before '*' token modutils.c: In function `reverse': modutils.c:412: error: `start_offset' undeclared (first use in this function) modutils.c:413: error: `end_offset' undeclared (first use in this function) modutils.c:414: error: `shl' undeclared (first use in this function) modutils.c:414: error: syntax error before "track" modutils.c:414: error: syntax error before "track" modutils.c:414: error: syntax error before "track" modutils.c:412: warning: unused variable `insert_offset' modutils.c: At top level: modutils.c:432: error: syntax error before '*' token modutils.c: In function `amplify': modutils.c:439: error: `start_offset' undeclared (first use in this function) modutils.c:439: error: `end_offset' undeclared (first use in this function) modutils.c:440: error: `shl' undeclared (first use in this function) modutils.c:440: error: syntax error before "track" modutils.c:440: error: `factor' undeclared (first use in this function) modutils.c:440: error: syntax error before "track" modutils.c:440: error: `slope' undeclared (first use in this function) modutils.c:440: error: syntax error before ')' token modutils.c:440: error: syntax error before "track" modutils.c: At top level: modutils.c:457: error: syntax error before '*' token modutils.c: In function `find_peak': modutils.c:463: error: `start_offset' undeclared (first use in this function) modutils.c:463: error: `end_offset' undeclared (first use in this function) modutils.c:464: error: `shl' undeclared (first use in this function) modutils.c:464: error: syntax error before "track" modutils.c: At top level: modutils.c:474: error: syntax error before '*' token modutils.c:475: error: syntax error before '*' token modutils.c:478: warning: return type defaults to `int' modutils.c: In function `fade': modutils.c:479: error: `shl' undeclared (first use in this function) modutils.c:481: error: `undo_ag' undeclared (first use in this function) modutils.c:495: error: `slope' undeclared (first use in this function) modutils.c:505: error: `factor' undeclared (first use in this function) modutils.c: At top level: modutils.c:515: error: syntax error before '*' token modutils.c: In function `find_zero': modutils.c:519: error: `start_offset' undeclared (first use in this function) modutils.c:526: error: `end_offset' undeclared (first use in this function) modutils.c:537: error: `shl' undeclared (first use in this function) modutils.c:537: error: syntax error before "track" make: *** [modutils.o] Error 1 make: *** Waiting for unfinished jobs.... In file included from action.h:12, from undo.h:11, from module.h:7, from module.c:16: shell.h:197: error: syntax error before "GtkOptionMenu" shell.h:197: warning: no semicolon at end of struct or union shell.h:225: error: `mixer' redeclared as different kind of symbol mixer.h:32: error: previous declaration of `mixer' shell.h:232: error: syntax error before '}' token shell.h:232: warning: type defaults to `int' in declaration of `shell' shell.h:232: warning: data definition has no type or storage class shell.h:235: error: syntax error before '*' token shell.h:236: warning: type defaults to `int' in declaration of `shell_new' shell.h:236: warning: data definition has no type or storage class shell.h:239: error: syntax error before '*' token shell.h:242: error: syntax error before '*' token shell.h:246: error: syntax error before '*' token shell.h:250: error: syntax error before '*' token shell.h:254: error: syntax error before '*' token shell.h:261: error: syntax error before '*' token shell.h:264: error: syntax error before '*' token shell.h:269: error: syntax error before '*' token shell.h:272: error: syntax error before '*' token shell.h:275: error: syntax error before '*' token shell.h:280: error: syntax error before '*' token shell.h:284: error: syntax error before '*' token shell.h:288: error: syntax error before '*' token In file included from undo.h:11, from module.h:7, from module.c:16: action.h:65: error: syntax error before "shell" action.h:65: warning: no semicolon at end of struct or union action.h:79: error: syntax error before '}' token action.h:79: warning: type defaults to `int' in declaration of `action' action.h:79: warning: data definition has no type or storage class action.h:83: error: syntax error before "action" action.h:83: warning: no semicolon at end of struct or union action.h:84: warning: type defaults to `int' in declaration of `action_group' action.h:84: warning: data definition has no type or storage class action.h:88: error: syntax error before "action_group" action.h:88: warning: no semicolon at end of struct or union action.h:90: error: syntax error before '}' token action.h:90: warning: type defaults to `int' in declaration of `action_desc' action.h:90: warning: data definition has no type or storage class action.h:95: error: syntax error before "action_group" action.h:95: warning: no semicolon at end of struct or union action.h:97: error: syntax error before '}' token action.h:97: warning: type defaults to `int' in declaration of `action_result' action.h:97: warning: data definition has no type or storage class action.h:230: error: syntax error before '*' token action.h:232: error: syntax error before "shell" action.h:242: warning: type defaults to `int' in declaration of `action_new' action.h:242: warning: data definition has no type or storage class action.h:245: error: syntax error before '*' token action.h:246: warning: type defaults to `int' in declaration of `action_group_new' action.h:246: warning: data definition has no type or storage class action.h:248: error: syntax error before '*' token action.h:249: warning: type defaults to `int' in declaration of `action_group_new_empty' action.h:249: warning: data definition has no type or storage class action.h:251: error: syntax error before '*' token action.h:252: error: syntax error before '*' token action.h:253: warning: type defaults to `int' in declaration of `action_group_append' action.h:253: warning: data definition has no type or storage class action.h:255: error: syntax error before '*' token action.h:256: error: syntax error before '*' token action.h:261: warning: type defaults to `int' in declaration of `action_group_undo_create' action.h:261: warning: data definition has no type or storage class action.h:264: error: syntax error before '*' token action.h:267: error: syntax error before '*' token action.h:268: error: syntax error before '*' token action.h:268: warning: type defaults to `int' in declaration of `action_do' action.h:268: warning: data definition has no type or storage class action.h:271: error: syntax error before '*' token action.h:274: error: syntax error before '*' token action.h:277: error: syntax error before '*' token action.h:280: error: syntax error before '*' token action.h:285: error: syntax error before '*' token action.h:290: error: syntax error before '*' token action.h:293: error: syntax error before '*' token action.h:296: error: syntax error before '*' token In file included from module.h:7, from module.c:16: undo.h:15: error: syntax error before "action_group" In file included from module.c:16: module.h:103: error: syntax error before "shell" module.h:125: error: syntax error before '*' token module.h:126: error: syntax error before '*' token module.h:127: warning: type defaults to `int' in declaration of `module_execute' module.h:127: warning: data definition has no type or storage class make: *** [module.o] Error 1 !!! ERROR: media-sound/gnusound-0.6.2 failed. !!! Function src_compile, Line 36, Exitcode 2 !!! Make failure Expected Results: the emerge should complete successfully Portage 2.0.50-r11 (2004.2, gcc-3.3.4, glibc-2.3.3.20040420-r1, 2.4.26-gentoo-r9) ================================================================= System uname: 2.4.26-gentoo-r9 i686 AMD Duron(tm) processor Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=athlon -funroll-loops -fprefetch-loop-arrays -pipe" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /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/terminfo /etc/env.d" CXXFLAGS="-O3 -march=athlon -funroll-loops -fprefetch-loop-arrays -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox sfperms" GENTOO_MIRRORS="http://gentoo.ccccom.com http://mirror.datapipe.net/gentoo http://adelie.polymtl.ca/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X Xaw3d aalib aim alsa apache2 apm arts avi berkdb bitmap-fonts bonobo calendar canna cdr cjk crypt cscope cups doc dvd emacs encode esd fdftk foomaticdb gdbm gif gpm gstreamer gtk gtk2 gtkhtml guile icq imagemagick imap imlib jabber java jpeg junit ladcca libedit libg++ libwww mad mbox mikmod mime motif mozilla mpeg msn mysql ncurses nls nvidia oggvorbis openal opengl oscar oss pam pcmcia pdflib perl plotutils png pnp portaudio ppds python quicktime readline ruby scanner sdl shared slang sockets spell ssl svga tcltk tcpd tetex tiff truetype unicode usb wmf x86 xine xml xml2 xmms xprint xv yahoo zlib"
I can't duplicate the problem. Can you try to emerge it with CFLAGS="-O2 -march=athlon -pipe" only?
okay, i ran the following command, but got the same failure. $ CFLAGS="-O2 -march=athlon -pipe" emerge -v media-sound/gnusound
I bet it's these: -DGNOME_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED What version of gnome-lib and gtk+ do you have installed?
fixed in portage