the Makefile came with hostapd-0.5.2 makes nt_password_hash by default causing
hostapd failed to build with errors:
i686-pc-linux-gnu-gcc -o nt_password_hash nt_password_hash.o ./ms_funcs.o
sha1.o rc4.o md5.o ./crypto.o
./crypto.o: In function `des_encrypt':crypto.c:(.text+0x6e): undefined
reference to `DES_set_key'
:crypto.c:(.text+0x94): undefined reference to `DES_ecb_encrypt'
./crypto.o: In function `md4_vector':crypto.c:(.text+0xc0): undefined reference
to `MD4_Init'
:crypto.c:(.text+0xe3): undefined reference to `MD4_Update'
:crypto.c:(.text+0xfd): undefined reference to `MD4_Final'
collect2: ld returned 1 exit status
distcc[26072] ERROR: compile (null) on localhost failed
make: *** [nt_password_hash] Error 1
make: *** Waiting for unfinished jobs....
!!! ERROR: net-wireless/hostapd-0.5.2 failed.
Call stack:
ebuild.sh, line 1526: Called dyn_compile
ebuild.sh, line 923: Called src_compile
hostapd-0.5.2.ebuild, line 70: Called die
!!! emake failed
!!! If you need support, post the topmost build error, and the call stack if
relevant.
A quick wokaround is to patch the Makefle:
--- Makefile.orig 2006-03-25 22:34:35.000000000 -0800
+++ Makefile 2006-03-25 22:35:39.000000000 -0800
@@ -249,7 +249,7 @@
CFLAGS += -DCONFIG_IPV6
endif
-ALL=hostapd hostapd_cli nt_password_hash hlr_auc_gw
+ALL=hostapd hostapd_cli hlr_auc_gw
all: verify_config $(ALL)