Issue with building eapol_test for EAP-AKA testing with FreeRadius Server on MacOS Mojave

Martin Edge Martin.Edge at emersion.com
Wed Jan 22 07:58:12 CET 2020


Looks like you have not installed the development libraries 

If using yum - yum list | grep -i openssl | grep devel

> On Jan 22, 2020, at 5:55 PM, Arindam Gupta (arindamg) via Freeradius-Users <freeradius-users at lists.freeradius.org> wrote:
> 
> Thanks Arran for additional pointer, I have used your OSX config from https://github.com/FreeRADIUS/freeradius-server/blob/master/scripts/travis/eapol_test/config_osx, however which executing 
> make eapol_test getting error related to openssl though openssl is installed on my Mac laptop as captured below :
> 
> make eapol_test
> /bin/sh: pkg-config: command not found
>  CC  config.c
>  CC  notify.c
>  CC  bss.c
>  CC  eap_register.c
>  CC  ../src/utils/common.c
>  CC  ../src/utils/wpa_debug.c
>  CC  ../src/utils/wpabuf.c
>  CC  ../src/utils/bitfield.c
>  CC  op_classes.c
>  CC  rrm.c
>  CC  wmm_ac.c
>  CC  ../src/utils/os_unix.c
>  CC  ../src/utils/eloop.c
>  CC  config_file.c
>  CC  ../src/rsn_supp/wpa.c
>  CC  ../src/rsn_supp/preauth.c
>  CC  ../src/rsn_supp/pmksa_cache.c
>  CC  ../src/rsn_supp/wpa_ie.c
>  CC  ../src/common/wpa_common.c
>  CC  ../src/eap_peer/eap_tls.c
>  CC  ../src/eap_peer/eap_peap.c
>  CC  ../src/eap_common/eap_peap_common.c
>  CC  ../src/eap_peer/eap_ttls.c
>  CC  ../src/eap_peer/eap_md5.c
>  CC  ../src/eap_peer/eap_mschapv2.c
>  CC  ../src/eap_peer/mschapv2.c
>  CC  ../src/eap_peer/eap_gtc.c
>  CC  ../src/eap_peer/eap_otp.c
>  CC  ../src/eap_peer/eap_sim.c
>  CC  ../src/eap_peer/eap_leap.c
>  CC  ../src/eap_peer/eap_psk.c
>  CC  ../src/eap_common/eap_psk_common.c
>  CC  ../src/eap_peer/eap_aka.c
>  CC  ../src/eap_common/eap_sim_common.c
>  CC  ../src/eap_peer/eap_fast.c
>  CC  ../src/eap_peer/eap_fast_pac.c
>  CC  ../src/eap_common/eap_fast_common.c
>  CC  ../src/eap_peer/eap_pax.c
>  CC  ../src/eap_common/eap_pax_common.c
>  CC  ../src/eap_peer/eap_sake.c
>  CC  ../src/eap_common/eap_sake_common.c
>  CC  ../src/eap_peer/eap_gpsk.c
>  CC  ../src/eap_common/eap_gpsk_common.c
>  CC  ../src/eap_peer/eap_pwd.c
>  CC  ../src/eap_common/eap_pwd_common.c
>  CC  ../src/eap_peer/eap_eke.c
>  CC  ../src/eap_common/eap_eke_common.c
>  CC  ../src/eap_peer/eap_ikev2.c
>  CC  ../src/eap_peer/ikev2.c
>  CC  ../src/eap_common/eap_ikev2_common.c
>  CC  ../src/eap_common/ikev2_common.c
>  CC  ../src/eap_peer/eap_tnc.c
>  CC  ../src/eap_peer/tncc.c
>  CC  ../src/eapol_supp/eapol_supp_sm.c
>  CC  ../src/eap_peer/eap.c
>  CC  ../src/eap_peer/eap_methods.c
>  CC  ../src/crypto/milenage.c
>  CC  ../src/crypto/ms_funcs.c
>  CC  ../src/eap_common/chap.c
>  CC  ../src/eap_peer/eap_tls_common.c
> ../src/crypto/tls_openssl.c:19:10: fatal error: 'openssl/ssl.h' file not found
> #include <openssl/ssl.h>
>         ^~~~~~~~~~~~~~~
> 1 error generated.
> make: *** [../src/crypto/tls_openssl.o] Error 1
> ARINDAMG-M-91AC:wpa_supplicant arindamg$ pwd
> /Users/arindamg/wpa_supplicant-2.8/wpa_supplicant
> ARINDAMG-M-91AC:wpa_supplicant arindamg$ which openssl
> /usr/bin/openssl
> ARINDAMG-M-91AC:wpa_supplicant arindamg$
> 
> 
> On 22/01/20, 4:04 AM, "Freeradius-Users on behalf of Arran Cudbard-Bell" <freeradius-users-bounces+arindamg=cisco.com at lists.freeradius.org on behalf of a.cudbardb at freeradius.org> wrote:
> 
> 
> 
>>> On 21 Jan 2020, at 17:33, Arran Cudbard-Bell <a.cudbardb at networkradius.com> wrote:
>>> 
>>> 
>>> 
>>>> On 21 Jan 2020, at 12:46, Arindam Gupta (arindamg) via Freeradius-Users <freeradius-users at lists.freeradius.org> wrote:
>>> 
>>> Thank you /K, let me try, in case you have additional references w.r.t. sending EAP-AKA authentication requests using eapol_test please share
> 
>    Shhh, don't let anyone know, but I secretly hid eapol_test build configurations for three platforms, and eapol_test configurations for all the EAP methods FreeRADIUS supports, in the public repository!!!  Sneaky hiding them in plain site I know, almost ensures no one will ever find them!
> 
>    ---
> 
>    The build configuration is here:
> 
>        https://github.com/FreeRADIUS/freeradius-server/blob/master/scripts/travis/eapol_test/config_osx
> 
>    and the test configurations are here: 
> 
>        https://github.com/FreeRADIUS/freeradius-server/tree/master/src/tests/eapol_test
> 
> 
>    -Arran
> 
>    Arran Cudbard-Bell <a.cudbardb at freeradius.org>
>    FreeRADIUS Development Team
> 
>    FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2
> 
> 
>    -
>    List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
> 
> 
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html



More information about the Freeradius-Users mailing list