if x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../include -I/usr/include -march=nocona -O2 -fomit-frame-pointer -pipe -I/usr/include -D_REENTRANT -D_THREAD_SAFE -MT showaccel2.o -MD -MP -MF ".deps/showaccel2.Tpo" -c -o showaccel2.o showaccel2.c; \ then mv -f ".deps/showaccel2.Tpo" ".deps/showaccel2.Po"; else rm -f ".deps/showaccel2.Tpo"; exit 1; fi speed.c: In function `time_offset': speed.c:57: error: `CLK_TCK' undeclared (first use in this function) speed.c:57: error: (Each undeclared identifier is reported only once speed.c:57: error: for each function it appears in.) speed.c: In function `time_stop': speed.c:70: error: `CLK_TCK' undeclared (first use in this function) /bin/sh ../../libtool --mode=link x86_64-pc-linux-gnu-gcc -march=nocona -O2 -fomit-frame-pointer -pipe -I/usr/include -D_REENTRANT -D_THREAD_SAFE -L/usr/lib -o checkmode checkmode.o ../../ggi/libggi.la -lc make[3]: *** [speed.o] Error 1 make[3]: *** Waiting for unfinished jobs.... emerge --info (some of it): Portage 2.1_pre6-r3 (default-linux/amd64/2006.0, gcc-3.4.5, glibc-2.4-r0, 2.6.15 -gentoo-r7 x86_64) ================================================================= System uname: 2.6.15-gentoo-r7 x86_64 Intel(R) Pentium(R) D CPU 3.00GHz Gentoo Base System version 1.12.0_pre16 ccache version 2.4 [disabled] dev-lang/python: 2.4.2-r1 sys-apps/sandbox: 1.2.17 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-r2 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r3 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=nocona -O2 -fomit-frame-pointer -pipe" CHOST="x86_64-pc-linux-gnu" active USE flags for libggi: X -aalib -debug -directfb -fbcon I believe that CLK_TCK is replaced with CLOCKS_PER_SEC and no longer supported in glibc-2.4
Created attachment 82292 [details, diff] libggi-2.1.1-CLK_TCK.patch fixes problem.
See this http://bugs.gentoo.org/show_bug.cgi?id=126400 I've made new GGI 2.2 stuff with patches. So, your problem can be resolved. ;)
*** Bug 126407 has been marked as a duplicate of this bug. ***
*** Bug 126408 has been marked as a duplicate of this bug. ***
Applied a different less intrusive patch, that defines CLK_TCK if it's not.
*** Bug 126521 has been marked as a duplicate of this bug. ***