Sujet : Re: Programming issue
De : sgk (at) *nospam* REMOVEtroutmask.apl.washington.edu (Steven G. Kargl)
Groupes : comp.unix.bsd.freebsd.miscDate : 28. Feb 2025, 23:10:47
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vptc97$3rm4d$1@dont-email.me>
References : 1 2 3
User-Agent : Pan/0.145 (Duplicitous mercenary valetism; d7e168a git.gnome.org/pan2)
On Fri, 28 Feb 2025 20:17:31 +0000, The Doctor wrote:
In article <vpsnn2$3o0kk$1@dont-email.me>,
Steven G. Kargl <sgk@REMOVEtroutmask.apl.washington.edu> wrote:
On Fri, 28 Feb 2025 14:06:26 +0000, The Doctor wrote:
>
I am trying to compile openssl 3.4 daily snap
>
The openssl executable gives me
ld-elf.so.1: /usr/lib/libssl.so.3: version OPENSSL_3.2.0\
required by /usr/source/openssl-openssl-3.4-20250228/apps/openssl not found
What am I doing wrong?
>
Looks like the executable is linked against the openssl
library installed with FreeBSD. What does ldd(1) say
about the executable you're trying to use?
>
% ldd <path>/apps/openssl
./apps/openssl:
libssl.so.3 => /usr/lib/libssl.so.3 (0xe08e860b000)
libcrypto.so.3 => /usr/lib/libcrypto.so.3 (0xe08e9452000)
>
Also, look at the library cache,
>
% ldconfig -r | grep libssl
158:-lssl.30 => /usr/lib/libssl.so.30
>
118:-lssl.3 => /usr/lib/libssl.so.3
153:-lssl.30 => /usr/lib/libssl.so.30
674:-lssl.16 => /usr/local/lib/libssl.so.16
704:-lsslspamc.0 => /usr/local/lib/libsslspamc.so.0
1448:-lssl.13 => /usr/local/lib/libssl.so.13
2339:-lssl.3 => /usr/local/lib/libssl.so.3
2393:-lssl.4 => /usr/local/lib/compat/pkg/libssl.so.4
Does 3.4 build (and install) a libssl.so.32? IF yes, then
you likely need to set LD_LIBRARY_PATH and/or LD_RUN_PATH
environmental varaible to find it.
It builds a libssl.so.53 and a libcrypto.so.3
Are you install libssl.so.53? That's the one you likely
need.
Also Hereis the script I am using to build openssl 3.4
env LD_LIBRARY_PATH=/usr/local/lib:/lib:/usr/lib PATH=/usr/local/bin:/bin:/usr/bin --with-rpath=-Wl,-rpath, CC=/usr/local/bin/clang19 ./Configure --openssldir=/usr/local/openssl --prefix=/usr/local enable-ec_nistp_64_gcc_128 enable-fips enable-rc5 enable-sctp no-afalgeng no-asan no-brotli no-brotli-dynamic no-buildtest-c++ no-crypto-mdebug no-crypto-mdebug-backtrace no-demos no-egd no-external-tests no-fuzz-afl no-fuzz-libfuzzer no-gost no-h3demo no-jitter no-ktls no-legacy no-md2 no-msan no-pie no-rc2 no-sm2 no-sm3 no-sm4 no-ssl3 no-ssl3-method no-tfo no-tls1 no-tls1_1 no-trace no-ubsan no-unit-test no-uplink no-weak-ssl-ciphers no-winstore no-zlib no-zlib-dynamic no-zstd no-zstd-dynamic ; make depend
That's the script while building. When executing you may to set
the environmental variables to point to where libssl.so.53
lives. If 53 is installed in /usr/local/lib, you may need to
run ldconfig to update the rtld cache. Can you try something like
% cat openssl.sh
#! /bin/sh
LD_LIBRARY_PATH=<path_to_53>
export LD_LIBRARY_PATH
LD_RUN_PATH=<path_to_53>
export LD_RUN_PATH
./apps/openssl $@
-- steve