[MacPorts] #12321: libnet and libnet11 conflict

MacPorts noreply at macports.org
Sat Mar 8 05:31:38 PST 2014


#12321: libnet and libnet11 conflict
-------------------------------+--------------------------------
  Reporter:  bahamat@…         |      Owner:  macports-tickets@…
      Type:  defect            |     Status:  new
  Priority:  Normal            |  Milestone:
 Component:  ports             |    Version:
Resolution:                    |   Keywords:
      Port:  libnet, libnet11  |
-------------------------------+--------------------------------

Comment (by alexander.janssen@…):

 So now I seemed to have found something odd; libnet and libnids somehow
 don't work together. When I try linking an application using both, ld
 complains about unresolved symbols:

 {{{
 Undefined symbols for architecture x86_64:
   "_libnet_build_ipv4", referenced from:
       _nids_killtcp_seq in libnids.a(killtcp.o)
   "_libnet_build_tcp", referenced from:
       _nids_killtcp_seq in libnids.a(killtcp.o)
   "_libnet_init", referenced from:
       _raw_init in libnids.a(killtcp.o)
   "_libnet_write", referenced from:
       _nids_killtcp_seq in libnids.a(killtcp.o)
 ld: symbol(s) not found for architecture x86_64
 }}}

 Something's really odd here. The symbols are there though:

 {{{
 $ file libnet.1.dylib
 libnet.1.dylib: Mach-O 64-bit x86_64 dynamically linked shared library
 delicious:lib ajanssen$ nm libnet.1.dylib | grep libnet_build_tcp
 00000000000076a0 T _libnet_build_tcp
 0000000000007960 T _libnet_build_tcp_options
 000000000000e824 s _libnet_build_tcp_options.padding
 delicious:lib ajanssen$ nm libnet.1.dylib | grep libnet_build_ipv4
 0000000000004bd0 T _libnet_build_ipv4
 0000000000005030 T _libnet_build_ipv4_options
 delicious:lib ajanssen$ nm libnet.1.dylib | grep libnet_build_tcp
 00000000000076a0 T _libnet_build_tcp
 0000000000007960 T _libnet_build_tcp_options
 000000000000e824 s _libnet_build_tcp_options.padding
 delicious:lib ajanssen$ nm libnet.1.dylib | grep libnet_init
 0000000000009af0 T _libnet_init
 delicious:lib ajanssen$ nm libnet.1.dylib | grep libnet_write
 000000000000c450 T _libnet_write
 000000000000c9d0 T _libnet_write_link
 000000000000c580 T _libnet_write_raw_ipv4
 000000000000c650 T _libnet_write_raw_ipv6
 }}}

 Any idea what's going on here?

-- 
Ticket URL: <https://trac.macports.org/ticket/12321#comment:14>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list