Apache 2.4 and Openssl 3.3 compilation failed
Marcello Lorenzi <[email protected]>
| Newsgroups | gmane.comp.encryption.openssl.user |
|---|---|
| Message-ID | <CACT02+6KRocwPoCuRmS+hdwYpRos4Cxb=sLUjBRVG+NbUo_BrQ@mail.gmail.com> |
Hi All,
I try to compile Apache 2.4 with newer OpenSSL versions but I can't update
it after the 3.2.1 and I receive this error message:
/tmp/httpd-2.4.63/srclib/apr/libtool --silent --mode=link gcc -g -O2 \
-Wl,-rpath=/usr/local/openssl-3.3.3/lib -o ab ab.lo
/tmp/httpd-2.4.63/srclib/apr-util/libaprutil-1.la -lexpat
/tmp/httpd-2.4.63/srclib/apr/libapr-1.la -lcrypt -lpthread -lm
-L/usr/local/openssl-3.3.3 -L/usr/local/openssl-3.3.3 -pthread -lssl -ldl
-lcrypto -lcrypt -lpthread
/usr/bin/ld: cannot find -lssl
/usr/bin/ld: cannot find -lcrypto
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:73: ab] Error 1
make[2]: Leaving directory '/tmp/httpd-2.4.63/support'
make[1]: *** [/tmp/httpd-2.4.63/build/rules.mk:75: all-recursive] Error 1
make[1]: Leaving directory '/tmp/httpd-2.4.63/support'
make: *** [/tmp/httpd-2.4.63/build/rules.mk:75: all-recursive] Error 1
subprocess exited with status 2
subprocess exited with status 2
I forced the openssl libraries path in different ways (-rpath and
LD_LIBRARY_PATH) withou success but the error isn't present if I use the
3.2.1 openssl version.
The compilation commands are:
&& cd /tmp/openssl-3.3.3 \
&& ./config \
-Wl,--enable-new-dtags \
-Wl,-rpath=/usr/local/openssl-3.3.3/lib \
--prefix=/usr/local/openssl-3.3.3 \
--openssldir=/usr/local/openssl-3.3.3 \
--libdir=/usr/local/openssl-3.3.3/lib \
enable-md2 \
shared \
&& make -j4 \
&& make install install_sw install_ssldirs \
&& export LDFLAGS=-Wl,-rpath=/usr/local/openssl-3.3.3/lib \
&& export
LD_LIBRARY_PATH=/usr/lib:/usr/lib64:/usr/local/openssl-3.3.3/lib:$LD_LIBRARY_PATH
\
&& cd /tmp/httpd-2.4.63 \
&& ./configure \
--prefix=/usr/local/apache/httpd \
--enable-ratelimit \
--enable-so \
--enable-deflate \
--enable-expires \
--enable-unique-id \
--enable-proxy \
--enable-proxy-http \
--enable-ssl \
--enable-rewrite \
--enable-mods-shared=all \
--enable-mpms-shared=all \
--with-mpm=worker \
--with-included-apr \
--enable-nonportable-atomics \
--with-ldap \
--enable-ldap \
--enable-authnz-ldap \
--with-pcre=/usr/local/pcre2 \
--with-ssl=/usr/local/openssl-3.3.3 \
--enable-ssl-staticlib-deps \
--enable-mods-static=ssl \
&& make -j4 \
&& make install
Could you help me to understand the issue?
Thanks,
Marcello
--
You received this message because you are subscribed to the Google Groups "openssl-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openssl-users+unsubscribe-MCmKBN63+Bmbup2nOX2J7Q@public.gmane.org
To view this discussion visit https://groups.google.com/a/openssl.org/d/msgid/openssl-users/CACT02%2B6KRocwPoCuRmS%2BhdwYpRos4Cxb%3DsLUjBRVG%2BNbUo_BrQ%40mail.gmail.com.