[dsc] Trying to build dsc...

Dave Swanger swangdb at auburn.edu
Wed Aug 6 13:23:56 UTC 2008


>>> On 8/6/2008 at 12:56 AM, in message
<20080805235527.O36091 at measurement-factory.com>, Duane Wessels
<wessels at measurement-factory.com> wrote:

> On Wed, 6 Aug 2008, James Raftery wrote:
> 
>> I've hit the same problem on Solaris 10 but haven't gotten around to
sending 
> 
>> you the details. daemon.c needs to #include statfs.h (or preferably

> statvfs.h 
>> and use statvfs()) on Solaris.
> 
> 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.

Thanks, I downloaded it to my Solaris 9 machine, tried to make the
collector and had the same error as before.  I've included the output of
the make though the error is at the bottom.  It appears that "#if
HAVE_STATVFS" fails even though statvfs exists on the machine.
***

make
(cd dsc; test -s Makefile || ./configure ; make all)
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for a BSD-compatible install... /opt/sfw/bin/ginstall -c
checking for ncap_create in -lncap... no
checking for pcap_open_live in -lpcap... no
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/sfw/bin/ggrep
checking for egrep... /usr/sfw/bin/ggrep -E
checking for ANSI C header files... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... no
checking for unistd.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for memory.h... (cached) yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking for stdint.h... (cached) no
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking sys/mount.h usability... yes
checking sys/mount.h presence... yes
checking for sys/mount.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/statfs.h usability... yes
checking sys/statfs.h presence... yes
checking for sys/statfs.h... yes
checking sys/statvfs.h usability... yes
checking sys/statvfs.h presence... yes
checking for sys/statvfs.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for int8_t... yes
checking for off_t... yes
checking for pid_t... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for uint8_t... yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking whether gcc needs -traditional... no
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for working memcmp... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking for sys/socket.h... (cached) yes
checking types of arguments for select... int,fd_set *,struct timeval
*
checking whether lstat dereferences a symlink specified with a trailing
slash... no
checking whether stat accepts an empty string... no
checking for dup2... yes
checking for gettimeofday... yes
checking for memset... yes
checking for regcomp... yes
checking for select... yes
checking for strcasecmp... yes
checking for strchr... yes
checking for strdup... yes
checking for strerror... yes
checking for strrchr... yes
checking for strspn... yes
checking for strstr... yes
checking for strtoull... yes
checking for statvfs... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
make[1]: Entering directory
`/usr/local/src/dsc-200808052354/collector/dsc'
gcc -g -Wall -DUSE_IPV6=1 -I ../TmfBase/Hapy/src/include
-I/usr/local/include -g -Wall -DUSE_IPV6=1 -I
../TmfBase/Hapy/src/include -I/usr/local/include  -c -o base64.o
base64.c
gcc -g -Wall -DUSE_IPV6=1 -I ../TmfBase/Hapy/src/include
-I/usr/local/include -g -Wall -DUSE_IPV6=1 -I
../TmfBase/Hapy/src/include -I/usr/local/include  -c -o
generic_counter.o generic_counter.c
gcc -g -Wall -DUSE_IPV6=1 -I ../TmfBase/Hapy/src/include
-I/usr/local/include -g -Wall -DUSE_IPV6=1 -I
../TmfBase/Hapy/src/include -I/usr/local/include  -c -o pcap.o pcap.c
gcc -g -Wall -DUSE_IPV6=1 -I ../TmfBase/Hapy/src/include
-I/usr/local/include -g -Wall -DUSE_IPV6=1 -I
../TmfBase/Hapy/src/include -I/usr/local/include  -c -o ncap.o ncap.c
gcc -g -Wall -DUSE_IPV6=1 -I ../TmfBase/Hapy/src/include
-I/usr/local/include -g -Wall -DUSE_IPV6=1 -I
../TmfBase/Hapy/src/include -I/usr/local/include  -c -o dns_protocol.o
dns_protocol.c
gcc -g -Wall -DUSE_IPV6=1 -I ../TmfBase/Hapy/src/include
-I/usr/local/include -g -Wall -DUSE_IPV6=1 -I
../TmfBase/Hapy/src/include -I/usr/local/include  -c -o dns_message.o
dns_message.c
dns_message.c: In function `printable_dnsname':
dns_message.c:56: warning: subscript has type `char'
gcc -g -Wall -DUSE_IPV6=1 -I ../TmfBase/Hapy/src/include
-I/usr/local/include -g -Wall -DUSE_IPV6=1 -I
../TmfBase/Hapy/src/include -I/usr/local/include  -c -o ip_message.o
ip_message.c
gcc -g -Wall -DUSE_IPV6=1 -I ../TmfBase/Hapy/src/include
-I/usr/local/include -g -Wall -DUSE_IPV6=1 -I
../TmfBase/Hapy/src/include -I/usr/local/include  -c -o daemon.o
daemon.c
daemon.c: In function `write_pid_file':
daemon.c:97: warning: int format, pid_t arg (arg 3)
daemon.c: In function `disk_is_full':
daemon.c:111: error: storage size of 's' isn't known
daemon.c:112: warning: implicit declaration of function `statfs'
daemon.c:111: warning: unused variable `s'
daemon.c: In function `main':
daemon.c:264: warning: int format, pid_t arg (arg 3)
daemon.c:267: warning: int format, pid_t arg (arg 3)
make[1]: *** [daemon.o] Error 1
make[1]: Leaving directory
`/usr/local/src/dsc-200808052354/collector/dsc'
make: *** [all] Error 2



More information about the dsc mailing list