Menu

#2 symbols for inline functions are not exported when built with clang

v1.0_(example)
open
None
5
2015-01-26
2015-01-26
No

Patch submitted for fix

Resolves issue where third party tools are unable to link to libnids e.g dsniff

clang -L/Users/myusr/pkg/lib -L/Users/myusr/pkg/lib -lglib-2.0 -lgthread-2.0 -L/usr/lib -L/Users/myusr/pkg/lib/libnet10 -o dsniff asn1.o base64.o buf.o hex.o magic.o mount.o pcaputil.o rpc.o tcp_raw.o trigger.o record.o dsniff.o decode.o decode_aim.o decode_citrix.o decode_cvs.o decode_ftp.o decode_hex.o decode_http.o decode_icq.o decode_imap.o decode_irc.o decode_ldap.o decode_mmxp.o decode_mountd.o decode_napster.o decode_nntp.o decode_oracle.o decode_ospf.o decode_pcanywhere.o decode_pop.o decode_portmap.o decode_postgresql.o decode_pptp.o decode_rip.o decode_rlogin.o decode_smb.o decode_smtp.o decode_sniffer.o decode_snmp.o decode_socks.o decode_tds.o decode_telnet.o decode_vrrp.o decode_yp.o decode_x11.o -lresolv  -L. -lmissing -L/Users/myusr/pkg/lib -lnids -lpcap -L/Users/myusr/pkg/lib/libnet10 -lnet  -L/Users/myusr/pkg/lib -lssl -lcrypto
Undefined symbols for architecture i386:
  "_ip_compute_csum", referenced from:
      _process_icmp in libnids.a(tcp.o)
  "_ip_fast_csum", referenced from:
      _gen_ip_frag_proc in libnids.a(libnids.o)
  "_my_tcp_check", referenced from:
      _process_tcp in libnids.a(tcp.o)
  "_my_udp_check", referenced from:
      _gen_ip_proc in libnids.a(libnids.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Discussion


Log in to post a comment.

MongoDB Logo MongoDB