NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Troubles using newer OpenSSL on 7.2



NetBSD 7.2 has an optional newer version of OpenSSL available via /usr/pkg/
  openssl-1.0.2p       Secure Socket Layer and cryptographic library
(The version installed with the system is 1.0.1u)

$ locate libssl.so
/usr/lib/i386/libssl.so
/usr/lib/i386/libssl.so.10
/usr/lib/i386/libssl.so.10.6
/usr/lib/libssl.so
/usr/lib/libssl.so.10
/usr/lib/libssl.so.10.6
/usr/pkg/lib/libssl.so
/usr/pkg/lib/libssl.so.1.0.0
$ 

I'm trying to get the build system (waf) for ntpsec to use it.

I've got it linking without errors, but then it can't find the libraries at 
run time.

$ bob2/main/ntpd/ntpd --version
Shared object "libcrypto.so.1.0.0" not found


$ ldd bob2/main/ntpd/ntpd
bob2/main/ntpd/ntpd:
        -lcrypto.1.0.0 => not found
        -lssl.1.0.0 => not found
        -lm.0 => /usr/lib/libm.so.0
        -lgcc_s.1 => /lib/libgcc_s.so.1
        -lc.12 => /usr/lib/libc.so.12
        -lrt.1 => /usr/lib/librt.so.1
        -lpthread.1 => /usr/lib/libpthread.so.1
        -ldns_sd.0 => /usr/lib/libdns_sd.so.0


How do I tell the linker to remember where it found the libraries?

Or what is the right question I should be asking?



-- 
These are my opinions.  I hate spam.





Home | Main Index | Thread Index | Old Index