From azrol at tnb.com.my Mon Sep 26 04:30:13 2011 From: azrol at tnb.com.my (Azrol Hezri Badarudin) Date: Mon, 26 Sep 2011 12:30:13 +0800 Subject: [dsc] Compilation Error Message-ID: <49C5327AF3632346853CC4E9E48521383D5E95@TNBHQVSBE02.tnb.my> Hi, I am having problem to compile dsc on my collector server. Here is the problem. Any feedback is appreciated. g++ -o dsc base64.o generic_counter.o pcap.o ncap.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 country_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 edns_bufsiz_index.o do_bit_index.o rd_bit_index.o opcode_index.o transport_index.o dns_ip_version_index.o dns_source_port_index.o ParseConfig.o config_hooks.o hashtbl.o lookup3.o xmalloc.o inX_addr.o -lsocket -lnsl -lresolv ../TmfBase/Hapy/src/.libs/libHapy.a Undefined first referenced symbol in file pcap_file pcap.o pcap_geterr pcap.o pcap_datalink pcap.o pcap_open_offline pcap.o pcap_stats pcap.o pcap_dispatch pcap.o pcap_get_selectable_fd pcap.o pcap_setnonblock pcap.o pcap_compile pcap.o pcap_setfilter pcap.o pcap_close pcap.o pcap_open_live pcap.o ld: fatal: Symbol referencing errors. No output written to dsc collect2: ld returned 1 exit status make[1]: *** [dsc] Error 1 make[1]: Leaving directory `/tmp/dsc-201106061022/collector/dsc' *** Error code 2 make: Fatal error: Command failed for target `all' -- Azrol -- NOTIFICATION Privileged/confidential information may be contained in this e-mail and any attachment(s). If you are not the intended recipient, any use of, reliance on, reference to, disclosure of, alteration to or copying of the information for any purpose is prohibited. Any information not related to TNB's official business is solely the author's and does not necessarily represent TNB's view and is not necessarily endorsed by TNB. TNB shall not be liable for any loss or damage caused by any illegal activities under the law and/or improper use of e-mail including but not limited to liability related to the content of the e-mail(including viruses and other malicious codes, harassment and defamation ) or related to its dissemination. TNB is not responsible for any unauthorised changes made to the information or for the effect of such changes. From anandb at ripe.net Mon Sep 26 07:48:34 2011 From: anandb at ripe.net (Anand Buddhdev) Date: Mon, 26 Sep 2011 09:48:34 +0200 Subject: [dsc] Compilation Error In-Reply-To: <49C5327AF3632346853CC4E9E48521383D5E95@TNBHQVSBE02.tnb.my> References: <49C5327AF3632346853CC4E9E48521383D5E95@TNBHQVSBE02.tnb.my> Message-ID: <4E802E52.7080302@ripe.net> On 26/09/2011 06:30, Azrol Hezri Badarudin wrote: Hi Azrol, > I am having problem to compile dsc on my collector server. Here is the > problem. Any feedback is appreciated. > > g++ -o dsc base64.o generic_counter.o pcap.o ncap.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 country_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 > edns_bufsiz_index.o do_bit_index.o rd_bit_index.o opcode_index.o > transport_index.o dns_ip_version_index.o dns_source_port_index.o > ParseConfig.o config_hooks.o hashtbl.o lookup3.o xmalloc.o inX_addr.o > -lsocket -lnsl -lresolv > ../TmfBase/Hapy/src/.libs/libHapy.a > > Undefined first referenced > > symbol in file > > pcap_file pcap.o Looks like you don't have libpcap installed. Or, if it's installed, the compiler can't find it. If you're on RedHat- or Debian-like systems, could you try to use your distro's package manager tools (RPM, DPKG) to install the libpcap and libpcap-devel (or libpcap-dev) packages? Anand From azrol at tnb.com.my Mon Sep 26 08:23:21 2011 From: azrol at tnb.com.my (Azrol Hezri Badarudin) Date: Mon, 26 Sep 2011 16:23:21 +0800 Subject: [dsc] Compilation Error In-Reply-To: <4E802E52.7080302@ripe.net> References: <49C5327AF3632346853CC4E9E48521383D5E95@TNBHQVSBE02.tnb.my> <4E802E52.7080302@ripe.net> Message-ID: <49C5327AF3632346853CC4E9E48521383D5FF1@TNBHQVSBE02.tnb.my> Hi Anand, Thank you but I have the solution here... http://www.measurement-factory.com/pipermail/dsc/2008-August/000089.html Tq -----Original Message----- From: Anand Buddhdev [mailto:anandb at ripe.net] Sent: Monday, September 26, 2011 3:49 PM To: Azrol Hezri Badarudin Cc: dsc at measurement-factory.com Subject: Re: Compilation Error On 26/09/2011 06:30, Azrol Hezri Badarudin wrote: Hi Azrol, > I am having problem to compile dsc on my collector server. Here is the > problem. Any feedback is appreciated. > > g++ -o dsc base64.o generic_counter.o pcap.o ncap.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 country_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 > edns_bufsiz_index.o do_bit_index.o rd_bit_index.o opcode_index.o > transport_index.o dns_ip_version_index.o dns_source_port_index.o > ParseConfig.o config_hooks.o hashtbl.o lookup3.o xmalloc.o inX_addr.o > -lsocket -lnsl -lresolv > ../TmfBase/Hapy/src/.libs/libHapy.a > > Undefined first referenced > > symbol in file > > pcap_file pcap.o Looks like you don't have libpcap installed. Or, if it's installed, the compiler can't find it. If you're on RedHat- or Debian-like systems, could you try to use your distro's package manager tools (RPM, DPKG) to install the libpcap and libpcap-devel (or libpcap-dev) packages? Anand NOTIFICATION Privileged/confidential information may be contained in this e-mail and any attachment(s). If you are not the intended recipient, any use of, reliance on, reference to, disclosure of, alteration to or copying of the information for any purpose is prohibited. Any information not related to TNB's official business is solely the author's and does not necessarily represent TNB's view and is not necessarily endorsed by TNB. TNB shall not be liable for any loss or damage caused by any illegal activities under the law and/or improper use of e-mail including but not limited to liability related to the content of the e-mail(including viruses and other malicious codes, harassment and defamation ) or related to its dissemination. TNB is not responsible for any unauthorised changes made to the information or for the effect of such changes.