Opened 2 weeks ago

Closed 2 weeks ago

#1984 closed enhancement (wontfix)

Nginx module installation issue

Reported by: amit000790@… Owned by:
Priority: blocker Milestone:
Component: nginx-module Version: 1.19.x
Keywords: Cc:
uname -a: Linux amit 5.4.0-31-generic #35-Ubuntu SMP Thu May 7 20:20:34 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
nginx -V: nginx version: nginx/1.17.10 (Ubuntu)
built with OpenSSL 1.1.1f 31 Mar 2020 (running with OpenSSL 1.1.1g 21 Apr 2020)
TLS SNI support enabled
configure arguments: --with-cc-opt='-g -O2 -fdebug-prefix-map=/build/nginx-Pmk9_C/nginx-1.17.10=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -Wdate-time -D_FORTIFY_SOURCE=2' --with-ld-opt='-Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -fPIC' --prefix=/usr/share/nginx --conf-path=/etc/nginx/nginx.conf --http-log-path=/var/log/nginx/access.log --error-log-path=/var/log/nginx/error.log --lock-path=/var/lock/nginx.lock --pid-path=/run/nginx.pid --modules-path=/usr/lib/nginx/modules --http-client-body-temp-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-proxy-temp-path=/var/lib/nginx/proxy --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --with-debug --with-compat --with-pcre-jit --with-http_ssl_module --with-http_stub_status_module --with-http_realip_module --with-http_auth_request_module --with-http_v2_module --with-http_dav_module --with-http_slice_module --with-threads --with-http_addition_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_image_filter_module=dynamic --with-http_sub_module --with-http_xslt_module=dynamic --with-stream=dynamic --with-stream_ssl_module --with-mail=dynamic --with-mail_ssl_module

Description

  • When I want to install the Nginx module that time accrued issue.
Error Info

make
make -f objs/Makefile
make[1]: Entering directory '/opt/nginx-0.8.54'
gcc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \

-o objs/src/core/nginx.o \
src/core/nginx.c

In file included from src/os/unix/ngx_linux_config.h:53,

from src/core/ngx_config.h:25,
from src/core/nginx.c:7:

/usr/include/x86_64-linux-gnu/sys/sysctl.h:21:2: error: #warning "The <sys/sysctl.h> header is deprecated and will be removed." [-Werror=cpp]

21 | #warning "The <sys/sysctl.h> header is deprecated and will be removed."

|

cc1: all warnings being treated as errors
make[1]: * [objs/Makefile:331: objs/src/core/nginx.o] Error 1
make[1]: Leaving directory '/opt/nginx-0.8.54'
make:
* [Makefile:8: build] Error 2

Change History (1)

comment:1 by Sergey Kandaurov, 2 weeks ago

Resolution: wontfix
Status: newclosed

nginx-0.8.54 is an old enough version, you'd need at least nginx-1.5.2.

Note: See TracTickets for help on using tickets.