﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	uname	nginx_version
1874	Nginux 1.16/1.17 Perl Module Fails Ubuntu 18	vanquish.security@…		"Old ticket never fixed? https://trac.nginx.org/nginx/ticket/1463

Nginx 1.16 an 1.17.4


whereis perl
perl: /usr/bin/perl5.26-x86_64-linux-gnu /usr/bin/perl /usr/lib/x86_64-linux-gnu/perl /etc/perl /usr/share/perl /usr/share/man/man1/perl.1.gz

ls -la /opt/ares/web/nginx/nginx-1.16.1
total 804
drwxr-xr-x 11 root root   4096 Oct 14 21:12 .
drwxr-xr-x  4 ares ares   4096 Oct 14 21:16 ..
drwxr-xr-x  6 root root   4096 Oct 14 21:12 auto
-rw-r--r--  1 root root 296463 Aug 13 05:51 CHANGES
-rw-r--r--  1 root root 452171 Aug 13 05:51 CHANGES.ru
drwxr-xr-x  2 root root   4096 Oct 14 21:12 conf
-rwxr-xr-x  1 root root   2502 Aug 13 05:51 configure
drwxr-xr-x  4 root root   4096 Oct 14 21:12 contrib
drwxr-xr-x  2 root root   4096 Oct 14 21:12 html
-rw-r--r--  1 root root   1397 Aug 13 05:51 LICENSE
-rw-r--r--  1 root root    385 Oct 14 21:12 Makefile
drwxr-xr-x  2 root root   4096 Oct 14 21:12 man
drwxrwxr-x 19 root root   4096 Oct 14 21:15 openssl-1.1.1d
drwxr-xr-x  9 root root  12288 Oct 14 21:16 pcre-8.43
-rw-r--r--  1 root root     49 Aug 13 05:51 README
drwxr-xr-x  9 root root   4096 Oct 14 21:12 src
drwxr-xr-x 14 root root   4096 Oct 14 21:16 zlib-1.2.11

./configure --prefix=/etc/nginx \
            --sbin-path=/usr/sbin/nginx \
            --modules-path=/usr/lib/nginx/modules \
            --conf-path=/opt/ares/web/nginx/nginx.conf \
            --error-log-path=/opt/ares/var/logs/nginx/error.log \
            --pid-path=/var/run/nginx.pid \
            --lock-path=/var/run/nginx.lock \
            --user=ares \
            --group=ares \
            --build=nginx-1.16.1 \
            --builddir=/opt/ares/web/nginx \
            --with-select_module \
            --with-poll_module \
            --with-threads \
            --with-file-aio \
            --with-http_ssl_module \
            --with-http_v2_module \
            --with-http_realip_module \
            --with-http_addition_module \
            --with-http_xslt_module=dynamic \
            --with-http_image_filter_module=dynamic \
            --with-http_geoip_module=dynamic \
            --with-http_sub_module \
            --with-http_dav_module \
            --with-http_flv_module \
            --with-http_mp4_module \
            --with-http_gunzip_module \
            --with-http_gzip_static_module \
            --with-http_auth_request_module \
            --with-http_random_index_module \
            --with-http_secure_link_module \
            --with-http_degradation_module \
            --with-http_slice_module \
            --with-http_stub_status_module \
            --with-http_perl_module=dynamic \
            --with-perl_modules_path=/usr/share/perl/5.26 \
            --with-perl=/usr/bin/perl \
            --http-log-path=/opt/ares/var/logs/nginx/access.log \
            --http-client-body-temp-path=/opt/ares/var/logs/nginx/client_temp \
            --http-proxy-temp-path=/opt/ares/var/logs/nginx/proxy_temp \
            --http-fastcgi-temp-path=/opt/ares/var/logs/nginx/fastcgi_temp \
            --http-uwsgi-temp-path=/opt/ares/var/logs/nginx/uwsgi_temp \
            --http-scgi-temp-path=/opt/ares/var/logs/nginx/scgi_temp \
            --with-mail=dynamic \
            --with-mail_ssl_module \
            --with-stream=dynamic \
            --with-stream_ssl_module \
            --with-stream_realip_module \
            --with-stream_geoip_module=dynamic \
            --with-stream_ssl_preread_module \
            --with-compat \
            --with-pcre \
            --with-pcre=pcre-8.43/ \
            --with-pcre-jit \
            --with-zlib=zlib-1.2.11/ \
            --with-openssl=openssl-1.1.1d/ \
            --with-openssl-opt=no-nextprotoneg \
            --with-debug'




/usr/bin/perl Makefile.PL \
		LIB=/usr/share/perl/5.26 \
		INSTALLSITEMAN3DIR=/usr/share/perl/5.26/man3
Generating a Unix-style Makefile
Writing Makefile for nginx
Writing MYMETA.yml and MYMETA.json
cd /opt/ares/web/nginx/src/http/modules/perl && make
make[2]: Entering directory '/opt/ares/web/nginx/src/http/modules/perl'
cp nginx.pm blib/lib/nginx.pm
Running Mkbootstrap for nginx ()
chmod 644 ""nginx.bs""
""/usr/bin/perl"" -MExtUtils::Command::MM -e 'cp_nonempty' -- nginx.bs blib/arch/auto/nginx/nginx.bs 644
make[2]: *** No rule to make target '../../../../../src/core/nginx.h', needed by 'nginx.c'.  Stop.
make[2]: Leaving directory '/opt/ares/web/nginx/src/http/modules/perl'
/opt/ares/web/nginx/Makefile:2070: recipe for target '/opt/ares/web/nginx/src/http/modules/perl/blib/arch/auto/nginx/nginx.so' failed
make[1]: *** [/opt/ares/web/nginx/src/http/modules/perl/blib/arch/auto/nginx/nginx.so] Error 2
make[1]: Leaving directory '/opt/ares/web/nginx/nginx-1.16.1'
Makefile:8: recipe for target 'build' failed
make: *** [build] Error 2"	defect	closed	major	nginx-1.17	nginx-core	1.17.x	duplicate	nginx perl nginx.bs nginx.h nginx.c build failed		Linux ubuntu 5.0.0-31-generic #33~18.04.1-Ubuntu x86_64 x86_64 x86_64 GNU/Linux	Did not compile
