pkgsrc-Users archive

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

Building OpenSSL 3.3.1 links with system libcrypto and libssl



I am trying to build OpenSSL from pkgsrc, but I am running into an issue, 
during build, the system supplied libcrypto and libssl are used, and this 
makes the build fail

${LDCMD:-cc} -pthread -Wa,--noexecstack -O2 -O3 -pipe -I/usr/include -I/usr/
pkg/include  -L/usr/local/lib -L/usr/pkg/gcc7/lib/gcc/x86_64--netbsd/7.5.0 -
Wl,-R/usr/pkg/gcc7/lib/gcc/x86_64--netbsd/7.5.0 -Wl,-zrelro -L/usr/lib -Wl,-R/
usr/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib \
        -o fuzz/quic-srtm-test \
        fuzz/quic-srtm-test-bin-fuzz_rand.o \
        fuzz/quic-srtm-test-bin-quic-srtm.o \
        fuzz/quic-srtm-test-bin-test-corpus.o \
        libssl.a libcrypto.a -pthread
...
apps/libapps.a -lssl -lcrypto -pthread
./libssl.so: undefined reference to safe_muldiv_uint64_t
./libssl.so: undefined reference to safe_mul_uint64_t

I have no /usr/local/lib (I think this is a Linux concept?) and I am pretty 
sure its the L/usr/lib part that makes it fail, and I may be wrong here, but 
would the standard Makefile from pkgsrc/security/openssl not replace the 
system supplied version of OpenSSL? There are multiple warnings about this in 
the OpenSSL documentation, so I can't imagine I am right about this, but --
libdir=lib would place libcrypto.so and libssl.so in /usr/lib?

Attachment: signature.asc
Description: This is a digitally signed message part.



Home | Main Index | Thread Index | Old Index