Xymon Mailing List Archive search

4.3.5 compile problems Solaris 10 x86

list Roland Soderstrom
Fri, 23 Sep 2011 15:47:14 +1000
Message-Id: <user-24c3c4393f1a@xymon.invalid>

Well,

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.

ipndbb # make install
snip
.....
cd etcfiles; (echo "hosts.cfg"; echo "alerts.cfg"; echo "analysis.cfg"; echo "combo.cfg"; echo "client-local.cfg"; echo "holidays.cfg"; echo "rrddefinitions.cfg"; echo snmpmibs.cfg; echo xymonmenu.cfg) | ../../build/setup-newfiles /usr/local/xymon-4.3.5/server/etc/
ld.so.1: setup-newfiles: fatal: libssl.so.1.0.0: open failed: No such file or directory
Killed
make[1]: *** [install-cfg] Error 137
make[1]: Leaving directory `/var/tmp/xymon-4.3.5/xymond'
make: *** [install-xymond] Error 2

ipndbb # grep ssl Makefile
SSLINCDIR = -I/usr/local/ssl/include
SSLLIBS = -L/usr/local/ssl/lib -lssl -lcrypto
RPATHVAL += /usr/local/ssl/lib
ipndbb # ls -la /usr/local/ssl/lib
total 13618
drwxr-xr-x 4 bin bin 12 Sep 20 08:20 .
drwxr-xr-x 9 bin bin 10 Sep 20 08:20 ..
drwxr-xr-x 2 bin bin 14 Sep 20 08:20 engines
-rw-r--r-- 1 bin bin 2321302 Jun 3 2010 libcrypto.a
lrwxrwxrwx 1 root root 18 Sep 20 08:20 libcrypto.so -> libcrypto.so.1.0.0
-r-xr-xr-x 1 bin bin 1449244 Jun 3 2010 libcrypto.so.0.9.8
-r-xr-xr-x 1 bin bin 1637504 Jun 3 2010 libcrypto.so.1.0.0
-rw-r--r-- 1 bin bin 422352 Jun 3 2010 libssl.a
lrwxrwxrwx 1 root root 15 Sep 20 08:20 libssl.so -> libssl.so.1.0.0
-r-xr-xr-x 1 bin bin 304192 Jun 3 2010 libssl.so.0.9.8
-r-xr-xr-x 1 bin bin 338212 Jun 3 2010 libssl.so.1.0.0
drwxr-xr-x 2 bin bin 5 Sep 20 08:20 pkgconfig
ipndbb # file build/setup-newfiles
build/setup-newfiles: ELF 32-bit LSB executable 80386 Version 1, dynamically linked, not stripped
ipndbb #

- Roland

On 21/09/11 03:18 PM, Henrik Størner wrote:
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

Xymon@xymon.com