On Wed, Oct 24, 2012 at 3:46 PM, Markus Amend <[email protected]> wrote: > I have load http://www.infradead.org/~tgr/libnl/files/libnl-3.2.14.tar.gz > extract it and give the following commands as root: > > $ ./configure > $ make > $ make install > > All works fine and netsniff-ng's cmake recognize the new libnl (I haven't > delete the old libnl1). I've pulled the latest version of netsniff-ng from > git and tried to compile, but get the following errors:
I also still have libnl1 installed on my machine, but I removed libnl1-dev headers. Maybe that causes the problem? Can you try to purge the libnl1-dev (but not the libnl1 library itself)? > [ 3%] Building C object > netsniff-ng/CMakeFiles/netsniff-ng.dir/__/proto_80211_mac_hdr.c.o > [ 6%] Building C object > netsniff-ng/CMakeFiles/netsniff-ng.dir/__/xmalloc.c.o > [ 6%] Building C object netsniff-ng/CMakeFiles/netsniff-ng.dir/__/oui.c.o > [ 9%] Building C object netsniff-ng/CMakeFiles/netsniff-ng.dir/__/xio.c.o > [ 12%] Building C object > netsniff-ng/CMakeFiles/netsniff-ng.dir/__/xutils.c.o > [ 12%] Building C object netsniff-ng/CMakeFiles/netsniff-ng.dir/__/bpf.c.o > [ 16%] Building C object > netsniff-ng/CMakeFiles/netsniff-ng.dir/__/mac80211.c.o > /home/markus/Desktop/git_netsniff/netsniff-ng/src/mac80211.c: In function > ‘nl80211_nl_socket_xalloc’: > /home/markus/Desktop/git_netsniff/netsniff-ng/src/mac80211.c:70: error: > implicit declaration of function ‘nl_socket_alloc’ > /home/markus/Desktop/git_netsniff/netsniff-ng/src/mac80211.c:70: warning: > initialization makes pointer from integer without a cast > /home/markus/Desktop/git_netsniff/netsniff-ng/src/mac80211.c: In function > ‘nl80211_init’: > /home/markus/Desktop/git_netsniff/netsniff-ng/src/mac80211.c:82: warning: > passing argument 1 of ‘genl_connect’ from incompatible pointer type > /usr/local/include/libnl3/netlink/genl/genl.h:23: note: expected ‘struct > nl_sock *’ but argument is of type ‘struct nl_sock *’ > /home/markus/Desktop/git_netsniff/netsniff-ng/src/mac80211.c:86: warning: > passing argument 1 of ‘genl_ctrl_alloc_cache’ from incompatible pointer type > /usr/local/include/libnl3/netlink/genl/ctrl.h:25: note: expected ‘struct > nl_sock *’ but argument is of type ‘struct nl_sock *’ > /home/markus/Desktop/git_netsniff/netsniff-ng/src/mac80211.c:89: error: too > many arguments to function ‘nl_geterror’ > /home/markus/Desktop/git_netsniff/netsniff-ng/src/mac80211.c: In function > ‘nl80211_cleanup’: > /home/markus/Desktop/git_netsniff/netsniff-ng/src/mac80211.c:101: error: > implicit declaration of function ‘nl_socket_free’ > /home/markus/Desktop/git_netsniff/netsniff-ng/src/mac80211.c: In function > ‘nl80211_add_mon_if’: > /home/markus/Desktop/git_netsniff/netsniff-ng/src/mac80211.c:121: warning: > passing argument 1 of ‘nl_send_auto_complete’ from incompatible pointer type > /usr/include/netlink/netlink.h:48: note: expected ‘struct nl_handle *’ but > argument is of type ‘struct nl_sock *’ > /home/markus/Desktop/git_netsniff/netsniff-ng/src/mac80211.c:131: warning: > passing argument 1 of ‘nl_wait_for_ack’ from incompatible pointer type > /usr/include/netlink/netlink.h:63: note: expected ‘struct nl_handle *’ but > argument is of type ‘struct nl_sock *’ > /home/markus/Desktop/git_netsniff/netsniff-ng/src/mac80211.c: In function > ‘nl80211_del_mon_if’: > /home/markus/Desktop/git_netsniff/netsniff-ng/src/mac80211.c:164: warning: > passing argument 1 of ‘nl_send_auto_complete’ from incompatible pointer type > /usr/include/netlink/netlink.h:48: note: expected ‘struct nl_handle *’ but > argument is of type ‘struct nl_sock *’ > /home/markus/Desktop/git_netsniff/netsniff-ng/src/mac80211.c:168: warning: > passing argument 1 of ‘nl_wait_for_ack’ from incompatible pointer type > /usr/include/netlink/netlink.h:63: note: expected ‘struct nl_handle *’ but > argument is of type ‘struct nl_sock *’ > /home/markus/Desktop/git_netsniff/netsniff-ng/src/mac80211.c: At top level: > /usr/include/netlink/object.h:58: warning: inline function ‘nl_object_priv’ > declared but never defined > 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 > > Greetings > > > > -----Ursprüngliche Nachricht----- > Von: [email protected] [mailto:[email protected]] Im > Auftrag von Daniel Borkmann > Gesendet: Donnerstag, 18. Oktober 2012 18:57 > An: [email protected] > Betreff: [netsniff-ng] libnl3 > > Hi together, > > the latest version has now been ported from libnl1.1 to libnl3. > (https://github.com/gnumaniacs/netsniff-ng) > > If not in your OS distribution, you can get it via > http://www.infradead.org/~tgr/libnl/ . > > Cheers, > > Daniel > > -- > > > > -- > > --
