Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 04 Jun 2022 09:40:18 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 264447] mail/cyrus-imapd34 compilation error for managesieve.c with lang/perl5.36 installed
Message-ID:  <bug-264447-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D264447

            Bug ID: 264447
           Summary: mail/cyrus-imapd34 compilation error for managesieve.c
                    with lang/perl5.36 installed
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: hlh@restart.be
                CC: mat@FreeBSD.org, ume@FreeBSD.org
                CC: mat@FreeBSD.org, ume@FreeBSD.org

Here is the output:

gmake[4]: Entering directory
'/usr/ports/mail/cyrus-imapd34/work-basic/cyrus-imapd-3.4.3/perl/sieve/mana=
gesieve'
Makefile:364: warning: ignoring prerequisites on suffix rule definition
Makefile:364: warning: ignoring prerequisites on suffix rule definition
cp managesieve.pm blib/lib/Cyrus/SIEVE/managesieve.pm
Running Mkbootstrap for managesieve ()
chmod 644 "managesieve.bs"
"/usr/local/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' --
managesieve.bs blib/arch/auto/Cyrus/SIEVE/managesieve/managesieve.bs 644
"/usr/local/bin/perl" "/usr/local/lib/perl5/5.36/ExtUtils/xsubpp"  -typemap
'/usr/local/lib/perl5/5.36/ExtUtils/typemap' -typemap
'/usr/ports/mail/cyrus-imapd34/work-basic/cyrus-imapd-3.4.3/perl/sieve/mana=
gesieve/typemap'
 managesieve.xs > managesieve.xsc && mv managesieve.xsc managesieve.c
cc -c  -I../../../lib -I../../../perl/sieve -I../../../perl/sieve/lib
-I/usr/local/include -I/usr/include -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H
-DUSE_THREAD_SAFE_LOCALE -fno-strict-aliasing -pipe -fstack-protector-strong
-I/usr/local/include -O2 -pipe -fstack-protector-strong -fno-strict-aliasin=
g=20=20
-DVERSION=3D\"0.01\" -DXS_VERSION=3D\"0.01\" -DPIC -fPIC
"-I/usr/local/lib/perl5/5.36/mach/CORE"  -DPERL_POLLUTE managesieve.c
In file included from managesieve.xs:46:
In file included from /usr/local/lib/perl5/5.36/mach/CORE/perl.h:7243:
/usr/local/lib/perl5/5.36/mach/CORE/sv_inline.h:468:13: error: expected ')'
            Zero(new_body, type_details->body_size, char);
            ^
/usr/local/lib/perl5/5.36/mach/CORE/handy.h:2792:22: note: expanded from ma=
cro
'Zero'
#define Zero(d,n,t)     (MEM_WRAP_CHECK_(n,t) perl_assert_ptr(d),
(void)memzero((char*)(d), (n) * sizeof(t)))
                         ^
/usr/local/lib/perl5/5.36/mach/CORE/handy.h:2680:49: note: expanded from ma=
cro
'MEM_WRAP_CHECK_'
#define MEM_WRAP_CHECK_(n,t) MEM_WRAP_CHECK(n,t),
                                                ^
/usr/local/lib/perl5/5.36/mach/CORE/sv_inline.h:468:13: note: to match this=
 '('
/usr/local/lib/perl5/5.36/mach/CORE/handy.h:2792:21: note: expanded from ma=
cro
'Zero'
#define Zero(d,n,t)     (MEM_WRAP_CHECK_(n,t) perl_assert_ptr(d),
(void)memzero((char*)(d), (n) * sizeof(t)))
                        ^
1 error generated.

What I find:

/usr/local/lib/perl5/5.36/mach/CORE/perl.h include assert.h which is found =
in
../../../lib and used in /usr/local/lib/perl5/5.36/mach/CORE/sv_inline.h

If I rename ../../../lib/assert.h to ../../../lib/Assert.h compilation is O=
K.

If I add -I/usr/include in front of -I../../../lib it don't work :-O I'm lo=
st
here...

there is a conflict between the cyrus-imap assert.h and the system assert.h=
 but
I can't find a solution.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-264447-7788>