[Bug 285464] net/hostapd fails to build with DEFAULT_VERSIONS=ssl=openssl34

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 16 Mar 2025 12:02:25 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=285464

            Bug ID: 285464
           Summary: net/hostapd fails to build with
                    DEFAULT_VERSIONS=ssl=openssl34
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: cy@FreeBSD.org
          Reporter: milios@ccsys.com
             Flags: maintainer-feedback?(cy@FreeBSD.org)
          Assignee: cy@FreeBSD.org

notes: i did have hostapd-2.11_1 installed, built on this system, from ports,
with openssl34 installed, and selected in DEFAULT_VERSIONS. however, i havent
actually used hostapd in many years, since the OpenSSL 1.1.x era, so i can't
speak to its efficacy. this is 13.5-RELEASE/amd64

references to the symbols mentioned in the errors can be seen added to files/
very recently, so there probably needs to be a bit of conditional logic
wrapping those as well.

===>  Building for hostapd-2.11_2
  CC  ../src/common/ptksa_cache.c
  CC  ../src/utils/ip_addr.c
  CC  ../src/drivers/drivers.c
  CC  ../src/ap/eap_user_db.c
  CC  ../src/ap/utils.c
  CC  ../src/ap/bss_load.c
  CC  ../src/utils/wpabuf.c
  CC  ../src/ap/tkip_countermeasures.c
  CC  ../src/ap/ap_mlme.c
  CC  ../src/utils/crc32.c
  CC  ../src/utils/os_unix.c
  CC  ../src/ap/preauth_auth.c
  CC  ../src/ap/authsrv.c
  CC  ../src/utils/wpa_debug.c
  CC  ../src/ap/neighbor_db.c
  CC  ../src/ap/beacon.c
  CC  ../src/ap/pmksa_cache_auth.c
  CC  ../src/ap/wpa_auth_glue.c
  CC  ../src/ap/vlan.c
  CC  ../src/ap/vlan_ifconfig.c
  CC  ../src/ap/wpa_auth_ie.c
  CC  ../src/eapol_auth/eapol_auth_dump.c
  CC  ../src/ap/ieee802_11_auth.c
  CC  ../src/ap/ieee802_11_shared.c
  CC  ../src/ap/rrm.c
  CC  ../src/utils/eloop.c
  CC  ../src/common/ctrl_iface_common.c
  CC  ../src/ap/drv_callbacks.c
  CC  ../src/radius/radius_das.c
  CC  main.c
  CC  ../src/ap/vlan_init.c
  CC  ../src/eap_common/eap_peap_common.c
  CC  ../src/eap_server/eap_server_md5.c
  CC  eap_register.c
../src/drivers/driver_bsd.c:382:16: error: use of undeclared identifier
'IEEE80211_CIPHER_AES_GCM_128'
  382 |                 wk.ik_type = IEEE80211_CIPHER_AES_GCM_128;
      |                              ^
  CC  ../src/l2_packet/l2_packet_freebsd.c
  CC  ../src/ap/accounting.c
../src/drivers/driver_bsd.c:385:16: error: use of undeclared identifier
'IEEE80211_CIPHER_BIP_CMAC_128'
  385 |                 wk.ik_type = IEEE80211_CIPHER_BIP_CMAC_128;
      |                              ^
  CC  ../src/eap_server/eap_server_gtc.c
2 errors generated.
  CC  ../src/ap/ap_config.c
gmake: *** [../src/build.rules:87:
/usr/ports/net/hostapd/work/hostapd-2.11/build/hostapd/src/drivers/driver_bsd.o]
Error 1
gmake: *** Waiting for unfinished jobs....
  CC  ../src/ap/ap_drv_ops.c
  CC  ../src/eap_server/eap_server_tls.c
  CC  ../src/eap_common/chap.c
  CC  ../src/eap_common/eap_common.c
  CC  ../src/eap_server/eap_server_identity.c
  CC  ../src/common/hw_features_common.c
  CC  ../src/eap_server/eap_server_methods.c
  CC  ../src/crypto/sha1-prf.c
  CC  ../src/crypto/sha1-tlsprf.c
  CC  ../src/eap_server/eap_server_mschapv2.c
  CC  ../src/crypto/ms_funcs.c
  CC  ../src/radius/radius_client.c
  CC  ../src/utils/common.c
  CC  ../src/eapol_auth/eapol_auth_sm.c
  CC  ../src/ap/sta_info.c
  CC  ../src/eap_server/eap_server_tls_common.c
  CC  ../src/crypto/tls_openssl_ocsp.c
  CC  ../src/ap/ieee802_1x.c
  CC  ../src/common/wpa_common.c
  CC  ../src/eap_server/eap_server_peap.c
  CC  ../src/ap/ctrl_iface_ap.c
../src/crypto/tls_openssl.c:1195:3: warning: 'SSL_CTX_flush_sessions' is
deprecated [-Wdeprecated-declarations]
 1195 |                 SSL_CTX_flush_sessions(ssl, 0);
      |                 ^
/usr/local/include/openssl/ssl.h:1620:1: note: 'SSL_CTX_flush_sessions' has
been explicitly marked deprecated here
 1620 | OSSL_DEPRECATEDIN_3_4_FOR("not Y2038-safe, replace with
SSL_CTX_flush_sessions_ex()")
      | ^
/usr/local/include/openssl/macros.h:185:49: note: expanded from macro
'OSSL_DEPRECATEDIN_3_4_FOR'
  185 | #   define OSSL_DEPRECATEDIN_3_4_FOR(msg)      
OSSL_DEPRECATED_FOR(3.4, msg)
      |                                                 ^
/usr/local/include/openssl/macros.h:63:65: note: expanded from macro
'OSSL_DEPRECATED_FOR'
   63 | #     define OSSL_DEPRECATED_FOR(since, message)
__attribute__((deprecated))
      |                                                                 ^
  CC  ../src/eap_server/eap_server_ttls.c
  CC  config_file.c
  CC  ../src/radius/radius.c
  CC  ../src/eap_server/eap_server.c
  CC  ../src/common/ieee802_11_common.c
  CC  ctrl_iface.c
  CC  ../src/ap/hostapd.c
  CC  ../src/crypto/crypto_openssl.c
  CC  ../src/ap/wpa_auth.c
1 warning generated.
  CC  ../src/crypto/tls_openssl.c
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make: stopped in /usr/ports/net/hostapd

-- 
You are receiving this mail because:
You are the assignee for the bug.