Compiling hobbit snapshot on Solaris 9 failes (hobbit_client)
list Uwe Kirbach
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: +XX (X)XXX-XX-XXXXX
list Henrik Størner
▸
On Tue, Jul 19, 2005 at 02:39:46PM +0200, user-5709098ff3c3@xymon.invalid wrote:
compiling hobbit snapshot from 19.07.2005 breaks at hobbit_client.c Undefined first referenced symbol in file connect ../lib/libbbgen.a(sendmsg.o)
Hrmpf - I always forget those $(NETLIBS) for Solaris.
Change hobbitd/Makefile, add "$(NETLIBS)" on the line for the
"hobbitd_client" setup, so it becomes:
hobbitd_client: $(CLIENTOBJS) $(LIBOBJS)
$(CC) -o $@ $(RPATHOPT) $(CLIENTOBJS) $(LIBOBJS) $(NETLIBS)
And before everyone asks - yes, this is some work being done on
a Hobbit client. Definitely not ready for anything but my system yet,
but it is getting closer.
Regards,
Henrik
list Uwe Kirbach
Perfect, Henrik, compiles smoothly.
Hrmpf - I always forget those $(NETLIBS) for Solaris.
I saw this errors and your solution also before, but forget it also.
▸
Mit freundlichen Grüßen
Uwe Kirbach
--
Uwe Kirbach
EnBW Service GmbH
Betrieb Enterprise Systeme und Infrastruktur
Systemmanagement Unix
Durlacher Allee 93
76131 Karlsruhe
Tel: +XX (X)XXX-XX-XXXXX
-----Original Message----- From: Henrik Stoerner [mailto:user-ce4a2c883f75@xymon.invalid] Sent: Tuesday, July 19, 2005 3:05 PM To: user-ae9b8668bcde@xymon.invalid Subject: Re: [hobbit] Compiling hobbit snapshot on Solaris 9 failes (hobbit_client) On Tue, Jul 19, 2005 at 02:39:46PM +0200, user-5709098ff3c3@xymon.invalid wrote:compiling hobbit snapshot from 19.07.2005 breaks at hobbit_client.c Undefined first referenced symbol in file connect ../lib/libbbgen.a(sendmsg.o)Hrmpf - I always forget those $(NETLIBS) for Solaris. Change hobbitd/Makefile, add "$(NETLIBS)" on the line for the "hobbitd_client" setup, so it becomes: hobbitd_client: $(CLIENTOBJS) $(LIBOBJS) $(CC) -o $@ $(RPATHOPT) $(CLIENTOBJS) $(LIBOBJS) $(NETLIBS) And before everyone asks - yes, this is some work being done on a Hobbit client. Definitely not ready for anything but my system yet, but it is getting closer. Regards, Henrik