From owner-freebsd-questions@FreeBSD.ORG Sun Jan 15 18:43:14 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8A8F5106566C for ; Sun, 15 Jan 2012 18:43:14 +0000 (UTC) (envelope-from Devin.Teske@fisglobal.com) Received: from mx1.fisglobal.com (mx1.fisglobal.com [199.200.24.190]) by mx1.freebsd.org (Postfix) with ESMTP id 48C648FC1A for ; Sun, 15 Jan 2012 18:43:13 +0000 (UTC) Received: from pps.filterd (ltcfislmsgpa01 [127.0.0.1]) by ltcfislmsgpa01.fnfis.com (8.14.4/8.14.4) with SMTP id q0FIRRtj014097 for ; Sun, 15 Jan 2012 12:43:13 -0600 Received: from smtp.fisglobal.com ([10.132.206.17]) by ltcfislmsgpa01.fnfis.com with ESMTP id 12c33488sd-1 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT) for ; Sun, 15 Jan 2012 12:43:13 -0600 Received: from [10.0.0.104] (10.14.152.28) by smtp.fisglobal.com (10.132.206.17) with Microsoft SMTP Server (TLS) id 14.1.323.3; Sun, 15 Jan 2012 12:43:11 -0600 MIME-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset="us-ascii" From: Devin Teske In-Reply-To: Date: Sun, 15 Jan 2012 10:43:10 -0800 Content-Transfer-Encoding: quoted-printable Message-ID: <8A9F4627-EE7A-454E-8D6E-B52320F29E24@fisglobal.com> References: <2F8A82E5-70D7-4A1F-A785-704F41E7DFDA@fisglobal.com> <3489DCF5-0E1F-4F6B-A924-772F6F7B2E18@fisglobal.com> <12FE05E5-A149-43D8-A910-8765B732FE8D@fisglobal.com> To: Devin Teske X-Mailer: Apple Mail (2.1084) X-Originating-IP: [10.14.152.28] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.5.7110, 1.0.211, 0.0.0000 definitions=2012-01-15_04:2012-01-13, 2012-01-15, 1970-01-01 signatures=0 Cc: FreeBSD Questions , Dave Robison Subject: Re: buildworld -DWITHOUT_OPENSSL fails at usr.sbin/wpa/hostapd (depend) (was: lib/libbsnmp/libbsnmp (all) (was: lib/libarchive (depend))) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Jan 2012 18:43:14 -0000 On Jan 15, 2012, at 10:11 AM, Devin Teske wrote: > On Jan 13, 2012, at 7:28 PM, Devin Teske wrote: >> Trying to buildworld in RELENG_9 with -DWITHOUT_OPENSSL and getting fail= ures. >>=20 >> First failure we encountered required the following patch to get past "l= ib/libarchive (depend)"... >>=20 >>>=20 >>> --- lib/libarchive/config_freebsd.h.orig 2012-01-05 03:44:55.000000000 = -0800 >>> +++ lib/libarchive/config_freebsd.h 2012-01-13 18:43:46.000000000 -0800 >>> @@ -176,9 +176,4 @@ >>> #define ARCHIVE_HASH_SHA256_OPENSSL 1 >>> #define ARCHIVE_HASH_SHA384_OPENSSL 1 >>> #define ARCHIVE_HASH_SHA512_OPENSSL 1 >>> -#else >>> -#define ARCHIVE_HASH_MD5_LIBC 1 >>> -#define ARCHIVE_HASH_SHA1_LIBC 1 >>> -#define ARCHIVE_HASH_SHA256_LIBC 1 >>> -#define ARCHIVE_HASH_SHA512_LIBC 1 >>> #endif >>>=20 >>> The above patch allowed the mkdep to succeed and later-compilation in t= he same directory succeeded (yay). >>=20 >> However, you don't get far before the next error. >>=20 >> Making all in lib/libbsnmp/libbsnmp with -DWITHOUT_OPENSSL... >>=20 >> cc -I/usr/src/lib/libbsnmp/libbsnmp/../../../contrib/bsnmp/lib -DHAVE_E= RR_H -DHAVE_GETADDRINFO -DHAVE_STRLCPY -DHAVE_STDINT_H -DHAVE_INTTYPES_H -D= QUADFMT=3D'"llu"' -DQUADXFMT=3D'"llx"' -std=3Dgnu99 -fstack-protector -Wsys= tem-headers -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototy= pes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-= strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts= -Winline -Wnested-externs -Wredundant-decls -Wold-style-definition -Wno-po= inter-sign -c /usr/src/lib/libbsnmp/libbsnmp/../../../contrib/bsnmp/lib/snm= pcrypto.c >> /usr/src/lib/libbsnmp/libbsnmp/../../../contrib/bsnmp/lib/snmpcrypto.c:3= 71: error: conflicting types for 'snmp_passwd_to_keys' >> /usr/src/lib/libbsnmp/libbsnmp/../../../contrib/bsnmp/lib/snmp.h:273: er= ror: previous declaration of 'snmp_passwd_to_keys' was here >> /usr/src/lib/libbsnmp/libbsnmp/../../../contrib/bsnmp/lib/snmpcrypto.c:3= 84: error: conflicting types for 'snmp_get_local_keys' >> /usr/src/lib/libbsnmp/libbsnmp/../../../contrib/bsnmp/lib/snmp.h:274: er= ror: previous declaration of 'snmp_get_local_keys' was here >>=20 >=20 > The solution to this appears to be the following patch: >=20 > =3D=3D=3D=3D=3D=3D=3D=3D=3D BEGIN PATCH =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- contrib/bsnmp/lib/snmpcrypto.c.orig 2011-09-22 17:51:37.000000000 -07= 00 > +++ contrib/bsnmp/lib/snmpcrypto.c 2012-01-15 09:49:27.000000000 -0800 > @@ -366,7 +366,7 @@ snmp_pdu_decrypt(const struct snmp_pdu * > return (SNMP_CODE_OK); > } >=20 > -int > +enum snmp_code > snmp_passwd_to_keys(struct snmp_user *user, char *passwd __unused) > { > if (user->auth_proto =3D=3D SNMP_AUTH_NOAUTH && > @@ -378,7 +378,7 @@ snmp_passwd_to_keys(struct snmp_user *us > return (SNMP_CODE_FAILED); > } >=20 > -int > +enum snmp_code > snmp_get_local_keys(struct snmp_user *user, uint8_t *eid __unused, > uint32_t elen __unused) > { >=20 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D END PATCH =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >=20 Then you churn along for some lengthy time (even making it all the way thro= ugh clang successfully), but then stop again at usr.sbin/wpa/hostapd (depen= d) (output at end). Probably going to be a patch similar to the libarchive one. --=20 Devin =3D=3D=3D> usr.sbin/wpa/hostapd (depend) rm -f .depend mkdep -f .depend -a -DDRUID -I/usr/src/usr.sbin/wpa/hostapd -I/usr/src/u= sr.sbin/wpa/hostapd/../../../contrib/wpa//src -I/usr/src/usr.sbin/wpa/hosta= pd/../../../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//sr= c/utils -DCONFIG_CTRL_IFACE -DCONFIG_CTRL_IFACE_UNIX -I/usr/src/usr.sbin/wp= a/hostapd/../../../contrib/wpa//hostapd -I/usr/src/usr.sbin/wpa/hostapd/../= ../../contrib/wpa//src/drivers -DCONFIG_DRIVER_BSD -DHOSTAPD -DCONFIG_DRIVE= R_RADIUS_ACL -DCONFIG_IPV6 -DEAP_TLS_NONE -DINTERNAL_AES -DINTERNAL_SHA1 -D= INTERNAL_MD5 -I/usr/src/usr.sbin/wpa/hostapd -I/usr/src/usr.sbin/wpa/hostap= d/../../../contrib/wpa//src -I/usr/src/usr.sbin/wpa/hostapd/../../../contri= b/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_C= TRL_IFACE -DCONFIG_CTRL_IFACE_UNIX /usr/src/usr.sbin/wpa/hostapd/../../../c= ontrib/wpa//src/ap/accounting.c /usr/src/usr.sbin/wpa/hostapd/../../../cont= rib/wpa//src/crypto/aes-wrap.c /usr/src/usr.sbin/wpa/hostapd/../../../contr= ib/wpa//src/ap/ap_config.c /usr/src/usr.sbin/wpa/hostapd/../../../contrib/w= pa//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/a= p/authsrv.c /usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//src/eap_com= mon/chap.c /usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//src/utils/co= mmon.c /usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//hostapd/config_f= ile.c /usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//hostapd/ctrl_ifac= e.c /usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//src/crypto/crypto_o= penssl.c /usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//src/ap/ctrl_if= ace_ap.c /usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//src/drivers/dr= ivers.c /usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//src/ap/drv_call= backs.c /usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//hostapd/dump_st= ate.c /usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//src/eap_common/ea= p_common.c /usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//src/eap_comm= on/eap_peap_common.c /usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//ho= stapd/eap_register.c /usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//sr= c/eap_server/eap_server.c /usr/src/usr.sbin/wpa/hostapd/../../../contrib/wp= a//src/eap_server/eap_server_gtc.c /usr/src/usr.sbin/wpa/hostapd/../../../c= ontrib/wpa//src/eap_server/eap_server_identity.c /usr/src/usr.sbin/wpa/host= apd/../../../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_m= schapv2.c /usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//src/eap_serve= r/eap_server_peap.c /usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//src= /eap_server/eap_server_tls.c /usr/src/usr.sbin/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/wp= a/hostapd/../../../contrib/wpa//src/eapol_auth/eapol_auth_dump.c /usr/src/u= sr.sbin/wpa/hostapd/../../../contrib/wpa//src/eapol_auth/eapol_auth_sm.c /u= sr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//src/utils/eloop.c /usr/sr= c/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/us= r.sbin/wpa/hostapd/../../../contrib/wpa//src/common/ieee802_11_common.c /us= r/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//src/ap/ieee802_11_ht.c /us= r/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//src/ap/ieee802_1x.c /usr/s= rc/usr.sbin/wpa/hostapd/../../../contrib/wpa//src/utils/ip_addr.c /usr/src/= usr.sbin/wpa/hostapd/../../../contrib/wpa//src/crypto/md5.c /usr/src/usr.sb= in/wpa/hostapd/../../../contrib/wpa//hostapd/main.c /usr/src/usr.sbin/wpa/h= ostapd/../../../contrib/wpa//src/crypto/ms_funcs.c /usr/src/usr.sbin/wpa/ho= stapd/../../../contrib/wpa//src/ap/peerkey_auth.c /usr/src/usr.sbin/wpa/hos= tapd/../../../contrib/wpa//src/ap/pmksa_cache_auth.c /usr/src/usr.sbin/wpa/= hostapd/../../../contrib/wpa//src/ap/preauth_auth.c /usr/src/usr.sbin/wpa/h= ostapd/../../../contrib/wpa//src/radius/radius.c /usr/src/usr.sbin/wpa/host= apd/../../../contrib/wpa//src/radius/radius_client.c /usr/src/usr.sbin/wpa/= hostapd/../../../contrib/wpa//src/ap/sta_info.c /usr/src/usr.sbin/wpa/hosta= pd/../../../contrib/wpa//src/crypto/sha1-pbkdf2.c /usr/src/usr.sbin/wpa/hos= tapd/../../../contrib/wpa//src/crypto/sha1-tlsprf.c /usr/src/usr.sbin/wpa/h= ostapd/../../../contrib/wpa//src/crypto/sha1-tprf.c /usr/src/usr.sbin/wpa/h= ostapd/../../../contrib/wpa//src/crypto/sha1.c /usr/src/usr.sbin/wpa/hostap= d/../../../contrib/wpa//src/ap/tkip_countermeasures.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/../../../c= ontrib/wpa//src/common/wpa_common.c /usr/src/usr.sbin/wpa/hostapd/../../../= contrib/wpa//src/utils/wpa_debug.c /usr/src/usr.sbin/wpa/hostapd/../../../c= ontrib/wpa//src/utils/wpabuf.c /usr/src/usr.sbin/wpa/hostapd/../../../contr= ib/wpa//src/l2_packet/l2_packet_freebsd.c /usr/src/usr.sbin/wpa/hostapd/dri= ver_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/t= ls_none.c /usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//src/crypto/crypto_opens= sl.c:16:30: error: openssl/opensslv.h: No such file or directory /usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//src/crypto/crypto_opens= sl.c:17:25: error: openssl/err.h: No such file or directory /usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//src/crypto/crypto_opens= sl.c:18:25: error: openssl/des.h: No such file or directory /usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//src/crypto/crypto_opens= sl.c:19:25: error: openssl/aes.h: No such file or directory /usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//src/crypto/crypto_opens= sl.c:20:24: error: openssl/bn.h: No such file or directory /usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//src/crypto/crypto_opens= sl.c:21:25: error: openssl/evp.h: No such file or directory /usr/src/usr.sbin/wpa/hostapd/../../../contrib/wpa//src/crypto/crypto_opens= sl.c:22:24: error: openssl/dh.h: No such file or directory mkdep: compile failed *** Error code 1 Stop in /usr/src/usr.sbin/wpa/hostapd. *** Error code 1 _____________ The information contained in this message is proprietary and/or confidentia= l. If you are not the intended recipient, please: (i) delete the message an= d all copies; (ii) do not disclose, distribute or use the message in any ma= nner; and (iii) notify the sender immediately. In addition, please be aware= that any message addressed to our domain is subject to archiving and revie= w by persons other than the intended recipient. Thank you.