[Xymon] 4.3.5 compile problems Solaris 10 x86
Henrik Størner
henrik at hswn.dk
Tue Sep 20 07:46:39 CEST 2011
On 20-09-2011 02:03, Roland Soderstrom wrote:
>
> gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I.
> -I/var/tmp/xymon-4.3.5/include -I/usr/local/include -I. -I../include
> -DSTANDALONE -o loadhosts loadhosts.c ./libxymon.a -lrt
> Undefined first referenced
> symbol in file
> recv ./libxymon.a(sendmsg.o)
> getservbyname ./libxymon.a(sendmsg.o)
Oh dear - those Solaris network libraries ...
In lib/Makefile, you need to add "$(NETLIBS)" to the list of libraries
used for the "loadhosts" tool. It is line 66:
loadhosts: loadhosts.c libxymon.a
$(CC) $(CFLAGS) -DSTANDALONE -o $@ loadhosts.c ./libxymon.a
$(LIBRTDEF)
Change it to
loadhosts: loadhosts.c libxymon.a
$(CC) $(CFLAGS) -DSTANDALONE -o $@ loadhosts.c ./libxymon.a
$(NETLIBS) $(LIBRTDEF)
I'll have to dig up a Solaris box to see if the same has to be done
elsewhere.
Regards,
Henrik
More information about the Xymon
mailing list