[Box Backup-dev] Missing libs when building on Solaris
Stefan Norlin
boxbackup-dev@fluffy.co.uk
Wed, 1 Feb 2006 14:08:15 +0100
>> I am not sure where to add it but on Solaris the additional
>> libraries "-lnsl -lsocket" are needed for linking to succeed.
>
> They should be added by virtue of linking to libssl.so. I take it you are
> linking dynamically to openssl? If you link statically this problem can
> occur. There are other problems which occur if you link statically to
> openssl too.
Yes, dynamically.
Get the same problem on Solaris 7 and Solaris 10.
For example, on Solaris 10 I run:
./configure --with-ssl-lib=/usr/sfw/lib --with-ssl-headers=/usr/sfw/include
> If you are linking dynamically then try ldd on libssl.so to see what it
> says.
-bash-3.00$ ldd /usr/sfw/lib/libssl.so
libcrypto.so.0.9.7 => /usr/sfw/lib/libcrypto.so.0.9.7
libc.so.1 => /lib/libc.so.1
libsocket.so.1 => /lib/libsocket.so.1
libnsl.so.1 => /lib/libnsl.so.1
libmp.so.2 => /lib/libmp.so.2
libmd5.so.1 => /lib/libmd5.so.1
libscf.so.1 => /lib/libscf.so.1
libdoor.so.1 => /lib/libdoor.so.1
libuutil.so.1 => /lib/libuutil.so.1
libm.so.2 => /lib/libm.so.2
/platform/SUNW,Sun-Fire-V210/lib/libc_psr.so.1
/platform/SUNW,Sun-Fire-V210/lib/libmd5_psr.so.1
If I understand you correctly this should make nsl and socket libs
to be added "automatically"? Well, it does not seem to happen...
Stefan