Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 126411 - libggi fails to compile (CLK_TCK not defined in glibc-2.4)
Summary: libggi fails to compile (CLK_TCK not defined in glibc-2.4)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
: 126407 126408 126521 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-03-16 04:30 UTC by Natanael Copa
Modified: 2006-03-17 05:23 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
libggi-2.1.1-CLK_TCK.patch (libggi-2.1.1-CLK_TCK.patch,987 bytes, patch)
2006-03-16 04:31 UTC, Natanael Copa
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Natanael Copa 2006-03-16 04:30:58 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 Natanael Copa 2006-03-16 04:31:44 UTC
Created attachment 82292 [details, diff]
libggi-2.1.1-CLK_TCK.patch

fixes problem.
Comment 2 hiyuh 2006-03-16 04:33:36 UTC
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. ;)
Comment 3 Natanael Copa 2006-03-16 04:44:09 UTC
*** Bug 126407 has been marked as a duplicate of this bug. ***
Comment 4 Natanael Copa 2006-03-16 04:45:02 UTC
*** Bug 126408 has been marked as a duplicate of this bug. ***
Comment 5 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-03-16 17:18:01 UTC
Applied a different less intrusive patch, that defines CLK_TCK if it's not.
Comment 6 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-03-17 05:23:44 UTC
*** Bug 126521 has been marked as a duplicate of this bug. ***