[MacPorts] #39074: mod_security2 fails to compile with lua error
#39074: mod_security2 fails to compile with lua error ------------------------------+-------------------------------- Reporter: simonblanchard@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Keywords: | Port: ------------------------------+-------------------------------- :info:build libtool: compile: /usr/bin/clang -DHAVE_CONFIG_H -I. -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp -I/opt /local/include -I/opt/local/apache2/include -I/opt/local/include/apr-1 -I/opt/local/include/apr-1 -I/opt/local/include -I/opt/lo cal/include -I/opt/local/include/libxml2 -DWITH_LUA -I/opt/local/include -DWITH_PCRE_STUDY -DMODSEC_PCRE_MATCH_LIMIT=1500 -DMODS EC_PCRE_MATCH_LIMIT_RECURSION=1500 -DREQUEST_EARLY -I/opt/local/include -pipe -O2 -arch x86_64 -MT mod_security2_la-msc_release. lo -MD -MP -MF .deps/mod_security2_la-msc_release.Tpo -c msc_release.c -o mod_security2_la-msc_release.o >/dev/null 2>&1 :info:build msc_lua.c:82:57: error: too few arguments to function call, expected 5, have 4 :info:build return lua_load(L, dump_reader, &dumpr, script->name); -- Ticket URL: <https://trac.macports.org/ticket/39074> MacPorts <http://www.macports.org/> Ports system for OS X
#39074: mod_security2 fails to compile with lua error -------------------------------+----------------------- Reporter: simonblanchard@… | Owner: pixilla@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: mod_security2 | -------------------------------+----------------------- Changes (by ryandesign@…): * owner: macports-tickets@… => pixilla@… * port: => mod_security2 Old description:
:info:build libtool: compile: /usr/bin/clang -DHAVE_CONFIG_H -I. -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp -I/opt /local/include -I/opt/local/apache2/include -I/opt/local/include/apr-1 -I/opt/local/include/apr-1 -I/opt/local/include -I/opt/lo cal/include -I/opt/local/include/libxml2 -DWITH_LUA -I/opt/local/include -DWITH_PCRE_STUDY -DMODSEC_PCRE_MATCH_LIMIT=1500 -DMODS EC_PCRE_MATCH_LIMIT_RECURSION=1500 -DREQUEST_EARLY -I/opt/local/include -pipe -O2 -arch x86_64 -MT mod_security2_la-msc_release. lo -MD -MP -MF .deps/mod_security2_la-msc_release.Tpo -c msc_release.c -o mod_security2_la-msc_release.o >/dev/null 2>&1 :info:build msc_lua.c:82:57: error: too few arguments to function call, expected 5, have 4 :info:build return lua_load(L, dump_reader, &dumpr, script->name);
New description: {{{ :info:build libtool: compile: /usr/bin/clang -DHAVE_CONFIG_H -I. -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp -I/opt/local/include -I/opt/local/apache2/include -I/opt/local/include/apr-1 -I/opt/local/include/apr-1 -I/opt/local/include -I/opt/local/include -I/opt/local/include/libxml2 -DWITH_LUA -I/opt/local/include -DWITH_PCRE_STUDY -DMODSEC_PCRE_MATCH_LIMIT=1500 -DMODSEC_PCRE_MATCH_LIMIT_RECURSION=1500 -DREQUEST_EARLY -I/opt/local/include -pipe -O2 -arch x86_64 -MT mod_security2_la- msc_release.lo -MD -MP -MF .deps/mod_security2_la-msc_release.Tpo -c msc_release.c -o mod_security2_la-msc_release.o >/dev/null 2>&1 :info:build msc_lua.c:82:57: error: too few arguments to function call, expected 5, have 4 :info:build return lua_load(L, dump_reader, &dumpr, script->name); }}} -- Comment: lua was recently updated to version 5.2; perhaps mod_security2 needs a patch to become compatible with that version. -- Ticket URL: <https://trac.macports.org/ticket/39074#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#39074: mod_security2 fails to compile with lua error -------------------------------+----------------------- Reporter: simonblanchard@… | Owner: pixilla@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: mod_security2 | -------------------------------+----------------------- Comment (by cbsmith@…): Replying to [comment:1 ryandesign@…]:
lua was recently updated to version 5.2; perhaps mod_security2 needs a patch to become compatible with that version.
Yeah, I think this is it. I'm going to try to migrate back to an older version of lua to fix this. -- Ticket URL: <https://trac.macports.org/ticket/39074#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#39074: mod_security2 fails to compile with lua error -------------------------------+----------------------- Reporter: simonblanchard@… | Owner: pixilla@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: mod_security2 | -------------------------------+----------------------- Changes (by ryandesign@…): * cc: russell@… (added) Comment: Has duplicate #40377. -- Ticket URL: <https://trac.macports.org/ticket/39074#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#39074: mod_security2 fails to compile with lua error -------------------------------+----------------------- Reporter: simonblanchard@… | Owner: pixilla@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: mod_security2 | -------------------------------+----------------------- Comment (by russell@…): Replying to [comment:2 cbsmith@…]:
Replying to [comment:1 ryandesign@…]:
lua was recently updated to version 5.2; perhaps mod_security2 needs a patch to become compatible with that version.
Yeah, I think this is it. I'm going to try to migrate back to an older version of lua to fix this.
Attempted installation with lua@5.1.4_4 and failed. Reason: mod_security2@2.7.1 requires lua@5.2 or greater. -- Ticket URL: <https://trac.macports.org/ticket/39074#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
#39074: mod_security2 fails to compile with lua error -------------------------------+----------------------- Reporter: simonblanchard@… | Owner: pixilla@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: mod_security2 | -------------------------------+----------------------- Comment (by simonblanchard@…): Also fails on 10.9 mavericks. See attached log. -- Ticket URL: <https://trac.macports.org/ticket/39074#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
#39074: mod_security2 fails to compile with lua error -------------------------------+----------------------- Reporter: simonblanchard@… | Owner: pixilla@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: mod_security2 | -------------------------------+----------------------- Comment (by simonblanchard@…): mod_security2@2.7.6 compiles fine. The only patch needed was to add {{{ -L/opt/local/lib/db46 }}} to the LDFLAFS in the apache2 directory. -- Ticket URL: <https://trac.macports.org/ticket/39074#comment:6> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts