Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 127598 - net-wireless/hostapd-0.5.2 fails to build with USE=-ssl
Summary: net-wireless/hostapd-0.5.2 fails to build with USE=-ssl
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Henrik Brix Andersen
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2006-03-25 22:58 UTC by Tuan Van (RETIRED)
Modified: 2006-03-26 04:14 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.