[dsc] collector compilation error in solaris
Alexander Gall
gall at switch.ch
Fri Dec 14 08:23:25 UTC 2007
On 14 Dec 2007 07:22:08 -0000, "Avinesh Joshi" <avinesh_joshi at rediffmail.com> said:
>
> After changing it to g++ i am getting following error
> g++ -o dsc base64.o generic_counter.o pcap.o dns_protocol.o dns_message.o ip_message.o daemon.o md_array.o null_index.o qtype_index.o qclass_index.o tld_index.o rcode_index.o qnamelen_index.o qname_index.o msglen_index.o client_ipv4_addr_index.o client_ipv4_net_index.o md_array_xml_printer.o ip_direction_index.o ip_proto_index.o ip_version_index.o certain_qnames_index.o query_classification_index.o idn_qname_index.o edns_version_index.o do_bit_index.o rd_bit_index.o opcode_index.o transport_index.o ParseConfig.o config_hooks.o hashtbl.o lookup3.o xmalloc.o inX_addr.o -lpcap ../TmfBase/Hapy/src/.libs/libHapy.a -lsocket -lnsl
> Undefined first referenced
> symbol in file
> inet_aton query_classification_index.o
> ld: fatal: Symbol referencing errors. No output written to dsc
> collect2: ld returned 1 exit status
> *** Error code 1
> make: Fatal error: Command failed for target `dsc'
inet_aton is in a different library on Solaris 8/9. You need to add
-lresolv to LDFLAGS.
--
Alex
More information about the dsc
mailing list