[hobbit] Compiling hobbit snapshot on Solaris 9 failes (hobbit_client)
U.Kirbach at EnBW.com
U.Kirbach at EnBW.com
Tue Jul 19 14:39:46 CEST 2005
Hello All,
compiling hobbit snapshot from 19.07.2005 breaks at hobbit_client.c
gcc -g -O2 -Wall -Wno-unused -Wno-strict-aliasing -D_REENTRANT -DHAVE_RPCENT
-DSunOS -I. -I/usr/local/perf/snapshot/include -c -o hobbitd_client.o
hobbitd_client.c
hobbitd_client.c: In function `unix_memory_report':
hobbitd_client.c:192: warning: `memactpct' might be used uninitialized in
this function
gcc -o hobbitd_client hobbitd_client.o hobbitd_worker.o
../lib/libbbgen.a
Undefined first referenced
symbol in file
connect ../lib/libbbgen.a(sendmsg.o)
gethostbyname ../lib/libbbgen.a(sendmsg.o)
getservbyname ../lib/libbbgen.a(sendmsg.o)
getsockopt ../lib/libbbgen.a(sendmsg.o)
inet_ntoa ../lib/libbbgen.a(sendmsg.o)
inet_aton ../lib/libbbgen.a(sendmsg.o)
recv ../lib/libbbgen.a(sendmsg.o)
shutdown ../lib/libbbgen.a(sendmsg.o)
socket ../lib/libbbgen.a(sendmsg.o)
ld: fatal: Symbol referencing errors. No output written to hobbitd_client
collect2: ld returned 1 exit status
make[1]: *** [hobbitd_client] Error 1
make[1]: Leaving directory `/usr/local/perf/snapshot/hobbitd'
make: *** [hobbitd-build] Error 2
My environment:
#uname -a
SunOS S21117 5.9 Generic_112233-11 sun4u sparc SUNW,Ultra-Enterprise
# gcc -v
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.3/specs
Configured with: ../configure --disable-nls --with-as=/usr/ccs/bin/as
--with-ld=/usr/ccs/bin/ld
Thread model: posix
gcc version 3.3
# gmake -v
GNU Make 3.80
================================================
Other warnings:
make[1]: Entering directory `/usr/local/perf/snapshot/hobbitd'
gcc -g -O2 -Wall -Wno-unused -Wno-strict-aliasing -D_REENTRANT -DHAVE_RPCENT
-DSunOS -I. -I/usr/local/perf/snapshot/include -c -o hobbitd.o hobbitd.c
hobbitd.c: In function `get_config':
hobbitd.c:1590: warning: passing arg 1 of `addtobuffer' from incompatible
pointer type
gcc -g -O2 -Wall -Wno-unused -Wno-strict-aliasing -D_REENTRANT -DHAVE_RPCENT
-DSunOS -I. -I/usr/local/perf/snapshot/include
-I/usr/local/rrdtool-1.0.49/include -I/usr/local/include -c -o do_rrd.o
do_rrd.c
In file included from do_rrd.c:236:
rrd/do_ncv.c: In function `do_ncv_rrd':
rrd/do_ncv.c:53: warning: subscript has type `char'
Thanks in advance
Mit freundlichen Grüßen
Uwe Kirbach
--
Uwe Kirbach
EnBW Service GmbH
Betrieb Enterprise Systeme und Infrastruktur
Systemmanagement Unix
Durlacher Allee 93
76131 Karlsruhe
Tel: +49 (0)721-63-14139
More information about the Xymon
mailing list