[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
warning: gethostbyname is obsolescent, use getnameinfo() instead.
../src/crypto/random.o: In function `random_close_fd':
undefined reference to `eloop_unregister_read_sock'
../src/crypto/random.o: In function `random_init':
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 @@
 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