[Xymon] compilation error of xymon on solaris 10 sparc

Sailesh sailesh.mohabeer at mns.intnet.mu
Fri Nov 4 12:52:33 CET 2011


Hi,

 

I am compiling xymon 4.3.5 on solaris 10 sparc. Please see error below.

 

bash-3.00# gmake

CC="gcc" CFLAGS="-g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I.
-I`pwd`/include -I/usr/local/include" LDFLAGS="" OSDEF="-DSunOS" RPATHOPT=""
PCREINCDIR="-I/usr/local/include" SSLFLAGS="-DHAVE_OPENSSL=1"
SSLINCDIR="-I/usr/local/ssl/include " SSLLIBS="-L/usr/local/ssl/lib -lssl
-lcrypto" NETLIBS="-lresolv -lsocket -lnsl" LIBRTDEF="-lrt"
XYMONTOPDIR="/xymon/hobbit" XYMONLOGDIR="/var/log/xymon"
XYMONHOSTNAME="T1000" XYMONHOSTIP="192.168.10.128" XYMONHOSTOS="sunos" gmake
-C lib all

gmake[1]: Entering directory `/xymon/xymon-4.3.5/lib'

gcc -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I.
-I/xymon/xymon-4.3.5/include -I/usr/local/include -I. -I../include  -c -o
loadhosts.o loadhosts.c

loadhosts_file.c: In function `load_hostnames':

loadhosts_file.c:126: warning: 'insavchar' might be used uninitialized in
this function

ar cr libxymon.a osdefs.o acklog.o availability.o calc.o cgi.o cgiurls.o
clientlocal.o color.o crondate.o digest.o encoding.o environ.o errormsg.o
eventlog.o files.o headfoot.o xymonrrd.o holidays.o htmllog.o ipaccess.o
loadalerts.o loadhosts.o loadcriticalconf.o locator.o links.o matching.o
md5.o memory.o misc.o msort.o netservices.o notifylog.o readmib.o
reportlog.o rmd160c.o sendmsg.o sha1.o sha2.o sig.o stackio.o strfunc.o
suid.o timefunc.o timing.o tree.o url.o

ranlib libxymon.a || echo ""

ar cr xymonclient.a osdefs.o cgiurls.o color-client.o crondate.o digest.o
encoding.o environ-client.o errormsg.o holidays.o ipaccess.o loadhosts.o
md5.o memory.o misc.o msort.o rmd160c.o sendmsg.o sha1.o sha2.o sig.o
stackio.o strfunc.o suid.o timefunc-client.o tree.o locator.o

ranlib xymonclient.a || echo ""

gcc -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I.
-I/xymon/xymon-4.3.5/include -I/usr/local/include -I. -I../include
-DSTANDALONE -o loadhosts loadhosts.c ./libxymon.a -lrt

loadhosts_file.c: In function `load_hostnames':

loadhosts_file.c:126: warning: 'insavchar' might be used uninitialized in
this function

Undefined                       first referenced

symbol                             in file

recv                                ./libxymon.a(sendmsg.o)

getservbyname                       ./libxymon.a(sendmsg.o)

gethostbyname                       ./libxymon.a(sendmsg.o)

socket                              ./libxymon.a(sendmsg.o)

getsockopt                          ./libxymon.a(sendmsg.o)

connect                             ./libxymon.a(sendmsg.o)

inet_aton                           ./libxymon.a(sendmsg.o)

inet_ntoa                           ./libxymon.a(sendmsg.o)

shutdown                            ./libxymon.a(sendmsg.o)

ld: fatal: Symbol referencing errors. No output written to loadhosts

collect2: ld returned 1 exit status

gmake[1]: *** [loadhosts] Error 1

gmake[1]: Leaving directory `/xymon/xymon-4.3.5/lib'

gmake: *** [lib-build] Error 2

 

 

Regards,

Sailesh

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20111104/ad5cd31b/attachment.html>


More information about the Xymon mailing list