compile error buglet

Danny Thomas d.thomas at its.uq.edu.au
Sun Feb 21 16:26:56 PST 2016


I’m guessing not too many people have stumbled on this else
it would have been reported & fixed.

My initial build of eapol_test did not define CONFIG_IEEE8021X_EAPOL
and resulted in the these errors.

eapol_test.c:637:32: error: no member named 'eap_workaround' in
      'struct wpa_ssid'
        eapol_conf.workaround = ssid->eap_workaround;
                                ~~~~  ^
eapol_test.c:639:46: error: no member named 'eap' in 'struct wpa_ssid'
        eapol_sm_notify_config(wpa_s->eapol, &ssid->eap, &eapol_conf);


The errors went away after I wrapped each of these lines within
    #ifdef IEEE8021X_EAPOL
    #endif /* IEEE8021X_EAPOL */
to match the structure definition in config_ssid.h.

Defining CONFIG_IEEE8021X_EAPOL=y also resulted in a successful compile.

FWIW OracleLinux 7 aka RHEL7, Clang 3.7.1, wpa_supplicant-2.5.tar.gz


cheers
Danny Thomas





More information about the Hostap mailing list