<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>127598</bug_id>
          
          <creation_ts>2006-03-25 22:58 0000</creation_ts>
          <short_desc>net-wireless/hostapd-0.5.2 fails to build with USE=-ssl</short_desc>
          <delta_ts>2006-03-26 04:14:39 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <keywords>InCVS</keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>langthang@gentoo.org</reporter>
          <assigned_to>henrik@brixandersen.dk</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>langthang@gentoo.org</who>
            <bug_when>2006-03-25 22:58:17 0000</bug_when>
            <thetext>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&apos;:crypto.c:(.text+0x6e): undefined reference to `DES_set_key&apos;
:crypto.c:(.text+0x94): undefined reference to `DES_ecb_encrypt&apos;
./crypto.o: In function `md4_vector&apos;:crypto.c:(.text+0xc0): undefined reference to `MD4_Init&apos;
:crypto.c:(.text+0xe3): undefined reference to `MD4_Update&apos;
:crypto.c:(.text+0xfd): undefined reference to `MD4_Final&apos;
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)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>henrik@brixandersen.dk</who>
            <bug_when>2006-03-26 04:14:39 0000</bug_when>
            <thetext>Fixed in CVS. Thank you for reporting this.

I had been meaning to fix it since the fix was put in upstream CVS.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>