John Levine <
[email protected]> wrote:
I'm trying to build alpine from the github repo. It never worked very well with libressl
so I've installed openssl from homebrew. When I adjust the include and lib paths, the
config script fails:
checking if OpenSSL is LibreSSL... no
checking Openssl library version >= 1.0.0c... yes
checking Openssl library version >= 1.1.0... yes
checking for library containing OpenSSL_version_num... no
configure: error: crypto library NOT found
It is trying to compile a test program that calls OpenSSL_version_num() but poking around stackoverflow it looks like that routine has been deprecated and
maybe undeprecated. I've tried both openssl 1.1 and 3, same problem.
Any suggestions? Using nm on the openssl libraries I don't see that routine.
Well, if you don't see that symbol, then obviously
the library does not have it, right? Anyway:
1) You did not mention github URL, so assuming
https://github.com/alpinemail/alpine
2) You did not mention OS, so guessing MacOS
3) You did not mention the exact OpenSSL 3 version
First of all, after I did "git clone", I can see that
there is a directory called "openssl" and according to
the README, it is OpenSSL 3.0.0-dev. So it seems to
me that alpine ships with this library. But when I
built alpine, it was not used.
On my Fedora Linux 38, just running:
./configure
make
produces a working executable with OpenSSL dynamically
linked in:
foo$ ~/tmp/alp/alpine/alpine$ ldd alpine
linux-vdso.so.1 (0x00007fff59cb9000)
libcrypt.so.2 => /lib64/libcrypt.so.2 (0x00007f18a0eda000)
libssl.so.3 => /lib64/libssl.so.3 (0x00007f18a0e37000)
libcrypto.so.3 => /lib64/libcrypto.so.3 (0x00007f18a0a00000)
libtinfo.so.6 => /lib64/libtinfo.so.6 (0x00007f18a09cd000)
libc.so.6 => /lib64/libc.so.6 (0x00007f18a07ef000)
libz.so.1 => /lib64/libz.so.1 (0x00007f18a07d5000)
/lib64/ld-linux-x86-64.so.2 (0x00007f18a0f2c000)
OpenSSL is 3.0.9:
foo$ ~/tmp/alp/alpine/alpine$ rpm -qf /lib64/libcrypto.so.3 openssl-libs-3.0.9-2.fc38.x86_64
I'd suggest installing OpenSSL 3.0.9 and trying to build
against that.
br,
KK
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)