Bug 259137 - security/modsecurity3-apache: Fails to build: mod_security3.h:49:5: error: unknown type name 'Rules'
Summary: security/modsecurity3-apache: Fails to build: mod_security3.h:49:5: error: un...
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Jochen Neumeister
URL:
Keywords: needs-qa
Depends on:
Blocks:
 
Reported: 2021-10-13 13:57 UTC by Vikash Badal
Modified: 2021-10-13 23:26 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (joneum)
koobs: merge-quarterly?


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vikash Badal 2021-10-13 13:57:17 UTC
Poudriere version: 3.3.7_1
Host OSVERSION: 1300139
Jail OSVERSION: 1300139

=======================<phase: build          >============================
===>  Building for modsecurity3-apache-0.0.9.b1.19_1
--- all ---
chmod +x build/apxs-wrapper
build/apxs-wrapper
/usr/local/share/apr/build-1/libtool --silent --mode=compile cc -prefer-pic -O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing    -I/usr/local/include/apache24  -I/usr/local/include/apr-1   -I/usr/local/include/apr-1 -I/usr/include -I/usr/local/include -I/usr/local/include/db5 -fPIC -O0 -I/usr/local/include  -c -o src/mod_security3.lo src/mod_security3.c && touch src/mod_security3.slo
In file included from src/mod_security3.c:4:
In file included from src/mod_security3.h:27:
In file included from src/msc_filters.h:17:
src/mod_security3.h:49:5: error: unknown type name 'Rules'
    Rules *rules_set;
    ^
src/mod_security3.c:151:21: error: expected expression
            (Rules *)z->rules_set, unique_id, (void *)r);
                    ^
src/mod_security3.c:151:14: error: use of undeclared identifier 'Rules'
            (Rules *)z->rules_set, unique_id, (void *)r);
             ^
src/mod_security3.c:154:21: error: expected expression
            (Rules *)z->rules_set, (void *)r);
                    ^
src/mod_security3.c:154:14: error: use of undeclared identifier 'Rules'
            (Rules *)z->rules_set, (void *)r);
             ^
src/mod_security3.c:503:44: warning: passing 'const char *' to parameter of type 'const unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
            msc_add_request_header(msr->t, key, val);
                                           ^~~
/usr/local/include/modsecurity/transaction.h:651:75: note: passing argument to parameter 'key' here
int msc_add_request_header(Transaction *transaction, const unsigned char *key,
                                                                          ^
src/mod_security3.c:503:49: warning: passing 'const char *' to parameter of type 'const unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
            msc_add_request_header(msr->t, key, val);
                                                ^~~
/usr/local/include/modsecurity/transaction.h:652:26: note: passing argument to parameter 'value' here
    const unsigned char *value);
                         ^
2 warnings and 5 errors generated.
apxs:Error: Command failed with rc=65536
.
*** [all] Error code 1

make[1]: stopped in /wrkdirs/usr/ports/security/modsecurity3-apache/work/ModSecurity-apache-0.0.9-beta1-19-gf76aaae
1 error

make[1]: stopped in /wrkdirs/usr/ports/security/modsecurity3-apache/work/ModSecurity-apache-0.0.9-beta1-19-gf76aaae
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make: stopped in /usr/ports/security/modsecurity3-apache
=>> Cleaning up wrkdir
Comment 1 Daniel Engberg freebsd_committer 2021-10-13 22:54:18 UTC
Looking at the situation upstream I'd say that this port should be marked as broken, deprecated and/or removed.

References:
https://www.modsecurity.org/
https://github.com/SpiderLabs/ModSecurity-apache/issues/80