NetBSD-Users archive

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

OpenSSL 1.1.1 missing shared objects



Hi Everyone,

I've read https://www.netbsd.org/docs/elf.html and I am having trouble
understanding some results.

I built and installed OpenSSL 1.1.d in prefix=/usr/local.
LDFLAGS="-Wl,-R,$$ORIGIN/../lib -Wl,-R,/usr/local/lib
-Wl,--enable-new-dtags".

Here is the problem:

    $ /usr/local/bin/openssl version
    Shared object "libssl.so.1.1" not found

Here is what I don't understand:

    $ ldd /usr/local/bin/openssl
    /usr/local/bin/openssl:
        -lssl.1.1 => not found
        -lcrypto.1.1 => not found
        -lpthread.1 => /usr/lib/libpthread.so.1
        -lc.12 => /usr/lib/libc.so.12

But:

    $ objdump -x /usr/local/bin/openssl | grep -E 'RPATH|RUNPATH'
      RUNPATH              $ORIGIN/../lib:/usr/local/lib

And:

    $ ls -1 /usr/local/lib | grep -E 'ssl|crypto'
    libcrypto.a
    libcrypto.so
    libcrypto.so.1.1
    libssl.a
    libssl.so
    libssl.so.1.1

So, the binaries are in the correct location and the runpath has been
set, but the openssl program cannot find the libraries.

Would someone happen to know why openssl cannot find its shared objects?

Thanks in advance.


Home | Main Index | Thread Index | Old Index