Welcome! Log In Create A New Profile

Advanced

Unable to compile Nginx 1.22.1 with new modsecurity-v3.0.9 and modsecurity-nginx-v1.0.3

Posted by mkuser143 
Hi,
I was able to compile modsecurity-v3.0.9 partially still not sure whether it compiled sucessfully or not. But modsecurity-nginx-v1.0.3 compile is failing while compiling with Nginx. Below is the error

=== Build modsecurity-nginx v1.0.3
Expanding modsecurity-nginx-v1.0.3
Cleaning ...make: *** No rule to make target `clean'. Stop.
Configuring ...3.10.0-1160.83.1.el7.x86_64
/bin/bash: ./configure: No such file or directory
Compiling (5mins) ...make: *** No targets specified and no makefile found. Stop.
Installing ...cp: cannot stat ‘lib/libmodsecurity*’: No such file or directory
make: *** No rule to make target `install'. Stop.
Build modsecurity_nginx COMPLETED...........

modsecurity-nginx-v1.0.3 is not all compiling and configuring with lib folder.

Below is modsecurity configure step:-

./configure CC="gcc" CFLAGS="-$maix64var" \
--prefix=/local/nginxbuild$m/compiled_modsecurity \
--libdir=/local/nginxbuildx64/compiled_modsecurity/lib \
--with-apr=/local/nginxbuild$m/nginx-$version/srclib/apr \
--with-apu=/local/nginxbuild$m/nginx-$version/srclib/apr-util \
--with-pcre=/local/nginxbuild$m/pcre \
--with-libxml=/local/nginxbuild$m/compiled_libxml2 \
--with-curl=/local/nginxbuild$m/compiled_curl \
--with-lua=/local/nginxbuild$m/compiled_luajit \
--enable-standalone-module \
--disable-mlogc

Below is modsecurity-nginx configure step:-

./configure --prefix=/local/nginxbuild$m/compiled_modsecurity-nginx --libdir=/local/nginxbuildx64/compiled_modsecurity/lib --with-modsecurity=/local/nginxbuild$m/modsecurity-$modsecurityversion --disable-maintainer-mode


Below is Nginx configure step:-

./configure --add-dynamic-module="/local/nginxbuild$m/modsecurity-nginx-$modsecuritynginxversion"

Please advise and give me the pointers where I am failing

Thanks
Manoj
Did anybody compiled modsecurity-nginx-v1.0.3 separately ?
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 277
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