>Number:         164209
>Category:       misc
>Synopsis:       [PATCH] buildworld WITHOUT_OPENSSL stops at 
>usr.sbin/wpa/hostapd
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jan 16 17:50:07 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Devin Teske
>Release:        FreeBSD 9.0-RELEASE amd64
>Organization:
FIS Global, Inc.
>Environment:
FreeBSD scribe.vicor.com 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan 3 07:46:30 
UTC 2010
r...@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64
>Description:
When performing buildworld while specifying WITHOUT_OPENSSL, the depend target 
fails during mkdep. Output below:

===> usr.sbin/wpa/hostapd (depend)
rm -f .depend
mkdep -f .depend -a    -DDRUID -I/usr/src/usr.sbin/wpa/hostapd 
-I/usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//src 
-I/usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//src/common 
-I/usr/src/usr.sbin/wp
a/hostapd/../../../contrib/wpa//src/crypto 
-I/usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//src/l2_packet 
-I/usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//src/utils 
-DCONFIG_CTRL_IFACE -DCONFIG_CTRL
_IFACE_UNIX -I/usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//hostapd 
-I/usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//src/drivers 
-DCONFIG_DRIVER_BSD -DHOSTAPD -DCONFIG_DRIVER_RADIUS_ACL -DCONFIG_IP
V6 -DEAP_TLS_NONE -DINTERNAL_AES -DINTERNAL_SHA1 -DINTERNAL_MD5 
-I/usr/src/usr.sbin/wpa/hostapd 
-I/usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//src 
-I/usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//
src/common -I/usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//src/crypto 
-I/usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//src/l2_packet 
-I/usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//src/utils
-DCONFIG_CTRL_IFACE -DCONFIG_CTRL_IFACE_UNIX 
/usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//src/ap/accounting.c 
/usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//src/crypto/aes-wrap.c 
/usr/src/usr.sbin
/wpa/hostapd/../../../contrib/wpa//src/ap/ap_config.c 
/usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//src/ap/ap_drv_ops.c 
/usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//src/ap/ap_mlme.c 
/usr/src/usr.
sbin/wpa/hostapd/../../../contrib/wpa//src/ap/authsrv.c 
/usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//src/eap_common/chap.c 
/usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//src/utils/common.c /usr/sr
c/usr.sbin/wpa/hostapd/../../../contrib/wpa//hostapd/config_file.c 
/usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//hostapd/ctrl_iface.c 
/usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//src/crypto/crypt
o_openssl.c 
/usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//src/ap/ctrl_iface_ap.c 
/usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//src/drivers/drivers.c 
/usr/src/usr.sbin/wpa/hostapd/../../../contrib/
wpa//src/ap/drv_callbacks.c 
/usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//hostapd/dump_state.c 
/usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//src/eap_common/eap_common.c 
/usr/src/usr.sbin/wpa/hosta
pd/../../../contrib/wpa//src/eap_common/eap_peap_common.c 
/usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//hostapd/eap_register.c 
/usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//src/eap_server/eap_serv
er.c 
/usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//src/eap_server/eap_server_gtc.c
 
/usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//src/eap_server/eap_server_identity.c
 /usr/src/usr.sbin/wpa/hostapd/
./../../contrib/wpa//src/eap_server/eap_server_md5.c 
/usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//src/eap_server/eap_server_methods.c
 /usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//src/eap_server
/eap_server_mschapv2.c 
/usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//src/eap_server/eap_server_peap.c
 
/usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//src/eap_server/eap_server_tls.c
 /usr/src/usr.sbi
n/wpa/hostapd/../../../contrib/wpa//src/eap_server/eap_server_tls_common.c 
/usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//src/eap_server/eap_server_ttls.c
 /usr/src/usr.sbin/wpa/hostapd/../../../contrib/w
pa//src/eapol_auth/eapol_auth_dump.c 
/usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//src/eapol_auth/eapol_auth_sm.c
 /usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//src/utils/eloop.c 
/usr/src/usr.sbin/
wpa/hostapd/../../../contrib/wpa//src/ap/hostapd.c 
/usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//src/ap/ieee802_11_auth.c 
/usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//src/common/ieee802_11_common
.c /usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//src/ap/ieee802_11_ht.c 
/usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//src/ap/ieee802_1x.c 
/usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//src/ut
ils/ip_addr.c 
/usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//src/crypto/md5.c 
/usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//hostapd/main.c 
/usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//src/cr
ypto/ms_funcs.c 
/usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//src/ap/peerkey_auth.c 
/usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//src/ap/pmksa_cache_auth.c 
/usr/src/usr.sbin/wpa/hostapd/../../../c
ontrib/wpa//src/ap/preauth_auth.c 
/usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//src/radius/radius.c 
/usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//src/radius/radius_client.c 
/usr/src/usr.sbin/wpa/h
ostapd/../../../contrib/wpa//src/ap/sta_info.c 
/usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//src/crypto/sha1-pbkdf2.c 
/usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//src/crypto/sha1-tlsprf.c 
/usr/sr
c/usr.sbin/wpa/hostapd/../../../contrib/wpa//src/crypto/sha1-tprf.c 
/usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//src/crypto/sha1.c 
/usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//src/ap/tkip_counte
rmeasures.c /usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//src/ap/utils.c 
/usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//src/ap/vlan_init.c 
/usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//src/ap
/wpa_auth.c 
/usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//src/ap/wpa_auth_glue.c 
/usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//src/ap/wpa_auth_ie.c 
/usr/src/usr.sbin/wpa/hostapd/../../../contrib/w
pa//src/common/wpa_common.c 
/usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//src/utils/wpa_debug.c 
/usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//src/utils/wpabuf.c 
/usr/src/usr.sbin/wpa/hostapd/../..
/../contrib/wpa//src/l2_packet/l2_packet_freebsd.c 
/usr/src/usr.sbin/wpa/hostapd/driver_freebsd.c 
/usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//src/utils/os_unix.c 
/usr/src/usr.sbin/wpa/hostapd/../../..
/contrib/wpa//src/crypto/tls_none.c
/usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//src/crypto/crypto_openssl.c:16:30:
 error: openssl/opensslv.h: No such file or directory
/usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//src/crypto/crypto_openssl.c:17:25:
 error: openssl/err.h: No such file or directory
/usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//src/crypto/crypto_openssl.c:18:25:
 error: openssl/des.h: No such file or directory
/usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//src/crypto/crypto_openssl.c:19:25:
 error: openssl/aes.h: No such file or directory
/usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//src/crypto/crypto_openssl.c:20:24:
 error: openssl/bn.h: No such file or directory
/usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//src/crypto/crypto_openssl.c:21:25:
 error: openssl/evp.h: No such file or directory
/usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//src/crypto/crypto_openssl.c:22:24:
 error: openssl/dh.h: No such file or directory
mkdep: compile failed

>How-To-Repeat:
1. csup RELENG_9
2. cd /usr/src
3. make buildworld -DWITHOUT_OPENSSL

NOTE: You'll first stop at lib/libarchive making depend. Apply the patch from 
PR 164206 to make it past lib/libarchive
NOTE: You'll next stop at lib/libbsnmp/libbsnmp making all. Apply the patch 
from PR 164208 to make it past lib/libbsnmp/libbsnmp

4. See above description for error output
>Fix:
See attached patch.txt

Patch attached with submission follows:

--- usr.sbin/wpa/hostapd/Makefile.orig  2011-09-22 17:51:37.000000000 -0700
+++ usr.sbin/wpa/hostapd/Makefile       2012-01-15 21:08:02.000000000 -0800
@@ -9,12 +9,13 @@
        ${WPA_DISTDIR}/src/eapol_auth \
        ${WPA_DISTDIR}/src/drivers \
        ${WPA_DISTDIR}/src/radius \
+       ${WPA_DISTDIR}/src/crypto \
        ${WPA_DISTDIR}
 
 PROG=  hostapd
 SRCS=  accounting.c aes-wrap.c ap_config.c \
        ap_drv_ops.c ap_mlme.c authsrv.c \
-       chap.c common.c config_file.c ctrl_iface.c crypto_openssl.c \
+       chap.c common.c config_file.c ctrl_iface.c \
        ctrl_iface_ap.c drivers.c drv_callbacks.c dump_state.c \
        eap_common.c eap_peap_common.c eap_register.c eap_server.c \
        eap_server_gtc.c eap_server_identity.c eap_server_md5.c \
@@ -28,6 +29,12 @@
        tkip_countermeasures.c utils.c \
        vlan_init.c wpa_auth.c wpa_auth_glue.c wpa_auth_ie.c wpa_common.c \
        wpa_debug.c wpabuf.c
+.if ${MK_OPENSSL} != "no"
+SRCS+= crypto_openssl.c 
+.else
+SRCS+= aes-internal.c aes-internal-enc.c des-internal.c md4-internal.c \
+       md5-internal.c rc4.c sha1-internal.c
+.endif
 SRCS+= l2_packet_freebsd.c driver_freebsd.c os_unix.c
 
 MAN=   hostapd.8 hostapd.conf.5
@@ -46,8 +53,8 @@
 CFLAGS+= -DCONFIG_IPV6
 .endif
 #CFLAGS+= -g
-DPADD+=        ${LIBPCAP} ${LIBSSL}
-LDADD+=        -lpcap -lssl
+DPADD+=        ${LIBPCAP}
+LDADD+=        -lpcap
 
 # User customizations for wpa_supplicant/hostapd build environment
 CFLAGS+=${HOSTAPD_CFLAGS}


>Release-Note:
>Audit-Trail:
>Unformatted:
_______________________________________________
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"

Reply via email to