[Patch] Current git fails to build "make hlr_auc_gw" in hostapd
Ed W
lists
Tue Aug 23 05:52:00 PDT 2011
For me, current git fails to build (link actually) hlr_auc_gw target in
hostapd. Log is:
# make hlr_auc_gw
CC hlr_auc_gw.c
CC ../src/crypto/milenage.c
/usr/lib/gcc/i486-gentoo-linux-uclibc/4.4.5/../../../libcrypto.so:
warning: gethostbyname is obsolescent, use getnameinfo() instead.
../src/crypto/random.o: In function `random_close_fd':
/var/tmp/portage/net-wireless/hostapd-0.8_pre1/work/hostap-9ca47ff/hostapd/../src/crypto/random.c:283:
undefined reference to `eloop_unregister_read_sock'
../src/crypto/random.o: In function `random_init':
/var/tmp/portage/net-wireless/hostapd-0.8_pre1/work/hostap-9ca47ff/hostapd/../src/crypto/random.c:415:
undefined reference to `eloop_register_read_sock'
collect2: ld returned 1 exit status
make: *** [hlr_auc_gw] Error 1
The error appears to be a failure to add the eloop.o to link targets
Suggested patch is as follows:
Signed-off-by: Ed Wildgoose
====================================
--- hostapd/Makefile.orig 2011-08-23 13:44:07.000000000 +0100
+++ hostapd/Makefile 2011-08-23 13:44:17.000000000 +0100
@@ -80,6 +80,7 @@
CONFIG_ELOOP=eloop
endif
OBJS += ../src/utils/$(CONFIG_ELOOP).o
+HOBJS += ../src/utils/$(CONFIG_ELOOP).o
OBJS_c += ../src/utils/$(CONFIG_ELOOP).o
OBJS += ../src/utils/common.o
OBJS += ../src/utils/wpa_debug.o
More information about the Hostap
mailing list