Hi
I want to configure hostapd in the TX2 for cypress WIFI/BT module bringup.
for setting up hostapd libnl-3.2.25 package and openssl headers are required in TX2.
now when i am trying to compile hostapd, i am facing two errors:
- openssl headers are not present in the gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu toolchain and getting below errors:
…/src/crypto/tls_openssl.c:19:10: fatal error: openssl/ssl.h: No such file or directory
#include <openssl/ssl.h>
^~~~~~~~~~~~~~~
compilation terminated.
Makefile:1293: recipe for target ‘…/src/crypto/tls_openssl.o’ failed
make: *** […/src/crypto/tls_openssl.o] Error 1
- Now if i use the headers of x86_64 and copy them to the device then linking errors are coming
vvdn@anjali:~/projects/ntdi_bag2/Docs/wifi/FMAC/cypress-hostap_2_9/hostap_2_9/hostapd$ export CC=aarch64-linux-gnu-gcc
vvdn@anjali:~/projects/ntdi_bag2/Docs/wifi/FMAC/cypress-hostap_2_9/hostap_2_9/hostapd$ make
CC main.c
CC config_file.c
CC …/src/ap/hostapd.c
CC …/src/ap/wpa_auth_glue.c
CC …/src/ap/drv_callbacks.c
CC …/src/ap/ap_drv_ops.c
CC …/src/ap/utils.c
CC …/src/ap/authsrv.c
CC …/src/ap/ieee802_1x.c
CC …/src/ap/ap_config.c
CC …/src/ap/eap_user_db.c
CC …/src/ap/ieee802_11_auth.c
CC …/src/ap/sta_info.c
CC …/src/ap/wpa_auth.c
CC …/src/ap/tkip_countermeasures.c
CC …/src/ap/ap_mlme.c
CC …/src/ap/wpa_auth_ie.c
CC …/src/ap/preauth_auth.c
CC …/src/ap/pmksa_cache_auth.c
CC …/src/ap/ieee802_11_shared.c
CC …/src/ap/beacon.c
CC …/src/ap/bss_load.c
CC …/src/ap/neighbor_db.c
CC …/src/ap/rrm.c
CC …/src/drivers/drivers.c
CC …/src/utils/eloop.c
CC …/src/utils/common.c
CC …/src/utils/wpa_debug.c
CC …/src/utils/wpabuf.c
CC …/src/utils/os_unix.c
CC …/src/utils/ip_addr.c
CC …/src/common/ieee802_11_common.c
CC …/src/common/wpa_common.c
CC …/src/common/hw_features_common.c
CC …/src/eapol_auth/eapol_auth_sm.c
CC …/src/eapol_auth/eapol_auth_dump.c
CC …/src/radius/radius.c
CC …/src/radius/radius_client.c
CC …/src/radius/radius_das.c
CC …/src/ap/accounting.c
CC …/src/ap/vlan_init.c
CC …/src/ap/vlan_ifconfig.c
CC …/src/ap/vlan.c
CC …/src/common/ctrl_iface_common.c
CC ctrl_iface.c
CC …/src/ap/ctrl_iface_ap.c
CC …/src/ap/iapp.c
CC …/src/drivers/driver_hostap.c
CC …/src/drivers/driver_nl80211.c
CC …/src/drivers/driver_nl80211_capa.c
CC …/src/drivers/driver_nl80211_event.c
CC …/src/drivers/driver_nl80211_monitor.c
CC …/src/drivers/driver_nl80211_scan.c
CC …/src/drivers/netlink.c
CC …/src/drivers/linux_ioctl.c
CC …/src/drivers/rfkill.c
CC …/src/utils/radiotap.c
CC …/src/l2_packet/l2_packet_linux.c
CC …/src/eap_server/eap_server_md5.c
CC …/src/eap_server/eap_server_tls.c
CC …/src/eap_server/eap_server_peap.c
CC …/src/eap_common/eap_peap_common.c
CC …/src/eap_server/eap_server_ttls.c
CC …/src/eap_server/eap_server_mschapv2.c
CC …/src/eap_server/eap_server_gtc.c
CC eap_register.c
CC …/src/eap_server/eap_server.c
CC …/src/eap_common/eap_common.c
CC …/src/eap_server/eap_server_methods.c
CC …/src/eap_server/eap_server_identity.c
CC …/src/crypto/ms_funcs.c
CC …/src/eap_common/chap.c
CC …/src/eap_server/eap_server_tls_common.c
CC …/src/crypto/tls_openssl.c
CC …/src/crypto/tls_openssl_ocsp.c
CC …/src/crypto/crypto_openssl.c
CC …/src/crypto/aes-omac1.c
CC …/src/crypto/sha1-prf.c
CC …/src/crypto/sha1-tlsprf.c
CC …/src/crypto/sha256-prf.c
CC …/src/crypto/sha256-tlsprf.c
CC …/src/crypto/sha256-kdf.c
CC …/src/crypto/random.c
CC …/src/ap/wmm.c
CC …/src/ap/ap_list.c
CC …/src/ap/ieee802_11.c
CC …/src/ap/hw_features.c
CC …/src/ap/dfs.c
CC …/src/drivers/driver_common.c
/usr/lib/gcc-cross/aarch64-linux-gnu/7/…/…/…/…/aarch64-linux-gnu/bin/ld: cannot find -lnl-3
/usr/lib/gcc-cross/aarch64-linux-gnu/7/…/…/…/…/aarch64-linux-gnu/bin/ld: cannot find -lnl-genl-3
/usr/lib/gcc-cross/aarch64-linux-gnu/7/…/…/…/…/aarch64-linux-gnu/bin/ld: cannot find -lssl
/usr/lib/gcc-cross/aarch64-linux-gnu/7/…/…/…/…/aarch64-linux-gnu/bin/ld: cannot find -lcrypto
collect2: error: ld returned 1 exit status
Makefile:1320: recipe for target ‘hostapd’ failed
make: *** [hostapd] Error 1
Please suggest how can i fix these linker error to make hostapd work for cypress module.
Note: Model- TX2 4GB Varient
SW Baseline- R32.4.3