On Mon, Sep 17, 2012 at 8:33 PM, Jon Schipp <jonsch...@gmail.com> wrote:
> $ wget http://pub.netsniff-ng.org/netsniff-ng/netsniff-ng-0.5.7.tar.gz
>
> $ uname -a
> Linux nms 3.2.0-30-generic #48-Ubuntu SMP Fri Aug 24 16:52:48 UTC 2012
> x86_64 x86_64 x86_64 GNU/Linux
> ...
> ...
>
> [ 37%] Building C object 
> netsniff-ng/CMakeFiles/netsniff-ng.dir/__/mac80211.c.o
> /root/netsniff-ng-0.5.7/src/mac80211.c:40:33: error: conflicting types
> for ‘nl_socket_alloc’
> /usr/include/netlink/socket.h:22:25: note: previous declaration of
> ‘nl_socket_alloc’ was here
> /root/netsniff-ng-0.5.7/src/mac80211.c: In function ‘nl_socket_alloc’:
> /root/netsniff-ng-0.5.7/src/mac80211.c:42:2: error: implicit
> declaration of function ‘nl_handle_alloc’
> [-Werror=implicit-function-declaration]
> /root/netsniff-ng-0.5.7/src/mac80211.c:42:2: warning: nested extern
> declaration of ‘nl_handle_alloc’ [-Wnested-externs]
> /root/netsniff-ng-0.5.7/src/mac80211.c:42:2: warning: return makes
> pointer from integer without a cast [enabled by default]
> /root/netsniff-ng-0.5.7/src/mac80211.c: At top level:
> /root/netsniff-ng-0.5.7/src/mac80211.c:45:20: error: conflicting types
> for ‘nl_socket_free’
> /usr/include/netlink/socket.h:24:14: note: previous declaration of
> ‘nl_socket_free’ was here
> /root/netsniff-ng-0.5.7/src/mac80211.c: In function ‘nl_socket_free’:
> /root/netsniff-ng-0.5.7/src/mac80211.c:47:2: error: implicit
> declaration of function ‘nl_handle_destroy’
> [-Werror=implicit-function-declaration]
> /root/netsniff-ng-0.5.7/src/mac80211.c:47:2: warning: nested extern
> declaration of ‘nl_handle_destroy’ [-Wnested-externs]
> /root/netsniff-ng-0.5.7/src/mac80211.c: In function ‘__genl_ctrl_alloc_cache’:
> /root/netsniff-ng-0.5.7/src/mac80211.c:55:9: warning: passing argument
> 1 of ‘genl_ctrl_alloc_cache’ from incompatible pointer type [enabled
> by default]
> /usr/include/netlink/genl/ctrl.h:25:14: note: expected ‘struct nl_sock
> *’ but argument is of type ‘struct nl_handle *’
> /root/netsniff-ng-0.5.7/src/mac80211.c:55:9: error: too few arguments
> to function ‘genl_ctrl_alloc_cache’
> /usr/include/netlink/genl/ctrl.h:25:14: note: declared here
> /root/netsniff-ng-0.5.7/src/mac80211.c: In function ‘nl80211_init’:
> /root/netsniff-ng-0.5.7/src/mac80211.c:115:2: warning: passing
> argument 1 of ‘genl_connect’ from incompatible pointer type [enabled
> by default]
> /usr/include/netlink/genl/genl.h:23:13: note: expected ‘struct nl_sock
> *’ but argument is of type ‘struct nl_handle *’
> /root/netsniff-ng-0.5.7/src/mac80211.c: In function ‘nl80211_add_mon_if’:
> /root/netsniff-ng-0.5.7/src/mac80211.c:154:2: warning: passing
> argument 1 of ‘nl_send_auto_complete’ from incompatible pointer type
> [enabled by default]
> /usr/include/netlink/netlink.h:57:14: note: expected ‘struct nl_sock
> *’ but argument is of type ‘struct nl_handle *’
> /root/netsniff-ng-0.5.7/src/mac80211.c:164:2: warning: passing
> argument 1 of ‘nl_wait_for_ack’ from incompatible pointer type
> [enabled by default]
> /usr/include/netlink/netlink.h:71:14: note: expected ‘struct nl_sock
> *’ but argument is of type ‘struct nl_handle *’
> /root/netsniff-ng-0.5.7/src/mac80211.c: In function ‘nl80211_del_mon_if’:
> /root/netsniff-ng-0.5.7/src/mac80211.c:197:2: warning: passing
> argument 1 of ‘nl_send_auto_complete’ from incompatible pointer type
> [enabled by default]
> /usr/include/netlink/netlink.h:57:14: note: expected ‘struct nl_sock
> *’ but argument is of type ‘struct nl_handle *’
> /root/netsniff-ng-0.5.7/src/mac80211.c:201:2: warning: passing
> argument 1 of ‘nl_wait_for_ack’ from incompatible pointer type
> [enabled by default]
> /usr/include/netlink/netlink.h:71:14: note: expected ‘struct nl_sock
> *’ but argument is of type ‘struct nl_handle *’
> cc1: some warnings being treated as errors
> make[2]: *** [netsniff-ng/CMakeFiles/netsniff-ng.dir/__/mac80211.c.o] Error 1
> make[1]: *** [netsniff-ng/CMakeFiles/netsniff-ng.dir/all] Error 2
> make: *** [all] Error 2
>
> Same thing with $ git clone https://github.com/gnumaniacs/netsniff-ng.git
>
> Any ideas on what could be wrong?

What is your libnl version? >= 1.1?

-- 


Reply via email to