Multiple Compilation Failures on OpenBSD
haywirrr
haywirrr at proton.me
Sun Oct 8 10:09:17 PDT 2023
Hello,
I am attempting to compile a recent version of wpa_supplicant on OpenBSD 7.3 to be used as an 802.1X client. After removing "#include <net/ethernet.h>" from the wpa_supplicant/ctrl_iface.c file (to match the current OpenBSD patches), gmake fails to compile the OpenBSD driver with the following error:
../src/drivers/driver_openbsd.c:98:1: error: function definition is not allowed here
{
^
../src/drivers/driver_openbsd.c:122:1: error: function definition is not allowed here
{
^
../src/drivers/driver_openbsd.c:137:10: error: use of undeclared identifier 'wpa_driver_openbsd_init'; did you mean 'wpa_driver_openbsd_ops'?
.init = wpa_driver_openbsd_init,
^~~~~~~~~~~~~~~~~~~~~~~
wpa_driver_openbsd_ops
../src/drivers/driver_openbsd.c:130:29: note: 'wpa_driver_openbsd_ops' declared here
const struct wpa_driver_ops wpa_driver_openbsd_ops = {
^
../src/drivers/driver_openbsd.c:138:12: error: use of undeclared identifier 'wpa_driver_openbsd_deinit'
.deinit = wpa_driver_openbsd_deinit,
^
../src/drivers/driver_openbsd.c:139:3: error: expected '}'
};
^
../src/drivers/driver_openbsd.c:73:1: note: to match this '{'
{
^
5 errors generated.
gmake: *** [../src/build.rules:86: hostap/build/wpa_supplicant/src/drivers/driver_openbsd.o] Error 1
I don't necessarily need to use the OpenBSD driver, since I only use wpa_supplicant for 802.1X authentication on a wired interface (i.e. the wired driver) but removing references to the OpenBSD driver just creates more errors.
Any assistance would be greatly appreciated, I am not able to access the Internet without wpa_supplicant.
More information about the Hostap
mailing list