This seems to be the same type of issue as bug 28664: --- gcc -DHAVE_CONFIG_H -I. -I. -I.. -DORBIT2=1 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libglade-2.0 -I/usr/include/libxml2 -I/usr/include/gconf/2 -I/usr/include/orbit-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/libart-2.0 -I/usr/include -DGNOMELOCALEDIR=\""/usr/share/locale"\" -DZENITY_DATADIR=\""/usr/share/zenity"\" -g -pipe -c msg.c main.c: In function `main': main.c:1017: error: `LC_ALL' undeclared (first use in this function) main.c:1017: error: (Each undeclared identifier is reported only once main.c:1017: error: for each function it appears in.) make[2]: *** [main.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory `/var/tmp/portage/zenity-1.6/work/zenity-1.6/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/zenity-1.6/work/zenity-1.6' make: *** [all-recursive-am] Error 2 !!! ERROR: gnome-extra/zenity-1.6 failed. !!! Function gnome2_src_compile, Line 39, Exitcode 2 !!! compile failure --- Emerge info: --- Portage 2.0.49-r4 (default-x86-1.4, gcc-3.3.1, glibc-2.3.2-r1, 2.6.0-test5) ================================================================= System uname: 2.6.0-test5 i686 AMD Athlon(tm) processor distcc 2.10 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.2 [enabled] ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O0 -g -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O0 -g -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs sandbox ccache strict nostrip cvs" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.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://rsync.namerica.gentoo.org/gentoo-portage" USE="x86 oss avi crypt cups encode foomaticdb gif jpeg libg++ mad mikmod mmx mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib directfb gdbm berkdb slang readline arts svga java X sdl gpm tcpd pam libwww ssl python imlib oggvorbis gnome gtk qt kde motif opengl cdr 3dnow aalib acpi alsa -apm artswrappersuid bonobo dga dvd esd faad gstreamer gtk2 ldap mozilla nas perl pic samba slp tcltk tetex tiff v4l wmf wxwindows xinerama xml xvid" --- Working CFLAGS: "-O1 -g -pipe" "-O2 -g -pipe" Failed CFLAGS: "-O0 -g -pipe" ""
*** This bug has been marked as a duplicate of 28664 ***
Re Comment 13 on bug 28664: I only asked because the failure was never addressed. As it stands, if a user does not have -O1 or higher in their cflags, the compile will probably fail for them. (I don't have the time right now to hunt down exactly which optimization "fixes" the broken source.) If a patch is undesirable, the simplest work-around I can think of is to filter out -O0 and prepend -O1 to CFLAGS.