openssl issue ao instalar o apache 2.4.23

1

Estou tentando instalar o apache2.4.23 no centos 6.8 e estou recebendo isso:

ab.c: In function 'main':
ab.c:2398: warning: implicit declaration of function 'SSLv2_client_method'
ab.c:2398: warning: assignment makes pointer from integer without a cast
ab.c:2412: warning: 'TLSv1_1_client_method' is deprecated (declared at /usr/local/include/openssl/ssl.h:1604)
ab.c:2414: warning: 'TLSv1_2_client_method' is deprecated (declared at /usr/local/include/openssl/ssl.h:1610)
ab.c:2417: warning: 'TLSv1_client_method' is deprecated (declared at /usr/local/include/openssl/ssl.h:1598)
ab.c:2468: warning: implicit declaration of function 'CRYPTO_malloc_init'
/usr/share/apr-1/build/libtool --silent --mode=link gcc -std=gnu99  -g -O2 -pthread   -L/opt/httpd-2.4.25/lib -lssl -lcrypto -lrt -lcrypt -lpthread  \
                 -o ab  ab.lo      /usr/lib64/libaprutil-1.la -ldb-4.7 -lexpat -ldb-4.7 /usr/lib/libapr-1.la -lrt -lcrypt -lpthread -lm
ab.o: In function 'main':
/opt/httpd-2.4.25/support/ab.c:2468: undefined reference to 'CRYPTO_malloc_init'
/opt/httpd-2.4.25/support/ab.c:2398: undefined reference to 'SSLv2_client_method'
collect2: ld returned 1 exit status
make[2]: *** [ab] Erreur 1
make[2]: quittant le répertoire « /opt/httpd-2.4.25/support »
make[1]: *** [all-recursive] Erreur 1
make[1]: quittant le répertoire « /opt/httpd-2.4.25/support »
make: *** [all-recursive] Erreur 

Eu tentei instalar o openssl 1.1.0 e reconfigurar a instalação do apache com:

./configure --enable-layout=admin --enable-mpms-shared=all  --with-ssl=/usr/local/bin/openssl

Ainda recebendo o mesmo problema, alguma idéia?

    
por BOUKANDOURA Mhamed 19.01.2017 / 08:31

1 resposta

0

Depois de muita documentação eu achei que o problema estava em openssl version , no meu caso eu estava usando o openssl 1.1.x assim quando o httpd 2.4.23 foi lançado o openssl 1.1.0 ainda estava beta, eu instalei o openssl 1.0. 2j e eu compilei o apache com o novo ssl:

./configure --with-apr=/usr/local/apr/bin --with-ssl=/usr/local/ssl/bin/

    
por 22.01.2017 / 09:58