Welcome! Log In Create A New Profile

Advanced

Re: nginx 1.7.10 + openssl 1.0.2 не удается скомпилировать

Maxim Dounin
March 12, 2015 06:52AM
Hello!

On Wed, Mar 11, 2015 at 08:03:33PM -0400, mikkie wrote:

> Добрый день,
>
> Пытаюсь скомпилировать последнюю версию nginx, но судя по описанию возникает
> проблема с проверками, связанными с ssl
> В процессе ->make
> Возникает следующий набор ошибок:
>
> objs/ngx_modules.o \
> -lpthread -lcrypt -lpcre -lssl -lcrypto -ldl -lz
> objs/src/event/ngx_event_openssl.o: In function `ngx_ssl_check_host':
> /tmp/nginx-1.7.10/src/event/ngx_event_openssl.c:2933: undefined reference to
> `X509_check_host'
> objs/src/http/ngx_http_request.o: In function
> `ngx_http_ssl_handshake_handler':
> /tmp/nginx-1.7.10/src/http/ngx_http_request.c:775: undefined reference to
> `SSL_get0_alpn_selected'
> objs/src/http/modules/ngx_http_ssl_module.o: In function
> `ngx_http_ssl_merge_srv_conf':
> /tmp/nginx-1.7.10/src/http/modules/ngx_http_ssl_module.c:650: undefined
> reference to `SSL_CTX_set_alpn_select_cb'
> collect2: ld returned 1 exit status
> make[1]: *** [objs/nginx] Error 1
> make[1]: Leaving directory `/tmp/nginx-1.7.10'
> make: *** [build] Error 2
>
> Расположение и версия SSL:
> ->which openssl
> ->/usr/local/ssl/bin/openssl
> ->openssl version
> ->OpenSSL 1.0.2 22 Jan 2015
>
> Есть ли предположения как решить данную проблему?

Проверить систему на наличие старых версий OpenSSL, после чего их
вычистить или явно задать приоритет новой версии с помощью флагов
configure:

./configure --with-cc-opt="-I /path/to/ssl/include" --with-ld-opt="-L /path/to/ssl/lib"

Судя по ошибке, у вас заголовочные файлы подбираются от новой
версии OpenSSL, а сама библиотека - старая.

--
Maxim Dounin
http://nginx.org/

_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

nginx 1.7.10 + openssl 1.0.2 не удается скомпилировать

mikkie March 11, 2015 08:03PM

Re: nginx 1.7.10 + openssl 1.0.2 не удается скомпилировать

Maxim Dounin March 12, 2015 06:52AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 319
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready