Opened 4 years ago

Closed 4 years ago

#1874 closed defect (duplicate)

Nginux 1.16/1.17 Perl Module Fails Ubuntu 18

Reported by: vanquish.security@… Owned by:
Priority: major Milestone: nginx-1.17
Component: nginx-core Version: 1.17.x
Keywords: nginx perl nginx.bs nginx.h nginx.c build failed Cc:
uname -a: Linux ubuntu 5.0.0-31-generic #33~18.04.1-Ubuntu x86_64 x86_64 x86_64 GNU/Linux
nginx -V: Did not compile

Description

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

Change History (2)

comment:1 by vanquish.security@…, 4 years ago

Fixed using the old ticket https://trac.nginx.org/nginx/ticket/1463 and making the changes to the diff output.

comment:2 by Maxim Dounin, 4 years ago

Resolution: duplicate
Status: newclosed

The ticket in question (#1463) has a patch in it. Unfortunately, the reported gave no feedback on the patch, hence the ticket still needs somebody to test the patch. If the patch works for you, please provide feedback there.

Note: See TracTickets for help on using tickets.