I suspect a recent change in glibc (features.h) broke it... but according to time.h, CLK_TCK is obsolete, and CLOCKS_PER_SEC is to be used instead.
gcc -c -I. -I. -I../../include -I../../include -D__WINESRC__ -D_KERNEL32_ -D_REENTRANT -fPIC -Wall -pipe -mpreferred-stack-boundary=2 -fno-strict-aliasing -gstabs+ -Wdeclaration-after-statement -Wpointer-arith -g -O2 -o time.o time.c time.c: In function ‘TIME_ClockTimeToFileTime’: time.c:522: error: ‘CLK_TCK’ undeclared (first use in this function) time.c:522: error: (Each undeclared identifier is reported only once time.c:522: error: for each function it appears in.) make[2]: *** [time.o] Error 1 make[2]: Leaving directory `/home/phantom/src/wine/dlls/kernel' make[1]: *** [kernel] Error 2 make[1]: Leaving directory `/home/phantom/src/wine/dlls' make: *** [dlls] Error 2
Well, if you could tell us what version of glibc broke it. We could fix it ine, by adding a check during configure.
Thanks, vijay
On 10/30/05, Ivan Gyurdiev ivg2@cornell.edu wrote:
I suspect a recent change in glibc (features.h) broke it... but according to time.h, CLK_TCK is obsolete, and CLOCKS_PER_SEC is to be used instead.
gcc -c -I. -I. -I../../include -I../../include -D__WINESRC__ -D_KERNEL32_ -D_REENTRANT -fPIC -Wall -pipe -mpreferred-stack-boundary=2 -fno-strict-aliasing -gstabs+ -Wdeclaration-after-statement -Wpointer-arith -g -O2 -o time.o time.c time.c: In function 'TIME_ClockTimeToFileTime': time.c:522: error: 'CLK_TCK' undeclared (first use in this function) time.c:522: error: (Each undeclared identifier is reported only once time.c:522: error: for each function it appears in.) make[2]: *** [time.o] Error 1 make[2]: Leaving directory `/home/phantom/src/wine/dlls/kernel' make[1]: *** [kernel] Error 2 make[1]: Leaving directory `/home/phantom/src/wine/dlls' make: *** [dlls] Error 2
On Sun, Oct 30, 2005 at 01:57:54PM +0530, Vijay Kiran Kamuju wrote:
Well, if you could tell us what version of glibc broke it. We could fix it ine, by adding a check during configure.
glibc HEAD CVS (upcoming 2.4 release if it ever happens).
And it does not need a configure check, since it is just a define.
Ciao, Marcus