On Tue, Aug 21, 2012 at 10:39 AM, Markus Amend <[email protected]> wrote:

> I'm actually not able to compile netsniff-ng. OS: Ubuntu 10.04 64bit.
>
> Terminal output after "make"
>
> [...]
> [100%] Building C object
> netsniff-ng/CMakeFiles/netsniff-ng.dir/__/netsniff-ng.c.o
> Linking C executable netsniff-ng
> CMakeFiles/netsniff-ng.dir/__/mac80211.c.o: In function `nl80211_init':
> mac80211.c:(.text+0xba): undefined reference to `nl_handle_alloc'
> mac80211.c:(.text+0xd1): undefined reference to `genl_connect'
> mac80211.c:(.text+0xdd): undefined reference to `genl_ctrl_alloc_cache'
> mac80211.c:(.text+0xf5): undefined reference to `genl_ctrl_search_by_name'
> mac80211.c:(.text+0x122): undefined reference to `genl_ctrl_alloc_cache'
> CMakeFiles/netsniff-ng.dir/__/mac80211.c.o: In function
> `enter_rfmon_mac80211':
> mac80211.c:(.text+0x262): undefined reference to `nlmsg_alloc'
> mac80211.c:(.text+0x278): undefined reference to `genl_family_get_id'
> mac80211.c:(.text+0x29b): undefined reference to `genlmsg_put'
> mac80211.c:(.text+0x2b5): undefined reference to `nla_put'
> mac80211.c:(.text+0x307): undefined reference to `nla_put'
> mac80211.c:(.text+0x32c): undefined reference to `nla_put'
> mac80211.c:(.text+0x341): undefined reference to `nl_send_auto_complete'
> mac80211.c:(.text+0x353): undefined reference to `nl_wait_for_ack'
> mac80211.c:(.text+0x376): undefined reference to `nlmsg_free'
> mac80211.c:(.text+0x3a3): undefined reference to `genl_family_put'
> mac80211.c:(.text+0x3ad): undefined reference to `nl_cache_free'
> mac80211.c:(.text+0x3b7): undefined reference to `nl_handle_destroy'
> mac80211.c:(.text+0x454): undefined reference to `nlmsg_free'
> CMakeFiles/netsniff-ng.dir/__/mac80211.c.o: In function
> `leave_rfmon_mac80211':
> mac80211.c:(.text+0x51a): undefined reference to `nlmsg_alloc'
> mac80211.c:(.text+0x530): undefined reference to `genl_family_get_id'
> mac80211.c:(.text+0x553): undefined reference to `genlmsg_put'
> mac80211.c:(.text+0x56e): undefined reference to `nla_put'
> mac80211.c:(.text+0x583): undefined reference to `nl_send_auto_complete'
> mac80211.c:(.text+0x591): undefined reference to `nl_wait_for_ack'
> mac80211.c:(.text+0x59d): undefined reference to `nlmsg_free'
> mac80211.c:(.text+0x5a7): undefined reference to `genl_family_put'
> mac80211.c:(.text+0x5b1): undefined reference to `nl_cache_free'
> mac80211.c:(.text+0x5bb): undefined reference to `nl_handle_destroy'
> collect2: ld returned 1 exit status
> make[2]: *** [netsniff-ng/netsniff-ng] Error 1
> make[1]: *** [netsniff-ng/CMakeFiles/netsniff-ng.dir/all] Error 2
> make: *** [all] Error 2
>
> It's a problem with netlink? Any ideas?

Hmm, on my Debian stable system (where it links w/o problems), I have
installed the following:

dpkg --get-selections | grep libnl
libnl-dev                                       install
libnl1                                          install

Where the Debian libnl version is 1.1-6, in Ubuntu 10.04 its
1.1-5build1. The diff between "-5" and "-6" in the Debian package only
refers to a bugfix and some Debian-related changes.

Also, from your log, I see that the headers were found otherwise the
build would have stopped earlier. If you remove your src/build/
folder, recreate it and type "cmake ..", what does it say?

Cheers,

Daniel

-- 


Reply via email to