Page 1 of 1

ASL wont update: Source WAF environment: update failed

Posted: Thu Nov 19, 2015 6:59 pm
by noox
ASL: 4.0.16-32
Centos 6.7
Cpanel 11.52.1

When I execute aum -u I get

Code: Select all

Source WAF environment: update failed                             [FAIL]
and the error message:

Code: Select all

L CODE SOURCE                        MESSAGE
- ---- ----------------------------- ------------------------------------------
2 9901 ASLCommon::cmd_system         ERROR: '/var/asl/data/templates/template-c
                                     panel-apache-hook cpanel > /var/asl/tmp/wa
                                     f_build.log 2>&1 (1)'
2 401  c_cpanel::_anarchy_waf_update CPanel WAF template update error: /var/asl
                                     /data/templates/template-cpanel-apache-hoo
                                     k cpanel
I did run

Code: Select all

/var/asl/data/templates/template-cpanel-apache-hook cpanel
I got this (at the end):

Code: Select all

/usr/bin/ld: /opt/lua/lib/liblua.a(lapi.o): relocation R_X86_64_32 against `luaO_nilobject_' can not be used when making a shared object; recompile with -fPIC
/opt/lua/lib/liblua.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [mod_security2.la] Error 1
make[2]: Leaving directory `/root/rpmbuild/BUILD/modsecurity-2.9.0/apache2'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/rpmbuild/BUILD/modsecurity-2.9.0/apache2'
make: *** [all-recursive] Error 1
I downloaded the newest lua (5.3.1) and recompiled with -fPIC. Like the error message and this post here suggested: http://penguinbliss.com/?p=488

But now I get this:

Code: Select all

msc_lua.c: In function 'lua_compile':
msc_lua.c:114: error: too few arguments to function 'lua_dump'
make[2]: *** [mod_security2_la-msc_lua.lo] Error 1
make[2]: Leaving directory `/root/rpmbuild/BUILD/modsecurity-2.9.0/apache2'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/rpmbuild/BUILD/modsecurity-2.9.0/apache2'
make: *** [all-recursive] Error 1
Should I try an older version of lua?

Re: ASL wont update: Source WAF environment: update failed

Posted: Fri Nov 20, 2015 7:30 pm
by scott
The root cause here is that cpanel has installed an older version of lua installed (cpanel says they are going to stop doing that kind of thing in EA4). Once simple solution is to remote the third party lua install from cpanel and just install the redhat build of lua & lua-devel.