Problem with HAVE_CLOCK_SYSCALL

ry at tinyclouds.org ry at tinyclouds.org
Sun Jun 28 23:10:11 CEST 2009


We're getting a compile error related to the HAVE_CLOCK_SYSCALL define.

  mil at roach:~/libev-3.6$ make
  make  all-am
  make[1]: Entering directory `/pool/home/mil/libev-3.6'
  /bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.
-g -O2 -O3 -c -o ev.lo `test -f 'ev.c' ||
   gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -O3 -c ev.c  -fPIC -DPIC -o .libs/ev.o
  ev.c: In function `get_clock':
  ev.c:586: error: `SYS_clock_gettime' undeclared (first use in this function)
  ev.c:586: error: (Each undeclared identifier is reported only once
  ev.c:586: error: for each function it appears in.)
  ev.c: In function `loop_init':
  ev.c:1387: error: `SYS_clock_gettime' undeclared (first use in this function)
  make[1]: *** [ev.lo] Error 1
  make[1]: Leaving directory `/pool/home/mil/libev-3.6'
  make: *** [all] Error 2

This system is a slackware Linux computer with gcc 3.4.6 and glibc
2.3.6. Attached is the config.log. It finds `SYS_clock_gettime'
undeclared. I checked that __linux = 1 and __GLIBC__ = 2 ... so it
seems EV_USE_CLOCK_SYSCALL is getting set but HAVE_CLOCK_SYSCALL is
not...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.log
Type: text/x-log
Size: 51089 bytes
Desc: not available
URL: <http://lists.schmorp.de/pipermail/libev/attachments/20090628/dc9122f6/attachment-0001.bin>


More information about the libev mailing list