On Mon, Nov 5, 2012 at 10:25 AM, Daniel Borkmann <[email protected]> wrote:
> On Mon, Nov 5, 2012 at 3:12 PM, Doug Burks <[email protected]> wrote:
>> On Mon, Nov 5, 2012 at 8:58 AM, Daniel Borkmann <[email protected]> 
>> wrote:
>>> Would this work? ... if you simply change the order of libs that are
>>> used by the linker, I have read somewhere that this could cause such
>>> an error.
>>
>> Tried this and got the same error.
>>
>>> You could also try to remove -lpthread and leave -lnl-genl-3
>>> as the only one - it will still be pulled later on:
>>
>> Tried this and got the same error.
>>
>> netsniff-ng/Makefile:
>> netsniff-ng-libs =      -lnl-genl-3
>> netsniff-ng-objs =      hash.o \
>> <snip>
>>
>> make netsniff-ng
>> Building netsniff-ng:
>> -e   CC hash.c
>> -e   CC mac80211.c
>> -e   CC dissector.c
>> -e   CC dissector_eth.c
>> -e   CC dissector_80211.c
>> -e   CC proto_arp.c
>> -e   CC proto_ethernet.c
>> -e   CC proto_icmpv4.c
>> -e   CC proto_icmpv6.c
>> -e   CC proto_igmp.c
>> -e   CC proto_ip_authentication_hdr.c
>> -e   CC proto_ip_esp.c
>> -e   CC proto_ipv4.c
>> -e   CC proto_ipv6.c
>> -e   CC proto_ipv6_dest_opts.c
>> -e   CC proto_ipv6_fragm.c
>> -e   CC proto_ipv6_hop_by_hop.c
>> -e   CC proto_ipv6_in_ipv4.c
>> -e   CC proto_ipv6_mobility_hdr.c
>> -e   CC proto_ipv6_no_nxt_hdr.c
>> -e   CC proto_ipv6_routing.c
>> -e   CC proto_none.c
>> -e   CC proto_tcp.c
>> -e   CC proto_udp.c
>> -e   CC proto_vlan.c
>> -e   CC proto_vlan_q_in_q.c
>> -e   CC proto_mpls_unicast.c
>> -e   CC proto_80211_mac_hdr.c
>> -e   CC xio.c
>> -e   CC xutils.c
>> xutils.c: In function ‘set_system_socket_mem’:
>> xutils.c:274:10: warning: variable ‘ret’ set but not used
>> [-Wunused-but-set-variable]
>> -e   CC xmalloc.c
>> -e   CC bpf.c
>> -e   CC oui.c
>> -e   CC pcap.c
>> -e   CC pcap_rw.c
>> -e   CC pcap_sg.c
>> -e   CC pcap_mmap.c
>> -e   CC ring_rx.c
>> -e   CC ring_tx.c
>> -e   CC mtrand.c
>> -e   CC tprintf.c
>> -e   CC netsniff-ng.c
>> -e   LD netsniff-ng
>> /usr/bin/ld: netsniff-ng/mac80211.o: undefined reference to symbol 
>> 'nlmsg_alloc'
>> /usr/bin/ld: note: 'nlmsg_alloc' is defined in DSO /lib/libnl-3.so.200
>> so try adding it to the linker command line
>> /lib/libnl-3.so.200: could not read symbols: Invalid operation
>> collect2: ld returned 1 exit status
>> make: *** [netsniff-ng] Error 1
>
> Please pull. I've added -lnl-3 . Sometimes reading error messages helps.
>
> Should work now. ^{tm} ;-)

Nice!

make netsniff-ng
Building netsniff-ng:
-e   CC hash.c
-e   CC mac80211.c
-e   CC dissector.c
-e   CC dissector_eth.c
-e   CC dissector_80211.c
-e   CC proto_arp.c
-e   CC proto_ethernet.c
-e   CC proto_icmpv4.c
-e   CC proto_icmpv6.c
-e   CC proto_igmp.c
-e   CC proto_ip_authentication_hdr.c
-e   CC proto_ip_esp.c
-e   CC proto_ipv4.c
-e   CC proto_ipv6.c
-e   CC proto_ipv6_dest_opts.c
-e   CC proto_ipv6_fragm.c
-e   CC proto_ipv6_hop_by_hop.c
-e   CC proto_ipv6_in_ipv4.c
-e   CC proto_ipv6_mobility_hdr.c
-e   CC proto_ipv6_no_nxt_hdr.c
-e   CC proto_ipv6_routing.c
-e   CC proto_none.c
-e   CC proto_tcp.c
-e   CC proto_udp.c
-e   CC proto_vlan.c
-e   CC proto_vlan_q_in_q.c
-e   CC proto_mpls_unicast.c
-e   CC proto_80211_mac_hdr.c
-e   CC xio.c
-e   CC xutils.c
-e   CC xmalloc.c
-e   CC bpf.c
-e   CC oui.c
-e   CC pcap.c
-e   CC pcap_rw.c
-e   CC pcap_sg.c
-e   CC pcap_mmap.c
-e   CC ring_rx.c
-e   CC ring_tx.c
-e   CC mtrand.c
-e   CC tprintf.c
-e   CC netsniff-ng.c
-e   LD netsniff-ng
-e   STRIP      netsniff-ng

Thanks!
-- 
Doug Burks
http://securityonion.blogspot.com

-- 


Reply via email to