problem compiling Hostap against the latest libnl... (prototypes don't match)

Frantisek Rysanek Frantisek.Rysanek
Sat Feb 20 16:28:01 PST 2010


Dear everyone,

sorry to gatecrash your peaceful mailing list... apologies for any 
obvious mistakes on my part, it's rather late and I'm getting sleepy 
:-)

I'm trying to compile "hostap" from a current GIT snapshot
http://w1.fi/gitweb/gitweb.cgi?p=hostap.git;a=summary
last change	Fri, 19 Feb 2010 17:14:41 +0000

against the latest libnl, which appears to be two months old by now:
http://git.kernel.org/?p=libs/netlink/libnl.git;a=summary
last change	Wed, 16 Dec 2009 15:20:46 +0000

What I get is this:

[root at frr hostapd]#  make
../src/drivers/driver_nl80211.c: In function `send_and_recv?:
../src/drivers/driver_nl80211.c:195: warning: passing argument 1 of 
`nl_send_auto_complete? from incompatible pointer type
../src/drivers/driver_nl80211.c:210: warning: passing argument 1 of 
`nl_recvmsgs? from incompatible pointer type
../src/drivers/driver_nl80211.c: In function `nl_get_multicast_id?:
../src/drivers/driver_nl80211.c:275: warning: passing argument 1 of 
`genl_ctrl_resolve? from incompatible pointer type
../src/drivers/driver_nl80211.c: In function 
`wpa_driver_nl80211_event_receive?:
../src/drivers/driver_nl80211.c:963: warning: passing argument 1 of 
`nl_recvmsgs? from incompatible pointer type
../src/drivers/driver_nl80211.c: In function 
`wpa_driver_nl80211_init_nl?:
../src/drivers/driver_nl80211.c:1131: warning: implicit declaration 
of function `nl_handle_alloc_cb?
../src/drivers/driver_nl80211.c:1131: warning: assignment makes 
pointer from integer without a cast
../src/drivers/driver_nl80211.c:1138: warning: assignment makes 
pointer from integer without a cast
../src/drivers/driver_nl80211.c:1145: warning: passing argument 1 of 
`genl_connect? from incompatible pointer type
../src/drivers/driver_nl80211.c:1151: warning: passing argument 1 of 
`genl_connect? from incompatible pointer type
../src/drivers/driver_nl80211.c:1170: warning: passing argument 1 of 
`genl_ctrl_alloc_cache? from incompatible pointer type
../src/drivers/driver_nl80211.c:1170: error: too few arguments to 
function `genl_ctrl_alloc_cache?
../src/drivers/driver_nl80211.c:1176: warning: passing argument 1 of 
`genl_ctrl_alloc_cache? from incompatible pointer type
../src/drivers/driver_nl80211.c:1176: error: too few arguments to 
function `genl_ctrl_alloc_cache?
../src/drivers/driver_nl80211.c:1193: warning: passing argument 1 of 
`nl_socket_add_membership? from incompatible pointer type
../src/drivers/driver_nl80211.c:1203: warning: passing argument 1 of 
`nl_socket_add_membership? from incompatible pointer type
../src/drivers/driver_nl80211.c:1211: warning: passing argument 1 of 
`nl_socket_get_fd? from incompatible pointer type
../src/drivers/driver_nl80211.c:1221: warning: implicit declaration 
of function `nl_handle_destroy?
../src/drivers/driver_nl80211.c: In function 
`wpa_driver_nl80211_deinit?:
../src/drivers/driver_nl80211.c:1463: warning: passing argument 1 of 
`nl_socket_get_fd? from incompatible pointer type
make: *** [../src/drivers/driver_nl80211.o] Error 1


I've tried redirecting the include path for netlink headers into the 
libnl build directory, using the relevant three lines in the Makefile 
(obscuring the system-wide headers at the same time), but the result 
is the same.

Any ideas are welcome :-)

Frank Rysanek




More information about the Hostap mailing list