Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 127598

Summary: net-wireless/hostapd-0.5.2 fails to build with USE=-ssl
Product: Gentoo Linux Reporter: Tuan Van (RETIRED) <langthang>
Component: Current packagesAssignee: Henrik Brix Andersen <henrik>
Status: RESOLVED FIXED    
Severity: normal Keywords: InVCS
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Tuan Van (RETIRED) gentoo-dev 2006-03-25 22:58:17 UTC
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)
Comment 1 Henrik Brix Andersen 2006-03-26 04:14:39 UTC
Fixed in CVS. Thank you for reporting this.

I had been meaning to fix it since the fix was put in upstream CVS.