[dsc] Trying to build dsc...

James Raftery james at now.ie
Wed Aug 6 15:54:14 UTC 2008

On Wed, Aug 06, 2008 at 08:23:56AM -0500, Dave Swanger wrote:
> <20080805235527.O36091 at measurement-factory.com>, Duane Wessels <wessels at measurement-factory.com> wrote:
> > I made these statfs/statvfs changes to configure and daemon.c and
> > put dsc-200808052354.tar.gz up for download if anyone wants to try
> > it.


> It appears that "#if HAVE_STATVFS" fails even though statvfs exists on the machine.


  #include "config.h"

to the top of collector/dsc/daemon.c

I also needed to give the linker some hints to avoid a load of missing

  LD_LIBRARY_PATH="/usr/local/lib" LD_OPTIONS="-lresolv -lnsl -lpcap -lsocket" gmake

FYI, linker error output was:

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 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 op
code_index.o transport_index.o dns_ip_version_index.o dns_source_port_index.o Pa
rseConfig.o config_hooks.o hashtbl.o lookup3.o xmalloc.o inX_addr.o -L/usr/local
/lib ../TmfBase/Hapy/src/.libs/libHapy.a
Undefined                       first referenced
 symbol                             in file
pcap_setfilter                      pcap.o
pcap_open_live                      pcap.o
pcap_open_offline                   pcap.o
pcap_geterr                         pcap.o
pcap_dispatch                       pcap.o
pcap_close                          pcap.o
pcap_file                           pcap.o
pcap_get_selectable_fd              pcap.o
getprotobynumber                    ip_proto_index.o
inet_aton                           query_classification_index.o
inet_pton                           inX_addr.o
inet_ntop                           inX_addr.o
pcap_datalink                       pcap.o
pcap_compile                        pcap.o
ld: fatal: Symbol referencing errors. No output written to dsc
collect2: ld returned 1 exit status
gmake[1]: *** [dsc] Error 1
gmake[1]: Leaving directory `/usr/local/src/dsc-200808052354/collector/dsc'
gmake: *** [all] Error 2

This is on Solaris 10 (5/2008) on SPARC using Sun's gcc (`gcc version 3.4.3
(csl-sol210-3_4-branch+sol_rpath)') and the Sun ld (identified as `ld: Software
Generation Utilities - Solaris Link Editors: 5.10-1.489').

Times flies like an arrow. Fruit flies like bananas.

More information about the dsc mailing list