Compiling wpa_supplicant for OS X (10.6, 10.7)

Felix Sargent felix.sargent at gmail.com
Mon Aug 8 14:34:04 EDT 2011


Thank you Jouni! That explains a lot. I knew I must have been choosing the
wrong driver/library.

I'm getting this error now, which seems a lot more troubling:

Undefined symbols for architecture x86_64:
  "_sme_state_changed", referenced from:
      _wpas_notify_state_changed in notify.o
  "_sme_deinit", referenced from:
      _wpa_supplicant_deinit_iface in wpa_supplicant.o
  "_sme_authenticate", referenced from:
      _wpa_supplicant_associate in wpa_supplicant.o
  "_sme_event_auth", referenced from:
      _wpa_supplicant_event in events.o
  "_sme_event_disassoc", referenced from:
      _wpa_supplicant_event in events.o
  "_sme_disassoc_while_authenticating", referenced from:
      _wpa_supplicant_event in events.o
  "_sme_event_assoc_reject", referenced from:
      _wpa_supplicant_event in events.o
  "_sme_event_auth_timed_out", referenced from:
      _wpa_supplicant_event in events.o
  "_sme_event_assoc_timed_out", referenced from:
      _wpa_supplicant_event in events.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make: *** [wpa_supplicant] Error 1

Anything I can do?

Felix Sargent
(415) 935-3354
felix.sargent at gmail.com


On Sat, Aug 6, 2011 at 11:11 AM, Jouni Malinen <j at w1.fi> wrote:

> On Fri, Aug 05, 2011 at 02:13:44PM -0700, Felix Sargent wrote:
> > I'm trying to compile for OS X as we're getting consistently frustrated
> with
> > Ethernet 802.1x authentication certificates stored in the OSX keychain,
> and
> > want more access and control over the auth process.
>
> I haven't tested this with OS X, but you can compile wpa_supplicant by
> adding following lines into wpa_supplicant/.config:
>
> CONFIG_DRIVER_WIRED=y
> CONFIG_L2_PACKET=freebsd
>
> > Unfortunately, I'm having  hard time building the driver components.
> > I'm getting a lot of error messages along the lines of:
> >
> > ../src/drivers/driver_wext.c: In function ‘wpa_driver_wext_set_mode’:
> > ../src/drivers/driver_wext.c:2152: error: ‘struct iwreq’ has no member
> named
>
> driver_wext.c is a Linux driver wrapper and there is no point in trying
> to build that for OS X. You will need to remove CONFIG_DRIVER_* lines
> that do not match the target you are build for.
>
> --
> Jouni Malinen                                            PGP id EFC895FA
> _______________________________________________
> HostAP mailing list
> HostAP at lists.shmoo.com
> http://lists.shmoo.com/mailman/listinfo/hostap
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.shmoo.com/pipermail/hostap/attachments/20110808/a51221b0/attachment.htm 


More information about the HostAP mailing list