Latest gnulib from git, Fedora 12 (64 bit) host:

lib/libgnu.a(gettime.o): In function `gettime':
/home/rjones/d/libguestfs/daemon/lib/gettime.c:37: undefined reference to 
`clock_gettime'

I spent a little bit of time trying to work out what you'd have to
link against in order to get this symbol, but there is literally no
shared library on this Fedora 12 machine that contains the symbol.

The closest is /lib64/libc.so.6:

$ nm -D /lib64/lib*.so.6 | grep clock_gettime
000000000037af40 B __vdso_clock_gettime

I'm guessing from the "vdso" prefix that I need some C macro magic to
make it use the VDSO page.  I suppose that indicates that the
gettime.c file is including the wrong header file, or some C
preprocessor magic isn't being done, but TBH I'm not sure ...

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-top is 'top' for virtual machines.  Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://et.redhat.com/~rjones/virt-top


Reply via email to