Skip to content

v3.0.5 of ModSecurity breaks apache connector #87

Description

@drmuey

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions