wpa_supplicant, eloop_register_timeout() and ntpdate

Holger Schurig holgerschurig
Thu Nov 14 01:40:28 PST 2013

Another issue with patch b02ac4b02793dfcf.txt is that in glibc 2.17
clock_gettime moved into the C library. Before (e.g. on Debian
Wheezy's eglibc 2.13) it used to be in librt. So we need now a -lrt
for those systems ...

cc -Wl,--as-needed  -o wpa_cli wpa_cli.o ../src/common/wpa_ctrl.o
../src/utils/wpa_debug.o ../src/utils/common.o ../src/utils/os_unix.o
../src/utils/eloop.o ../src/utils/edit.o
../src/utils/os_unix.o: In function `os_get_reltime':
undefined reference to `clock_gettime'

More information about the Hostap mailing list