Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 126408

Summary: libggi fails to compile (CLK_TCK not defined in glibc-2.4)
Product: Gentoo Linux Reporter: Natanael Copa <natanael.copa>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: VERIFIED DUPLICATE    
Severity: normal CC: hiyuh.root
Priority: High    
Version: 2006.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Natanael Copa 2006-03-16 04:14:31 UTC
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
Comment 1 hiyuh 2006-03-16 04:37:17 UTC
See this http://bugs.gentoo.org/show_bug.cgi?id=126400
I've made new GGI 2.2 stuff with patches.
So, this problem can be resolved. ;)
Comment 2 Natanael Copa 2006-03-16 04:45:02 UTC

*** This bug has been marked as a duplicate of 126411 ***
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-03-16 04:47:16 UTC
.