I./.. -I../../common -I../../intl -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/X11R6/include -DPIXMAPDIR=\"/usr/share/pixmaps/\"-DTHEMEDIR=\"/usr/share/pixmaps/teg_pix/themes/\" -DG_LOG_DOMAIN=\"TEG\" -DGNOMELOCALEDIR=\""/usr/share/locale"\" -march=i686 -O3 -pipe -Wall -Wunused -Wall -c gui.c gui.c: In function `gui_init': gui.c:166: warning: implicit declaration of function `setlocale' gui.c:166: `LC_ALL' undeclared (first use in this function) gui.c:166: (Each undeclared identifier is reported only once gui.c:166: for each function it appears in.) gui.c:167: warning: statement with no effect gui.c:168: warning: statement with no effect gui.c: In function `gui_scores': gui.c:305: warning: implicit declaration of function `gui_scores_view' make[4]: *** [gui.o] Error 1 make[4]: Leaving directory `/var/tmp/portage/teg-0.9.2/work/teg-0.9.2/client/gui-gnome' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/var/tmp/portage/teg-0.9.2/work/teg-0.9.2/client/gui-gnome' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/teg-0.9.2/work/teg-0.9.2/client' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/teg-0.9.2/work/teg-0.9.2' make: *** [all-recursive-am] Error 2 !!! ERROR: The ebuild did not complete successfully. !!! Function src_compile, Line 10, Exitcode 2 !!! (no error message) !!! emerge aborting on /usr/portage/app-games/teg/teg-0.9.2.ebuild . Workaround is to enable nls for this ebuild then it builds fine.
This is, in fact, an upstream issue. I have contacted Ricardo Quesada and informed him of the error. The response I got was that he will fix it. So now we wait :)
Well, it looks like TEG-0.9.4 is out, and we also got a mention on their site.