Xymon Mailing List Archive search

Compile errors on snapshot

3 messages in this thread

list David Gore · Sat, 06 Aug 2005 16:00:08 +0000 ·
gcc -g -O -D_REENTRANT -DNO_VSNPRINTF -DOSF -I. 
-I/var/tmp/snapshot/include -DCLIENTONLY=1 -o ../client/bb sendmsg-std.o 
../lib/hobbitclient.a
/usr/bin/ld:
Unresolved:
vsnprintf
snprintf
collect2: ld returned 1 exit status
make[1]: *** [../client/bb] Error 1
make[1]: Leaving directory `/var/tmp/snapshot/common'
make: *** [common-client] Error 2

-DNO_VSNPRINTF should not try to use [v]snprintf?.

# uname -a
OSF1 rchimfm2 V4.0 1229 alpha


-- 
David
list Henrik Størner · Sat, 6 Aug 2005 18:26:20 +0200 ·
quoted from David Gore
On Sat, Aug 06, 2005 at 04:00:08PM +0000, David Gore wrote:
gcc -g -O -D_REENTRANT -DNO_VSNPRINTF -DOSF -I. 
-I/var/tmp/snapshot/include -DCLIENTONLY=1 -o ../client/bb sendmsg-std.o 
../lib/hobbitclient.a
/usr/bin/ld:
Unresolved:
vsnprintf
snprintf
collect2: ld returned 1 exit status
Could you run
	make clean
	make include/config.h
and let me see what's in the include/config.h file ?


Henrik
list David Gore · Sat, 06 Aug 2005 16:43:34 +0000 ·
quoted from Henrik Størner
Henrik Stoerner wrote:
On Sat, Aug 06, 2005 at 04:00:08PM +0000, David Gore wrote:
gcc -g -O -D_REENTRANT -DNO_VSNPRINTF -DOSF -I. -I/var/tmp/snapshot/include -DCLIENTONLY=1 -o ../client/bb sendmsg-std.o ../lib/hobbitclient.a
/usr/bin/ld:
Unresolved:
vsnprintf
snprintf
collect2: ld returned 1 exit status

Could you run
	make clean
	make include/config.h
and let me see what's in the include/config.h file ?
# make include/config.h
MAKE="make" CC="cc" CFLAGS="-g -O -D_REENTRANT -DNO_VSNPRINTF -DOSF -I. -I`pwd`/include -DCLIENTONLY=1" `pwd`/build/genconfig.sh
Checking for socklen_t
Checking for snprintf
Checking for vsnprintf
Checking for rpc/rpcent.h
Checking for sys/select.h
config.h created
# find . -name config.h
./include/config.h
# cat ./include/config.h
/* This file is auto-generated */
#ifndef __CONFIG_H__
#define __CONFIG_H__ 1
#undef HAVE_SOCKLEN_T
#define HAVE_SNPRINTF 1
#define HAVE_VSNPRINTF 1
#undef HAVE_RPCENT_H
#define HAVE_SYS_SELECT_H 1
#endif

config.h came out wrong, looks like it thinks it has [v]snprintf?  This is from removing the current snapshot and re-extracting it and starting from scratch since it claimed config.h was already up to date after the 'make clean'.
Henrik