Error `AM_PROG_AR' not found in library updating modsecurity

jonium

Verified User
Joined
Nov 10, 2010
Messages
129
Location
Alezio - Lecce- Apulia - South Italy
Hello,

I have a server with:
CentOS release 6.10 (Final)
DA 1.55
Custombuild 2.0.0 (rev: 1972)
Apache 2.4.37


Updating modsecurity from 2.9.2 to 2.9.3 I got this error:

Code:
Updating ModSecurity
Downloading		modsecurity-2.9.3.tar.gz...
--2018-12-17 19:50:36--  http://files9.directadmin.com/services/custombuild/modsecurity-2.9.3.tar.gz
Resolving files9.directadmin.com... 69.162.69.58
Connecting to files9.directadmin.com|69.162.69.58|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2322235 (2.2M) [application/x-gzip]
Saving to: `/usr/local/directadmin/custombuild/modsecurity-2.9.3.tar.gz'

     0K .......... .......... .......... .......... ..........  2%  190K 12s
...
  2250K .......... .......                                    100% 11.5M=1.6s

2018-12-17 19:50:38 (1.41 MB/s) - `/usr/local/directadmin/custombuild/modsecurity-2.9.3.tar.gz' saved [2322235/2322235]

Found /usr/local/directadmin/custombuild/modsecurity-2.9.3.tar.gz
Extracting /usr/local/directadmin/custombuild/modsecurity-2.9.3.tar.gz...
Installing modsecurity-2.9.3...
calling aclocal:
configure.ac:50: warning: macro `AM_PROG_AR' not found in library
/usr/bin/m4:configure.ac:204: bad expression in eval: m4_esyscmd_s(cat headers/modsecurity/modsecurity.h | grep "define MODSECURITY_MAJOR " | awk {'print '} | sed 's/\"//g') + m4_esyscmd_s(cat headers/modsecurity/modsecurity.h | grep "define MODSECURITY_MINOR " | awk {'print '} | sed 's/\"//g')
autom4te: /usr/bin/m4 failed with exit status: 1
aclocal: autom4te failed with exit status: 1
calling libtoolize:
libtoolize: putting auxiliary files in `.'.
libtoolize: linking file `./ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `build'.
libtoolize: linking file `build/libtool.m4'
libtoolize: linking file `build/ltoptions.m4'
libtoolize: linking file `build/ltsugar.m4'
libtoolize: linking file `build/ltversion.m4'
libtoolize: linking file `build/lt~obsolete.m4'
calling automake:
/usr/bin/m4:configure.ac:204: bad expression in eval: m4_esyscmd_s(cat headers/modsecurity/modsecurity.h | grep "define MODSECURITY_MAJOR " | awk {'print '} | sed 's/\"//g') + m4_esyscmd_s(cat headers/modsecurity/modsecurity.h | grep "define MODSECURITY_MINOR " | awk {'print '} | sed 's/\"//g')
autom4te: /usr/bin/m4 failed with exit status: 1
automake: autoconf failed with exit status: 1
calling autoreconf:
configure.ac:50: warning: macro `AM_PROG_AR' not found in library
/usr/bin/m4:configure.ac:204: bad expression in eval: m4_esyscmd_s(cat headers/modsecurity/modsecurity.h | grep "define MODSECURITY_MAJOR " | awk {'print '} | sed 's/\"//g') + m4_esyscmd_s(cat headers/modsecurity/modsecurity.h | grep "define MODSECURITY_MINOR " | awk {'print '} | sed 's/\"//g')
autom4te: /usr/bin/m4 failed with exit status: 1
aclocal: autom4te failed with exit status: 1
autoreconf: aclocal failed with exit status: 1
Configuring modsecurity-2.9.3...
Done!
How can I fix it?
 

DirectAdmin Support

Administrator
Staff member
Joined
Feb 27, 2003
Messages
8,961
Hello,

There were reports of segfaults with the default 2.9.3 version.
There was a patch applied and re-packed to the 2.9.3 version on files1.. doesn't look like that's the one being downloaded

Here's the live view:
Code:
[root@files1 custombuild]# ll modsecurity-2.9.3.tar.gz
-rw-r--r-- 1 root root 4333053 Dec 18 00:49 modsecurity-2.9.3.tar.gz
[root@files1 custombuild]# md5sum modsecurity-2.9.3.tar.gz
which shows a different bytes size on files1:
4333053

to the file being downloaded:
2322235

So please run:
Code:
./build update
./build modsecurity
to see if the new one downloads compiles.

John
 
Top