Opened 9 years ago
Closed 9 years ago
#1149 closed defect (worksforme)
Issue compiling nginx from source - ssl module
| Reported by: | Owned by: | ||
|---|---|---|---|
| Priority: | major | Milestone: | 1.11 |
| Component: | nginx-module | Version: | 1.10.x |
| Keywords: | Cc: | ||
| uname -a: | Linux 3.2.0-4-686-pae #1 SMP Debian 3.2.82-1 i686 GNU/Linux | ||
| nginx -V: | nginx version: nginx/1.10.2 | ||
Description
Hi , i am trying to compile nginx from source code but i get an issue with ssl module .
objs/src/http/modules/ngx_http_upstream_hash_module.o \
objs/src/http/modules/ngx_http_upstream_ip_hash_module.o \
objs/src/http/modules/ngx_http_upstream_least_conn_module.o \
objs/src/http/modules/ngx_http_upstream_keepalive_module.o \
objs/src/http/modules/ngx_http_upstream_zone_module.o \
objs/ngx_modules.o \
-ldl -lpthread -lcrypt ../pcre-8.39/.libs/libpcre.a -lssl -lcrypto -ldl ../zlib-1.2.8/libz.a \
-Wl,-E
objs/src/event/ngx_event_openssl.o: In function `ngx_ssl_check_host':
/nginxsource/nginx-1.10.2/src/event/ngx_event_openssl.c:2997: undefined referenc e to `X509_check_host'
objs/src/http/modules/ngx_http_ssl_module.o: In function `ngx_http_ssl_merge_srv _conf':
/nginxsource/nginx-1.10.2/src/http/modules/ngx_http_ssl_module.c:653: undefined reference to `SSL_CTX_set_alpn_select_cb'
collect2: error: ld returned 1 exit status
make[1]: *** [objs/nginx] Error 1
make[1]: Leaving directory `/nginxsource/nginx-1.10.2'
make: *** [build] Error 2
Right now nginx is installed on my server and working , but the installation was made by apt mode .
The main reason why i want to compile from source code is to be able to change some parameters in source code of nginx that i am not able to do with the pre-compiled package from dotdeb .
Mostly nginx identification to web and the length of characters in auto index mode that is currently pre configured to 50 .
Attachments (2)
Change History (3)
by , 9 years ago
| Attachment: | configure.txt added |
|---|
comment:1 by , 9 years ago
| Resolution: | → worksforme |
|---|---|
| Status: | new → closed |
According to the errors reported, OpenSSL header files on your system are not in sync with the library file. Check your system, update library and/or downgrade/remove incorrect headers as appropriate.

configure