Looks like you're not linking one or more network libraries. I don't have a
Solaris system to get any closer than that.
Ralph Mitchell
On Mon, Sep 19, 2011 at 8:03 PM, Roland Soderstrom <
user-0cec9512a49f@xymon.invalid> wrote:
Hi,
Can't compile on Solaris 10 x86
ipndbb # pkginfo|grep SMC
application SMCdb47 db
application SMCevtlog eventlog
application SMCexpat expat
application SMCfontc fontconfig
application SMCfping fping
application SMCftype freetype
application SMCgcc gcc
application SMCgd gd
application SMCgviz graphviz
application SMCjpeg jpeg
application SMClibart libart_lgpl
application SMClibpng libpng
application SMCliconv libiconv
application SMClintl libintl
application SMClynx lynx
application SMCmake make
application SMCncurs ncurses
application SMColdap openldap
application SMCossl openssl
application SMCpcre pcre
application SMCrrdt rrdtool
application SMCsasl sasl
application SMCsudo sudo
application SMCxpm xpm
application SMCzlib zlib
Should take care of all (most?) dependencies
Configure runs fine
Make fail
ipndbb # /usr/local/bin/make
Snip
......
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
loadhosts_file.c: In function `load_hostnames':
loadhosts_file.c:131: 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
make[1]: *** [loadhosts] Error 1
make[1]: Leaving directory `/var/tmp/xymon-4.3.5/lib'
make: *** [lib-build] Error 2
ipndbb #
Any ideas?
Been googling and found nothing
--
Best Regards,
*Roland Soderstrom* | *Senior System Administrator*
*Direct* 03 8643 6485 | *Mobile* 0425 362 611 | *Office* 03 8643
6444
*Email* user-0cec9512a49f@xymon.invalid | *Web* www.logicaltech.com.au
[image: Logicaltech]
Disclaimer: This message contains privileged and confidential information
intended only for the use of the addressee named above.
If you are not the intended recipient of this message you must not
disseminate, copy or take any action in reliance on it.
Any views expressed in this message are those of the individual sender,
except where the sender specifically states them to be the views of the
company.