Client build fails on Debian 2.1/slink (i386)

Charles Goyard cgoyard at cvf.fr
Thu Jul 20 17:35:03 CEST 2006


Hi,

I got a conflict with dprintf() when compiling the hobbit client on
Debian 2.1.

It runs :

GNU C Library production release version 2.0.7, by Roland McGrath et al.
gcc 2.7.2.3

The error is :

gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DLINUX -I. -I/tmp/cvf/include -DCLIENTONLY=1 -I. -I../include    -c cgiurls.c -o cgiurls.o
In file included from /tmp/cvf/include/libbbgen.h:55,
                 from cgiurls.c:24:
/tmp/cvf/include/../lib/errormsg.h:21: conflicting types for `dprintf'
/usr/include/stdio.h:159: previous declaration of `dprintf'

I guess this is a problem with former releases of gcc that fails to have
multiple prototypes.

If I add -D__STRICT_ANSI__ or -ansi to CFLAGS (stdio.h' dprintf is
conditionnal to this), it builds a little more and fails later :

gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DLINUX -I. -I/tmp/cvf/include -ansi -DCLIENTONLY=1 -I. -I../include    -c sig.c -o sig.o
sig.c: In function `setup_signalhandler':
sig.c:77: storage size of `sa' isn't known
sig.c:107: warning: implicit declaration of function `sigaction'

Any ideas ?


(by the way debian 2.1 needs sco's PATH_MAX... patch too)

-- 
Charles Goyard - cgoyard at cvf.fr - (+33) 1 45 38 01 31



More information about the Xymon mailing list