Problem when compiling latest hostapd against wireless-dev and latest libnl

Andrea Lusuardi - UoVoBW linolusu at tin.it
Thu Sep 6 08:53:43 EDT 2007


Hi everyone,
i am trying to build the latest hostap git sources against the latest
wireless-dev kernel. I already donwloaded and installed the libnl
library (from svn), but i still get a strange compilation error:

cc -MMD -O2 -Wall -g -DHOSTAPD_DUMP_STATE -I../src -I../src/crypto
-I../src/utils -I../src/common -I/usr/src/wireless-dev/net/mac80211
-I/usr/local/include/ -DCONFIG_CTRL_IFACE -DCONFIG_CTRL_IFACE_UNIX
-DCONFIG_IAPP -DCONFIG_RSN_PREAUTH -DCONFIG_PEERKEY
-DCONFIG_DRIVER_HOSTAP -DCONFIG_DRIVER_DEVICESCAPE -DEAP_MD5 -DEAP_TLS
-DEAP_PEAP -DEAP_TTLS -DEAP_MSCHAPv2 -DEAP_GTC -DEAP_TLV -DEAP_SERVER
-DEAP_TLS_FUNCS -DPKCS12_FUNCS -DINTERNAL_SHA256   -c -o
driver_devicescape.o driver_devicescape.c 
driver_devicescape.c: In function 'nl80211_remove_iface':
driver_devicescape.c:813: error: 'NL80211_CMD_DEL_VIRTUAL_INTERFACE'
undeclared (first use in this function) 
driver_devicescape.c:813: error: (Each undeclared identifier is
reported only once 
driver_devicescape.c:813: error: for each function it appears in.)
driver_devicescape.c:814: error: 'NL80211_ATTR_IFINDEX' undeclared
(first use in this function) 
driver_devicescape.c: In function 'nl80211_create_iface':
driver_devicescape.c:838: error: 'NL80211_CMD_ADD_VIRTUAL_INTERFACE'
undeclared (first use in this function) 
driver_devicescape.c:839: error: 'NL80211_ATTR_IFINDEX' undeclared
(first use in this function) 
driver_devicescape.c:841: error: 'NL80211_ATTR_IFNAME' undeclared
(first use in this function) 
driver_devicescape.c:842: error: 'NL80211_ATTR_IFTYPE' undeclared
(first use in this function) 
make: *** [driver_devicescape.o] Error 1

(sorry for the crappy paste, i tried to indent it but the wrap is more
important)

I have the wireless-dev tree in place and correctly configured, i have
the libnl installed:

uovobw at electricmove:~$ file /usr/local/lib/libnl* 
/usr/local/lib/libnl.so:          symbolic link to `libnl.so.1' 
/usr/local/lib/libnl.so.1:        symbolic link to `libnl.so.1.0-pre6' 
/usr/local/lib/libnl.so.1.0-pre6: ELF 32-bit MSB shared object, PowerPC
			or cisco 4500, version 1 (SYSV), not stripped

and the correct includes in place:

uovobw at electricmove:~$ls /usr/local/include/netlink/ 
addr.h  attr.h  cache.h  data.h fib_lookup  genl  handlers.h  list.h
msg.h netlink-compat.h netlink.h  netlink-kernel.h  object.h  route
socket.h  types.h  utils.h

I think i configured correctly the config (comments snipped)

...
CONFIG_DRIVER_DEVICESCAPE=y
...
WIRELESS_DEV=/usr/src/wireless-dev
CFLAGS += -I$(WIRELESS_DEV)/net/mac80211
...
LIBNL=/usr/src/libnl
CFLAGS += -I/usr/local/include/
LIBS += -L/usr/local/lib

and until the introduction of this new nl library everything compiled
and worked fine. Any hints where to look for errors? A big fat rtfm
about linking and making the compiler find the correct symbols? I tried
grepping for the erroring token (NL80211_CMD_DEL_VIRTUAL_INTERFACE ) in
bot the include and the source dir of libnl, but i could not find it...
Thanks a lot for the help and for the mighty hostapd :) 
bye



-- 
           Andrea Lusuardi  -  UoVoBW 
          Registered Linux User #364578
    http://uovobw.homelinux.org/ - GPG: 313C1073
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 827 bytes
Desc: not available
Url : http://lists.shmoo.com/pipermail/hostap/attachments/20070906/b83f389d/attachment.pgp 


More information about the HostAP mailing list