[Users] [Bug 4619] New: Perl plugin build fails with perl 5.36

noreply at thewildbeast.co.uk noreply at thewildbeast.co.uk
Wed Jul 27 20:23:41 UTC 2022


https://www.thewildbeast.co.uk/claws-mail/bugzilla/show_bug.cgi?id=4619

            Bug ID: 4619
           Summary: Perl plugin build fails with perl 5.36
           Product: Claws Mail
           Version: 4.1.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P3
         Component: Plugins
          Assignee: users at lists.claws-mail.org
          Reporter: rezso at rezso.net

I tried to compile CM 4.1.0 (release) with perl 5.36, but it fails:

In file included from perl_plugin.c:55:
perl_plugin.c: In function ‘XS_ClawsMail_filter_init’:
/usr/lib/perl5/5.36.0/x86_64-linux-thread-multi-ld/CORE/perl.h:760:25: error:
expected expression before ‘do’
  760 | #   define STMT_START   do
      |                         ^~
/usr/lib/perl5/5.36.0/x86_64-linux-thread-multi-ld/CORE/XSUB.h:333:24: note: in
expansion of macro ‘STMT_START’
  333 | #define XSRETURN_UV(v) STMT_START { XST_mUV(0,v);  XSRETURN(1); }
STMT_END
      |                        ^~~~~~~~~~
perl_plugin.c:580:27: note: in expansion of macro ‘XSRETURN_UV’
  580 |     msginfo->size       ? XSRETURN_UV(msginfo->size)       :
XSRETURN_UNDEF;
      |                           ^~~~~~~~~~~
/usr/lib/perl5/5.36.0/x86_64-linux-thread-multi-ld/CORE/perl.h:760:25: error:
expected expression before ‘do’
  760 | #   define STMT_START   do
      |                         ^~
/usr/lib/perl5/5.36.0/x86_64-linux-thread-multi-ld/CORE/XSUB.h:335:24: note: in
expansion of macro ‘STMT_START’
  335 | #define XSRETURN_PV(v) STMT_START { XST_mPV(0,v);  XSRETURN(1); }
STMT_END
      |                        ^~~~~~~~~~
perl_plugin.c:582:27: note: in expansion of macro ‘XSRETURN_PV’
  582 |     msginfo->date       ? XSRETURN_PV(msginfo->date)       :
XSRETURN_UNDEF;
      |                           ^~~~~~~~~~~
/usr/lib/perl5/5.36.0/x86_64-linux-thread-multi-ld/CORE/perl.h:760:25: error:
expected expression before ‘do’
  760 | #   define STMT_START   do
      |                         ^~
/usr/lib/perl5/5.36.0/x86_64-linux-thread-multi-ld/CORE/XSUB.h:335:24: note: in
expansion of macro ‘STMT_START’
  335 | #define XSRETURN_PV(v) STMT_START { XST_mPV(0,v);  XSRETURN(1); }
STMT_END
      |                        ^~~~~~~~~~
perl_plugin.c:584:27: note: in expansion of macro ‘XSRETURN_PV’
  584 |     msginfo->from       ? XSRETURN_PV(msginfo->from)       :
XSRETURN_UNDEF;
      |                           ^~~~~~~~~~~
/usr/lib/perl5/5.36.0/x86_64-linux-thread-multi-ld/CORE/perl.h:760:25: error:
expected expression before ‘do’
  760 | #   define STMT_START   do
      |                         ^~
/usr/lib/perl5/5.36.0/x86_64-linux-thread-multi-ld/CORE/XSUB.h:335:24: note: in
expansion of macro ‘STMT_START’
  335 | #define XSRETURN_PV(v) STMT_START { XST_mPV(0,v);  XSRETURN(1); }
STMT_END
      |                        ^~~~~~~~~~
perl_plugin.c:586:27: note: in expansion of macro ‘XSRETURN_PV’
  586 |     msginfo->to         ? XSRETURN_PV(msginfo->to)         :
XSRETURN_UNDEF;
      |                           ^~~~~~~~~~~
/usr/lib/perl5/5.36.0/x86_64-linux-thread-multi-ld/CORE/perl.h:760:25: error:
expected expression before ‘do’
  760 | #   define STMT_START   do
      |                         ^~
/usr/lib/perl5/5.36.0/x86_64-linux-thread-multi-ld/CORE/XSUB.h:335:24: note: in
expansion of macro ‘STMT_START’
  335 | #define XSRETURN_PV(v) STMT_START { XST_mPV(0,v);  XSRETURN(1); }
STMT_END
      |                        ^~~~~~~~~~
perl_plugin.c:588:27: note: in expansion of macro ‘XSRETURN_PV’
  588 |     msginfo->cc         ? XSRETURN_PV(msginfo->cc)         :
XSRETURN_UNDEF;
      |                           ^~~~~~~~~~~
/usr/lib/perl5/5.36.0/x86_64-linux-thread-multi-ld/CORE/perl.h:760:25: error:
expected expression before ‘do’
  760 | #   define STMT_START   do
      |                         ^~
/usr/lib/perl5/5.36.0/x86_64-linux-thread-multi-ld/CORE/XSUB.h:335:24: note: in
expansion of macro ‘STMT_START’
  335 | #define XSRETURN_PV(v) STMT_START { XST_mPV(0,v);  XSRETURN(1); }
STMT_END
      |                        ^~~~~~~~~~
perl_plugin.c:590:27: note: in expansion of macro ‘XSRETURN_PV’
  590 |     msginfo->newsgroups ? XSRETURN_PV(msginfo->newsgroups) :
XSRETURN_UNDEF;
      |                           ^~~~~~~~~~~
/usr/lib/perl5/5.36.0/x86_64-linux-thread-multi-ld/CORE/perl.h:760:25: error:
expected expression before ‘do’
  760 | #   define STMT_START   do
      |                         ^~
/usr/lib/perl5/5.36.0/x86_64-linux-thread-multi-ld/CORE/XSUB.h:335:24: note: in
expansion of macro ‘STMT_START’
  335 | #define XSRETURN_PV(v) STMT_START { XST_mPV(0,v);  XSRETURN(1); }
STMT_END
      |                        ^~~~~~~~~~
perl_plugin.c:592:27: note: in expansion of macro ‘XSRETURN_PV’
  592 |     msginfo->subject    ? XSRETURN_PV(msginfo->subject)    :
XSRETURN_UNDEF;
      |                           ^~~~~~~~~~~
/usr/lib/perl5/5.36.0/x86_64-linux-thread-multi-ld/CORE/perl.h:760:25: error:
expected expression before ‘do’
  760 | #   define STMT_START   do
      |                         ^~
/usr/lib/perl5/5.36.0/x86_64-linux-thread-multi-ld/CORE/XSUB.h:335:24: note: in
expansion of macro ‘STMT_START’
  335 | #define XSRETURN_PV(v) STMT_START { XST_mPV(0,v);  XSRETURN(1); }
STMT_END
      |                        ^~~~~~~~~~
perl_plugin.c:594:27: note: in expansion of macro ‘XSRETURN_PV’
  594 |     msginfo->msgid      ? XSRETURN_PV(msginfo->msgid)      :
XSRETURN_UNDEF;
      |                           ^~~~~~~~~~~
/usr/lib/perl5/5.36.0/x86_64-linux-thread-multi-ld/CORE/perl.h:760:25: error:
expected expression before ‘do’
  760 | #   define STMT_START   do
      |                         ^~
/usr/lib/perl5/5.36.0/x86_64-linux-thread-multi-ld/CORE/XSUB.h:335:24: note: in
expansion of macro ‘STMT_START’
  335 | #define XSRETURN_PV(v) STMT_START { XST_mPV(0,v);  XSRETURN(1); }
STMT_END
      |                        ^~~~~~~~~~
perl_plugin.c:596:27: note: in expansion of macro ‘XSRETURN_PV’
  596 |     msginfo->inreplyto  ? XSRETURN_PV(msginfo->inreplyto)  :
XSRETURN_UNDEF;
      |                           ^~~~~~~~~~~
/usr/lib/perl5/5.36.0/x86_64-linux-thread-multi-ld/CORE/perl.h:760:25: error:
expected expression before ‘do’
  760 | #   define STMT_START   do
      |                         ^~
/usr/lib/perl5/5.36.0/x86_64-linux-thread-multi-ld/CORE/XSUB.h:335:24: note: in
expansion of macro ‘STMT_START’
  335 | #define XSRETURN_PV(v) STMT_START { XST_mPV(0,v);  XSRETURN(1); }
STMT_END
      |                        ^~~~~~~~~~
perl_plugin.c:598:27: note: in expansion of macro ‘XSRETURN_PV’
  598 |     msginfo->xref       ? XSRETURN_PV(msginfo->xref)       :
XSRETURN_UNDEF;
      |                           ^~~~~~~~~~~
/usr/lib/perl5/5.36.0/x86_64-linux-thread-multi-ld/CORE/perl.h:760:25: error:
expected expression before ‘do’
  760 | #   define STMT_START   do
      |                         ^~
/usr/lib/perl5/5.36.0/x86_64-linux-thread-multi-ld/CORE/XSUB.h:335:24: note: in
expansion of macro ‘STMT_START’
  335 | #define XSRETURN_PV(v) STMT_START { XST_mPV(0,v);  XSRETURN(1); }
STMT_END
      |                        ^~~~~~~~~~
perl_plugin.c:601:27: note: in expansion of macro ‘XSRETURN_PV’
  601 |     xface               ? XSRETURN_PV(xface)               :
XSRETURN_UNDEF;
      |                           ^~~~~~~~~~~
/usr/lib/perl5/5.36.0/x86_64-linux-thread-multi-ld/CORE/perl.h:760:25: error:
expected expression before ‘do’
  760 | #   define STMT_START   do
      |                         ^~
/usr/lib/perl5/5.36.0/x86_64-linux-thread-multi-ld/CORE/XSUB.h:335:24: note: in
expansion of macro ‘STMT_START’
  335 | #define XSRETURN_PV(v) STMT_START { XST_mPV(0,v);  XSRETURN(1); }
STMT_END
      |                        ^~~~~~~~~~
perl_plugin.c:604:7: note: in expansion of macro ‘XSRETURN_PV’
  604 |       XSRETURN_PV(msginfo->extradata->dispositionnotificationto) :
XSRETURN_UNDEF;
      |       ^~~~~~~~~~~
/usr/lib/perl5/5.36.0/x86_64-linux-thread-multi-ld/CORE/perl.h:760:25: error:
expected expression before ‘do’
  760 | #   define STMT_START   do
      |                         ^~
/usr/lib/perl5/5.36.0/x86_64-linux-thread-multi-ld/CORE/XSUB.h:335:24: note: in
expansion of macro ‘STMT_START’
  335 | #define XSRETURN_PV(v) STMT_START { XST_mPV(0,v);  XSRETURN(1); }
STMT_END
      |                        ^~~~~~~~~~
perl_plugin.c:607:7: note: in expansion of macro ‘XSRETURN_PV’
  607 |       XSRETURN_PV(msginfo->extradata->returnreceiptto)     :
XSRETURN_UNDEF;
      |       ^~~~~~~~~~~
/usr/lib/perl5/5.36.0/x86_64-linux-thread-multi-ld/CORE/perl.h:760:25: error:
expected expression before ‘do’
  760 | #   define STMT_START   do
      |                         ^~
/usr/lib/perl5/5.36.0/x86_64-linux-thread-multi-ld/CORE/XSUB.h:325:5: note: in
expansion of macro ‘STMT_START’
  325 |     STMT_START {                                        \
      |     ^~~~~~~~~~
perl_plugin.c:613:10: note: in expansion of macro ‘XSRETURN’
  613 |     ii ? XSRETURN(ii) : XSRETURN_UNDEF;
      |          ^~~~~~~~
/usr/lib/perl5/5.36.0/x86_64-linux-thread-multi-ld/CORE/perl.h:760:25: error:
expected expression before ‘do’
  760 | #   define STMT_START   do
      |                         ^~
/usr/lib/perl5/5.36.0/x86_64-linux-thread-multi-ld/CORE/XSUB.h:332:24: note: in
expansion of macro ‘STMT_START’
  332 | #define XSRETURN_IV(v) STMT_START { XST_mIV(0,v);  XSRETURN(1); }
STMT_END
      |                        ^~~~~~~~~~
perl_plugin.c:615:27: note: in expansion of macro ‘XSRETURN_IV’
  615 |     msginfo->score      ? XSRETURN_IV(msginfo->score)      :
XSRETURN_UNDEF;
      |                           ^~~~~~~~~~~
/usr/lib/perl5/5.36.0/x86_64-linux-thread-multi-ld/CORE/perl.h:760:25: error:
expected expression before ‘do’
  760 | #   define STMT_START   do
      |                         ^~
/usr/lib/perl5/5.36.0/x86_64-linux-thread-multi-ld/CORE/XSUB.h:335:24: note: in
expansion of macro ‘STMT_START’
  335 | #define XSRETURN_PV(v) STMT_START { XST_mPV(0,v);  XSRETURN(1); }
STMT_END
      |                        ^~~~~~~~~~
perl_plugin.c:618:7: note: in expansion of macro ‘XSRETURN_PV’
  618 |       XSRETURN_PV(msginfo->plaintext_file)                 :
XSRETURN_UNDEF;
      |       ^~~~~~~~~~~
/usr/lib/perl5/5.36.0/x86_64-linux-thread-multi-ld/CORE/perl.h:760:25: error:
expected expression before ‘do’
  760 | #   define STMT_START   do
      |                         ^~
/usr/lib/perl5/5.36.0/x86_64-linux-thread-multi-ld/CORE/XSUB.h:332:24: note: in
expansion of macro ‘STMT_START’
  332 | #define XSRETURN_IV(v) STMT_START { XST_mIV(0,v);  XSRETURN(1); }
STMT_END
      |                        ^~~~~~~~~~
perl_plugin.c:620:27: note: in expansion of macro ‘XSRETURN_IV’
  620 |     msginfo->hidden     ? XSRETURN_IV(msginfo->hidden)     :
XSRETURN_UNDEF;
      |                           ^~~~~~~~~~~
/usr/lib/perl5/5.36.0/x86_64-linux-thread-multi-ld/CORE/perl.h:760:25: error:
expected expression before ‘do’
  760 | #   define STMT_START   do
      |                         ^~
/usr/lib/perl5/5.36.0/x86_64-linux-thread-multi-ld/CORE/XSUB.h:335:24: note: in
expansion of macro ‘STMT_START’
  335 | #define XSRETURN_PV(v) STMT_START { XST_mPV(0,v);  XSRETURN(1); }
STMT_END
      |                        ^~~~~~~~~~
perl_plugin.c:631:7: note: in expansion of macro ‘XSRETURN_PV’
  631 |       XSRETURN_PV(msginfo->extradata->partial_recv)        :
XSRETURN_UNDEF;
      |       ^~~~~~~~~~~
/usr/lib/perl5/5.36.0/x86_64-linux-thread-multi-ld/CORE/perl.h:760:25: error:
expected expression before ‘do’
  760 | #   define STMT_START   do
      |                         ^~
/usr/lib/perl5/5.36.0/x86_64-linux-thread-multi-ld/CORE/XSUB.h:332:24: note: in
expansion of macro ‘STMT_START’
  332 | #define XSRETURN_IV(v) STMT_START { XST_mIV(0,v);  XSRETURN(1); }
STMT_END
      |                        ^~~~~~~~~~
perl_plugin.c:633:27: note: in expansion of macro ‘XSRETURN_IV’
  633 |     msginfo->total_size ? XSRETURN_IV(msginfo->total_size) :
XSRETURN_UNDEF;
      |                           ^~~~~~~~~~~
/usr/lib/perl5/5.36.0/x86_64-linux-thread-multi-ld/CORE/perl.h:760:25: error:
expected expression before ‘do’
  760 | #   define STMT_START   do
      |                         ^~
/usr/lib/perl5/5.36.0/x86_64-linux-thread-multi-ld/CORE/XSUB.h:335:24: note: in
expansion of macro ‘STMT_START’
  335 | #define XSRETURN_PV(v) STMT_START { XST_mPV(0,v);  XSRETURN(1); }
STMT_END
      |                        ^~~~~~~~~~
perl_plugin.c:636:7: note: in expansion of macro ‘XSRETURN_PV’
  636 |       XSRETURN_PV(msginfo->extradata->account_server)      :
XSRETURN_UNDEF;
      |       ^~~~~~~~~~~
/usr/lib/perl5/5.36.0/x86_64-linux-thread-multi-ld/CORE/perl.h:760:25: error:
expected expression before ‘do’
  760 | #   define STMT_START   do
      |                         ^~
/usr/lib/perl5/5.36.0/x86_64-linux-thread-multi-ld/CORE/XSUB.h:335:24: note: in
expansion of macro ‘STMT_START’
  335 | #define XSRETURN_PV(v) STMT_START { XST_mPV(0,v);  XSRETURN(1); }
STMT_END
      |                        ^~~~~~~~~~
perl_plugin.c:639:7: note: in expansion of macro ‘XSRETURN_PV’
  639 |       XSRETURN_PV(msginfo->extradata->account_login)       :
XSRETURN_UNDEF;
      |       ^~~~~~~~~~~
/usr/lib/perl5/5.36.0/x86_64-linux-thread-multi-ld/CORE/perl.h:760:25: error:
expected expression before ‘do’
  760 | #   define STMT_START   do
      |                         ^~
/usr/lib/perl5/5.36.0/x86_64-linux-thread-multi-ld/CORE/XSUB.h:332:24: note: in
expansion of macro ‘STMT_START’
  332 | #define XSRETURN_IV(v) STMT_START { XST_mIV(0,v);  XSRETURN(1); }
STMT_END
      |                        ^~~~~~~~~~
perl_plugin.c:642:7: note: in expansion of macro ‘XSRETURN_IV’
  642 |       XSRETURN_IV(msginfo->planned_download)               :
XSRETURN_UNDEF;
      |       ^~~~~~~~~~~
perl_plugin.c: In function ‘XS_ClawsMail_tagged’:
/usr/lib/perl5/5.36.0/x86_64-linux-thread-multi-ld/CORE/perl.h:760:25: error:
expected expression before ‘do’
  760 | #   define STMT_START   do
      |                         ^~
/usr/lib/perl5/5.36.0/x86_64-linux-thread-multi-ld/CORE/XSUB.h:338:24: note: in
expansion of macro ‘STMT_START’
  338 | #define XSRETURN_YES   STMT_START { XST_mYES(0);   XSRETURN(1); }
STMT_END
      |                        ^~~~~~~~~~
perl_plugin.c:903:26: note: in expansion of macro ‘XSRETURN_YES’
  903 |   return msginfo->tags ? XSRETURN_YES : XSRETURN_NO;
      |                          ^~~~~~~~~~~~
perl_plugin.c:903:10: warning: ‘return’ with a value, in function returning
void [-Wreturn-type]
  903 |   return msginfo->tags ? XSRETURN_YES : XSRETURN_NO;
      |          ^~~~~~~
In file included from perl_plugin.c:56:
perl_plugin.c:895:11: note: declared here
  895 | static XS(XS_ClawsMail_tagged)
      |           ^~~~~~~~~~~~~~~~~~~
/usr/lib/perl5/5.36.0/x86_64-linux-thread-multi-ld/CORE/XSUB.h:149:34: note: in
definition of macro ‘XS_EXTERNAL’
  149 | #  define XS_EXTERNAL(name) void name(pTHX_ CV* cv
__attribute__unused__)
      |                                  ^~~~
perl_plugin.c:895:8: note: in expansion of macro ‘XS’
  895 | static XS(XS_ClawsMail_tagged)
      |        ^~

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


More information about the Users mailing list