Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v3.0.5 of ModSecurity breaks apache connector #87

Open
drmuey opened this issue Oct 14, 2021 · 0 comments
Open

v3.0.5 of ModSecurity breaks apache connector #87

drmuey opened this issue Oct 14, 2021 · 0 comments

Comments

@drmuey
Copy link

drmuey commented Oct 14, 2021

Error:

[   48s] In file included from /usr/include/ctype.h:26:0,
[   48s]                  from src/mod_security3.h:3,
[   48s]                  from src/mod_security3.c:2:
[   48s] /usr/include/features.h:330:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
[   48s]  #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
[   48s]     ^
[   48s] In file included from src/msc_filters.h:17:0,
[   48s]                  from src/mod_security3.h:27,
[   48s]                  from src/mod_security3.c:2:
[   48s] src/mod_security3.h:49:5: error: unknown type name 'Rules'
[   48s]      Rules *rules_set;
[   48s]      ^
[   48s] src/mod_security3.c: In function 'create_tx_context':
[   48s] src/mod_security3.c:144:55: error: 'Rules' undeclared (first use in this function)
[   48s]      msr->t = msc_new_transaction(msc_apache->modsec, (Rules *)z->rules_set, (void *)r);
[   48s]                                                        ^
[   48s] src/mod_security3.c:144:55: note: each undeclared identifier is reported only once for each function it appears in
[   48s] src/mod_security3.c:144:62: error: expected expression before ')' token
[   48s]      msr->t = msc_new_transaction(msc_apache->modsec, (Rules *)z->rules_set, (void *)r);
[   48s]                                                               ^

It happens because there is a line in mod_security.c that casts to (Rules *) needs to be (RuleSet *).

This is w/ v0.0.9beta1 FWiW

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant