Xymon-4.3.0-beta2 compile error Solaris 10 (client)
Rockwell, Jason F
Jason.F.Rockwell at conocophillips.com
Wed May 6 01:04:15 CEST 2009
All,
While attempting to compile the Xymon-4.3.0-beta2 client on a Solaris 10
system I get the following error:
[root at hotce01:...xymon/xymon-4.3.0-beta2]# gmake
MAKE="gmake" CC="gcc" CFLAGS="-g -O2 -Wall -Wno-unused -D_REENTRANT
-DSunOS -I. -I`pwd`/include -DCLIENTONLY=1" LDFLAGS=""
`pwd`/build/genconfig.sh
Checking for socklen_t
Checking for snprintf
Checking for vsnprintf
Checking for rpc/rpcent.h
Checking for sys/select.h
Checking for u_int32_t typedef
Checking for PATH_MAX definition
Checking for SHUT_RD/WR/RDWR definitions
Checking for strtoll()
config.h created
CC="gcc" CFLAGS="-g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I.
-I`pwd`/include -DCLIENTONLY=1" LDFLAGS="" OSDEF="-DSunOS"
RPATHOPT="-Wl,-R" PCREINCDIR="" SSLFLAGS="" SSLINCDIR="" SSLLIBS=""
NETLIBS="-lresolv -lsocket -lnsl" LIBRTDEF="-lrt" BBTOPDIR="/opt/xymon"
BBLOGDIR="" BBHOSTNAME="" BBHOSTIP="127.0.0.1" BBHOSTOS=""
LOCALCLIENT="no" gmake -C lib client
gmake[1]: Entering directory `/var/tmp/xymon/xymon-4.3.0-beta2/lib'
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I.
-I/var/tmp/xymon/xymon-4.3.0-beta2/include -DCLIENTONLY=1 -I.
-I../include -o test-endianness test-endianness.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I.
-I/var/tmp/xymon/xymon-4.3.0-beta2/include -DCLIENTONLY=1 -I.
-I../include -c -o osdefs.o osdefs.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I.
-I/var/tmp/xymon/xymon-4.3.0-beta2/include -DCLIENTONLY=1 -I.
-I../include -c -o cgiurls.o cgiurls.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I.
-I/var/tmp/xymon/xymon-4.3.0-beta2/include -DCLIENTONLY=1 -I.
-I../include -DCLIENTONLY -c -o color-client.o color.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I.
-I/var/tmp/xymon/xymon-4.3.0-beta2/include -DCLIENTONLY=1 -I.
-I../include -c -o digest.o digest.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I.
-I/var/tmp/xymon/xymon-4.3.0-beta2/include -DCLIENTONLY=1 -I.
-I../include -c -o encoding.o encoding.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I.
-I/var/tmp/xymon/xymon-4.3.0-beta2/include -DCLIENTONLY=1 -I.
-I../include -DBBTOPDIR=\"/opt/xymon\" -DBBLOGDIR=\"\"
-DBBHOSTNAME=\"\" -DBBHOSTIP=\"127.0.0.1\" -DBBHOSTOS=\"\"
-DBUILD_HOME=\"/opt/xymon/client\" -c -o environ-client.o environ.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I.
-I/var/tmp/xymon/xymon-4.3.0-beta2/include -DCLIENTONLY=1 -I.
-I../include -c -o errormsg.o errormsg.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I.
-I/var/tmp/xymon/xymon-4.3.0-beta2/include -DCLIENTONLY=1 -I.
-I../include -c -o holidays.o holidays.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I.
-I/var/tmp/xymon/xymon-4.3.0-beta2/include -DCLIENTONLY=1 -I.
-I../include -c -o ipaccess.o ipaccess.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I.
-I/var/tmp/xymon/xymon-4.3.0-beta2/include -DCLIENTONLY=1 -I.
-I../include -c -o loadhosts.o loadhosts.c
loadhosts.c: In function `bbh_find_item':
loadhosts.c:228: warning: return discards qualifiers from pointer target
type
loadhosts.c: In function `bbh_item_id':
loadhosts.c:619: warning: return discards qualifiers from pointer target
type
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I.
-I/var/tmp/xymon/xymon-4.3.0-beta2/include -DCLIENTONLY=1 -I.
-I../include -c -o md5.o md5.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I.
-I/var/tmp/xymon/xymon-4.3.0-beta2/include -DCLIENTONLY=1 -I.
-I../include -c -o memory.o memory.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I.
-I/var/tmp/xymon/xymon-4.3.0-beta2/include -DCLIENTONLY=1 -I.
-I../include -c -o misc.o misc.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I.
-I/var/tmp/xymon/xymon-4.3.0-beta2/include -DCLIENTONLY=1 -I.
-I../include -c -o msort.o msort.c
msort.c: In function `msort':
msort.c:119: warning: passing arg 4 of `qsort' from incompatible pointer
type
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I.
-I/var/tmp/xymon/xymon-4.3.0-beta2/include -DCLIENTONLY=1 -I.
-I../include -c -o rbtr.o rbtr.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I.
-I/var/tmp/xymon/xymon-4.3.0-beta2/include -DCLIENTONLY=1 -I.
-I../include `./test-endianness` -c -o rmd160c.o rmd160c.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I.
-I/var/tmp/xymon/xymon-4.3.0-beta2/include -DCLIENTONLY=1 -I.
-I../include -c -o sendmsg.o sendmsg.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I.
-I/var/tmp/xymon/xymon-4.3.0-beta2/include -DCLIENTONLY=1 -I.
-I../include `./test-endianness` -c -o sha1.o sha1.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I.
-I/var/tmp/xymon/xymon-4.3.0-beta2/include -DCLIENTONLY=1 -I.
-I../include -c -o sha2.o sha2.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I.
-I/var/tmp/xymon/xymon-4.3.0-beta2/include -DCLIENTONLY=1 -I.
-I../include -c -o sig.o sig.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I.
-I/var/tmp/xymon/xymon-4.3.0-beta2/include -DCLIENTONLY=1 -I.
-I../include -c -o stackio.o stackio.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I.
-I/var/tmp/xymon/xymon-4.3.0-beta2/include -DCLIENTONLY=1 -I.
-I../include -c -o strfunc.o strfunc.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I.
-I/var/tmp/xymon/xymon-4.3.0-beta2/include -DCLIENTONLY=1 -I.
-I../include -c -o suid.o suid.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I.
-I/var/tmp/xymon/xymon-4.3.0-beta2/include -DCLIENTONLY=1 -I.
-I../include -DCLIENTONLY -c -o timefunc-client.o timefunc.c
ar cr hobbitclient.a osdefs.o cgiurls.o color-client.o digest.o
encoding.o environ-client.o errormsg.o holidays.o ipaccess.o loadhosts.o
md5.o memory.o misc.o msort.o rbtr.o rmd160c.o sendmsg.o sha1.o sha2.o
sig.o stackio.o strfunc.o suid.o timefunc-client.o
ranlib hobbitclient.a || echo ""
gmake[1]: Leaving directory `/var/tmp/xymon/xymon-4.3.0-beta2/lib'
CC="gcc" CFLAGS="-g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I.
-I`pwd`/include -DCLIENTONLY=1" LDFLAGS="" RPATHOPT="-Wl,-R" SSLFLAGS=""
SSLINCDIR="" SSLLIBS="" NETLIBS="-lresolv -lsocket -lnsl"
LIBRTDEF="-lrt" BBHOME="/opt/xymon/client" gmake -C common client
gmake[1]: Entering directory `/var/tmp/xymon/xymon-4.3.0-beta2/common'
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I.
-I/var/tmp/xymon/xymon-4.3.0-beta2/include -DCLIENTONLY=1 -c -o bb.o
bb.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I.
-I/var/tmp/xymon/xymon-4.3.0-beta2/include -DCLIENTONLY=1 -o
../client/bb bb.o ../lib/hobbitclient.a -lresolv -lsocket -lnsl -lrt
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I.
-I/var/tmp/xymon/xymon-4.3.0-beta2/include -DCLIENTONLY=1 -c -o
hobbitlaunch.o hobbitlaunch.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I.
-I/var/tmp/xymon/xymon-4.3.0-beta2/include -DCLIENTONLY=1 -o
../client/hobbitlaunch hobbitlaunch.o ../lib/hobbitclient.a -lrt
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I.
-I/var/tmp/xymon/xymon-4.3.0-beta2/include -DCLIENTONLY=1 -c -o bbcmd.o
bbcmd.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I.
-I/var/tmp/xymon/xymon-4.3.0-beta2/include -DCLIENTONLY=1 -o
../client/bbcmd bbcmd.o ../lib/hobbitclient.a -lrt
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I.
-I/var/tmp/xymon/xymon-4.3.0-beta2/include -DCLIENTONLY=1 -c -o
bbhostgrep.o bbhostgrep.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I.
-I/var/tmp/xymon/xymon-4.3.0-beta2/include -DCLIENTONLY=1 -o
../client/bbhostgrep bbhostgrep.o ../lib/hobbitclient.a -lresolv
-lsocket -lnsl -lrt
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I.
-I/var/tmp/xymon/xymon-4.3.0-beta2/include -DCLIENTONLY=1 -c -o
bbhostshow.o bbhostshow.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I.
-I/var/tmp/xymon/xymon-4.3.0-beta2/include -DCLIENTONLY=1 -o
../client/bbhostshow bbhostshow.o ../lib/hobbitclient.a -lrt
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I.
-I/var/tmp/xymon/xymon-4.3.0-beta2/include -DCLIENTONLY=1 -c -o
bbdigest.o bbdigest.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I.
-I/var/tmp/xymon/xymon-4.3.0-beta2/include -DCLIENTONLY=1 -o
../client/bbdigest bbdigest.o ../lib/hobbitclient.a -lresolv -lsocket
-lnsl -lrt
gmake[1]: Leaving directory `/var/tmp/xymon/xymon-4.3.0-beta2/common'
CC="gcc" CFLAGS="-g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I.
-I`pwd`/include -DCLIENTONLY=1" LDFLAGS="" RPATHOPT="-Wl,-R" SSLLIBS=""
NETLIBS="-lresolv -lsocket -lnsl" LIBRTDEF="-lrt"
BBHOME="/opt/xymon/client" gmake -C build all
gmake[1]: Entering directory `/var/tmp/xymon/xymon-4.3.0-beta2/build'
gcc -o merge-lines -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I.
-I/var/tmp/xymon/xymon-4.3.0-beta2/include -DCLIENTONLY=1 merge-lines.c
gcc -o merge-sects -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I.
-I/var/tmp/xymon/xymon-4.3.0-beta2/include -DCLIENTONLY=1 merge-sects.c
gcc -o setup-newfiles -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I.
-I/var/tmp/xymon/xymon-4.3.0-beta2/include -DCLIENTONLY=1 -Wl,-R
setup-newfiles.c ../lib/hobbitclient.a -lresolv -lsocket -lnsl -lrt
Undefined first referenced
symbol in file
main
/usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/crt1.o
ld: fatal: Symbol referencing errors. No output written to
setup-newfiles
collect2: ld returned 1 exit status
gmake[1]: *** [setup-newfiles] Error 1
gmake[1]: Leaving directory `/var/tmp/xymon/xymon-4.3.0-beta2/build'
gmake: *** [build-build] Error 2
Has anyone else seen this problem?
Thanks,
Jason Rockwell
ConocoPhillips
Technical Unix Services
<mailto:Jason.F.Rockwell at conocophillips.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20090505/d3282ae5/attachment.html>
More information about the Xymon
mailing list