[Bug 259137] security/modsecurity3-apache fails to build in poudriere

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 13 Oct 2021 13:57:17 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259137

            Bug ID: 259137
           Summary: security/modsecurity3-apache fails to build in
                    poudriere
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: joneum@FreeBSD.org
          Reporter: vikashb@where-ever.za.net
             Flags: maintainer-feedback?(joneum@FreeBSD.org)
          Assignee: joneum@FreeBSD.org

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

-- 
You are receiving this mail because:
You are the assignee for the bug.