Cannot compile sae_pk_gen without modifying Makefile
Ameer Antar
ameerantar at comcast.net
Fri Sep 27 19:27:28 PDT 2024
The Makefile is not properly setup to compile the sae_pk_gen target. Enabling CONFIG_SAE=y and CONFIG_SAE_PK=y in the configuration is not sufficient to compile. The linker complains about undefined references. The following additions must be made to the Makefile to get it to compile, at least with gcc. Once this is done, 'make sae_pk_gen' can be run without issue.
Signed-off-by: Ameer Antar <ameerantar at comcast.net>
---
diff --git a/hostapd/Makefile b/hostapd/Makefile
index ca44392..afe3d5e 100644
--- a/hostapd/Makefile
+++ b/hostapd/Makefile
@@ -1372,6 +1372,11 @@
SOBJS += ../src/crypto/sha256-kdf.o
SOBJS += ../src/crypto/sha384-kdf.o
SOBJS += ../src/crypto/sha512-kdf.o
+HOBJS += ../src/common/wpa_common.o
+SOBJS += ../src/common/wpa_common.o
+SOBJS += ../src/crypto/random.o
+SOBJS += ../src/crypto/sha1-prf.o
+SOBJS += ../src/utils/eloop.o
_OBJS_VAR := NOBJS
include ../src/objs.mk
--
More information about the Hostap
mailing list