4.3.5 compile problems Solaris 10 x86
An HTML attachment was scrubbed... URL: <http://lists.xymon.com/pipermail/xymon/attachments/20110920/d0eff615/attachment.html>
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 < rolands at logicaltech.com.au> 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* rolands at logicaltech.com.au | *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.
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
An HTML attachment was scrubbed... URL: <http://lists.xymon.com/pipermail/xymon/attachments/20110920/24e89fd0/attachment.html>
There's a Makefile.SunOS in the build directory. As long as "uname -s" returns "SunOS", then that file gets included, and in that file there's this line:
NETLIBS = -lresolv -lsocket -lnsl
It looks like that line is not being included for some reason. Dunno why - still don't have a Solaris system here :)
Ralph Mitchell
On Mon, Sep 19, 2011 at 9:52 PM, Roland Soderstrom < rolands at logicaltech.com.au> wrote:
Hi,
Network libraries??? Where should they be and what sort of lib is that?
- Roland
On 20/09/11 10:39 AM, Ralph Mitchell wrote:
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 < rolands at logicaltech.com.au> 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* rolands at logicaltech.com.au | *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.
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
got the same error on SPARC
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I.
-I/opt/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 gmake[1]: *** [loadhosts] Error 1 gmake[1]: Leaving directory /opt/xymon-4.3.5/lib'
gmake: *** [lib-build] Error 2
Best Regards Kumaresh
On Mon, Sep 19, 2011 at 10:21 PM, Ralph Mitchell <ralphmitchell at gmail.com>wrote:
There's a Makefile.SunOS in the build directory. As long as "uname -s" returns "SunOS", then that file gets included, and in that file there's this line:
NETLIBS = -lresolv -lsocket -lnslIt looks like that line is not being included for some reason. Dunno why - still don't have a Solaris system here :)
Ralph Mitchell
On Mon, Sep 19, 2011 at 9:52 PM, Roland Soderstrom < rolands at logicaltech.com.au> wrote:
Hi,
Network libraries??? Where should they be and what sort of lib is that?
- Roland
On 20/09/11 10:39 AM, Ralph Mitchell wrote:
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 < rolands at logicaltech.com.au> 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* rolands at logicaltech.com.au | *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.
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
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
An HTML attachment was scrubbed... URL: <http://lists.xymon.com/pipermail/xymon/attachments/20110921/f2260b08/attachment.html>
in lib/Makefile Make the same change to
stackio: stackio.c libxymon.a $(CC) $(CFLAGS) -DSTANDALONE -o $@ stackio.c ./libxymon.a $(LIBRTDEF)
change it to
$(CC) $(CFLAGS) -DSTANDALONE -o $@ stackio.c ./libxymon.a $(NETLIBS) $(LIBRTDEF)
On Tue, Sep 20, 2011 at 8:06 PM, Roland Soderstrom < rolands at logicaltech.com.au> wrote:
Hi,
Thanks Ralph, Henrik.
Got over the first hurdle... Adding $(NETLIBS) worked just fine.
Now I failed on the next... stackio.c
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 -lresolv -lsocket -lnsl -lrt loadhosts_file.c: In function
load_hostnames': loadhosts_file.c:131: warning: 'insavchar' might be used uninitialized in this function 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 stackio stackio.c ./libxymon.a -lrt stackio.c: In functionstackfgets': stackio.c:424: warning: 'eolchar' might be used uninitialized in this function stackio.c:440: warning: 'eolchar' 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 stackio collect2: ld returned 1 exit status make[1]: *** [stackio] Error 1 make[1]: Leaving directory `/var/tmp/xymon-4.3.5/lib' make: *** [lib-build] Error 2
- Roland
On 20/09/11 03:46 PM, Henrik Størner wrote:
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
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
An HTML attachment was scrubbed... URL: <http://lists.xymon.com/pipermail/xymon/attachments/20110921/e9b518b8/attachment.html>
On 21-09-2011 03:38, Roland Soderstrom wrote:
Lots of NETLIBS missing. After adding these, compilation worked fine.
Thanks, saves me the trouble of finding a Solaris box.
The reason $(NETLIBS) is suddenly needed all these places is because I changed the code that loads the hosts.cfg file, so it can now load it from xymond instead of doing the file I/O by itself. But that means a lot of tools which previously just read stuff from a file now are doing network I/O instead, and therefore they suddenly need these libraries.
And I had just plain forgotten that Solaris has this "feature" of keeping the network stuff in separate libraries.
Regards, Henrik
An HTML attachment was scrubbed... URL: <http://lists.xymon.com/pipermail/xymon/attachments/20110923/b4714ec4/attachment.html>
Den 23-09-2011 07:47, Roland Soderstrom skrev:
SSL with Solaris is not working after all. I finally got to do the make install and it failed on SSL,
Because I don't use it I never really cared before, I just started over again and said no to use SSL. Someone might care and I'm happy to help out debugging. As everything seems to be there it must be a simple config problem.
It is - your SSL libraries are not in the default runtime library path, and since the installation tools ends up being linked so they refer to the SSL libraries, they fail to run.
Do an LD_LIBRARY_PATH=/usr/local/ssl/lib export LD_LIBRARY_PATH before running "make install", and I think it should work.
See the description of how to configuring the system runtime library environment with "crle" at http://www.xymon.com/xymon/help/known-issues.html#solarislinker for a solution to these annoying library issues.
Regards, Henrik
Hi,
Thanks, that worked just fine.
- Roland
On 23/09/11 11:31 PM, Henrik Størner wrote:
Den 23-09-2011 07:47, Roland Soderstrom skrev:
SSL with Solaris is not working after all. I finally got to do the make install and it failed on SSL,
Because I don't use it I never really cared before, I just started over again and said no to use SSL. Someone might care and I'm happy to help out debugging. As everything seems to be there it must be a simple config problem.
It is - your SSL libraries are not in the default runtime library path, and since the installation tools ends up being linked so they refer to the SSL libraries, they fail to run.
Do an LD_LIBRARY_PATH=/usr/local/ssl/lib export LD_LIBRARY_PATH before running "make install", and I think it should work.
See the description of how to configuring the system runtime library environment with "crle" at http://www.xymon.com/xymon/help/known-issues.html#solarislinker for a solution to these annoying library issues.
Regards, Henrik
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
participants (5)
-
henrik@hswn.dk
-
icepickjazz@gmail.com
-
pnkumaresh@gmail.com
-
ralphmitchell@gmail.com
-
rolands@logicaltech.com.au