Opened 11 years ago

Last modified 3 years ago

#39074 assigned defect

mod_security2 fails to compile with lua error

Reported by: simonblanchard@… Owned by: Schamschula (Marius Schamschula)
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: Cc: russell@…, cooljeanius (Eric Gallager)
Port: mod_security2

Description (last modified by ryandesign (Ryan Carsten Schmidt))

: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);

Attachments (3)

main.log.zip (9.0 KB) - added by simonblanchard@… 11 years ago.
main.log.2.zip (2.6 KB) - added by cbsmith@… 11 years ago.
main.log.gz (6.6 KB) - added by simonblanchard@… 10 years ago.
Build log failing on mavericks 10.9

Download all attachments as: .zip

Change History (13)

Changed 11 years ago by simonblanchard@…

Attachment: main.log.zip added

comment:1 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Owner: changed from macports-tickets@… to pixilla@…
Port: mod_security2 added

lua was recently updated to version 5.2; perhaps mod_security2 needs a patch to become compatible with that version.

Changed 11 years ago by cbsmith@…

Attachment: main.log.2.zip added

comment:2 in reply to:  1 ; Changed 11 years ago by cbsmith@…

Replying to 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.

comment:3 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: russell@… added

Has duplicate #40377.

comment:4 in reply to:  2 Changed 11 years ago by russell@…

Replying to cbsmith@…:

Replying to 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.

Changed 10 years ago by simonblanchard@…

Attachment: main.log.gz added

Build log failing on mavericks 10.9

comment:5 Changed 10 years ago by simonblanchard@…

Also fails on 10.9 mavericks. See attached log.

comment:6 Changed 10 years ago by simonblanchard@…

mod_security2@2.7.6 compiles fine. The only patch needed was to add -L/opt/local/lib/db46 to the LDFLAGS in the apache2 directory.

Last edited 10 years ago by simonblanchard@… (previous) (diff)

comment:7 Changed 10 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

comment:8 Changed 5 years ago by mf2k (Frank Schima)

Owner: changed from pixilla to Schamschula
Status: newassigned

See #57827

comment:9 Changed 5 years ago by Schamschula (Marius Schamschula)

Is anyone still seeing this error with mod_security2 @2.9.2 ?

Otherwise, we can close this ticket.

comment:10 in reply to:  9 Changed 3 years ago by cooljeanius (Eric Gallager)

Replying to Schamschula:

Is anyone still seeing this error with mod_security2 @2.9.2 ?

Otherwise, we can close this ticket.

I'm seeing a different error instead, for which I opened #63295

Note: See TracTickets for help on using tickets.