develooper Front page | perl.perl5.porters | Postings from January 2018

[perl #132761] [PATCH] Devel::PPPort for older Perl versions

Thread Previous | Thread Next
From:
Tony Cook via RT
Date:
January 24, 2018 23:55
Subject:
[perl #132761] [PATCH] Devel::PPPort for older Perl versions
Message ID:
rt-4.0.24-14674-1516838104-857.132761-15-0@perl.org
On Wed, 24 Jan 2018 12:07:17 -0800, pali@cpan.org wrote:
> After discussion on #p5p, I'm sending 3 patches for Devel::PPPort.

In 5.8.9 (threaded)RealPPPort.xs: In function ‘XS_Devel__PPPort_croak_xs_usage’:
RealPPPort.xs:1553:20: warning: passing argument 1 of ‘DPPP_my_croak_xs_usage’ from incompatible pointer type [-Wincompatible-pointer-types]
     croak_xs_usage(cv, params);
                    ^~
In file included from /home/tony/perl/5.8.9-thr/lib/5.8.9/x86_64-linux-thread-multi/CORE/perl.h:38:0,
                 from RealPPPort.xs:31:
ppport.h:3659:26: note: expected ‘PerlInterpreter * {aka struct interpreter *}’ but argument is of type ‘CV * {aka struct cv *}’
 #  define DPPP_NAMESPACE DPPP_
                          ^
/home/tony/perl/5.8.9-thr/lib/5.8.9/x86_64-linux-thread-multi/CORE/config.h:936:27: note: in definition of macro ‘PeRl_CaTiFy’
 #define PeRl_CaTiFy(a, b) a ## b
                           ^
ppport.h:3662:24: note: in expansion of macro ‘CAT2’
 #define DPPP_CAT2(x,y) CAT2(x,y)
                        ^~~~
ppport.h:3663:21: note: in expansion of macro ‘DPPP_CAT2’
 #define DPPP_(name) DPPP_CAT2(DPPP_NAMESPACE, name)
                     ^~~~~~~~~
ppport.h:3663:31: note: in expansion of macro ‘DPPP_NAMESPACE’
 #define DPPP_(name) DPPP_CAT2(DPPP_NAMESPACE, name)
                               ^~~~~~~~~~~~~~
ppport.h:5351:1: note: in expansion of macro ‘DPPP_’
 DPPP_(my_croak_xs_usage)(pTHX_ const CV *const cv, const char *const params)
 ^~~~~
RealPPPort.xs:1553:24: warning: passing argument 2 of ‘DPPP_my_croak_xs_usage’ from incompatible pointer type [-Wincompatible-pointer-types]
     croak_xs_usage(cv, params);
                        ^~~~~~
In file included from /home/tony/perl/5.8.9-thr/lib/5.8.9/x86_64-linux-thread-multi/CORE/perl.h:38:0,
                 from RealPPPort.xs:31:
ppport.h:3659:26: note: expected ‘const CV * const {aka const struct cv * const’ but argument is of type ‘char *’
 #  define DPPP_NAMESPACE DPPP_
                          ^
/home/tony/perl/5.8.9-thr/lib/5.8.9/x86_64-linux-thread-multi/CORE/config.h:936:27: note: in definition of macro ‘PeRl_CaTiFy’
 #define PeRl_CaTiFy(a, b) a ## b
                           ^
ppport.h:3662:24: note: in expansion of macro ‘CAT2’
 #define DPPP_CAT2(x,y) CAT2(x,y)
                        ^~~~
ppport.h:3663:21: note: in expansion of macro ‘DPPP_CAT2’
 #define DPPP_(name) DPPP_CAT2(DPPP_NAMESPACE, name)
                     ^~~~~~~~~
ppport.h:3663:31: note: in expansion of macro ‘DPPP_NAMESPACE’
 #define DPPP_(name) DPPP_CAT2(DPPP_NAMESPACE, name)
                               ^~~~~~~~~~~~~~
ppport.h:5351:1: note: in expansion of macro ‘DPPP_’
 DPPP_(my_croak_xs_usage)(pTHX_ const CV *const cv, const char *const params)
 ^~~~~
ppport.h:3659:26: error: too few arguments to function ‘DPPP_my_croak_xs_usage’
 #  define DPPP_NAMESPACE DPPP_
                          ^
/home/tony/perl/5.8.9-thr/lib/5.8.9/x86_64-linux-thread-multi/CORE/config.h:936:27: note: in definition of macro ‘PeRl_CaTiFy’
 #define PeRl_CaTiFy(a, b) a ## b
                           ^
ppport.h:3662:24: note: in expansion of macro ‘CAT2’
 #define DPPP_CAT2(x,y) CAT2(x,y)
                        ^~~~
ppport.h:3663:21: note: in expansion of macro ‘DPPP_CAT2’
 #define DPPP_(name) DPPP_CAT2(DPPP_NAMESPACE, name)
                     ^~~~~~~~~
ppport.h:3663:31: note: in expansion of macro ‘DPPP_NAMESPACE’
 #define DPPP_(name) DPPP_CAT2(DPPP_NAMESPACE, name)
                               ^~~~~~~~~~~~~~
ppport.h:5346:24: note: in expansion of macro ‘DPPP_’
 #define croak_xs_usage DPPP_(my_croak_xs_usage)
                        ^~~~~
RealPPPort.xs:1553:5: note: in expansion of macro ‘croak_xs_usage’
     croak_xs_usage(cv, params);
     ^~~~~~~~~~~~~~
ppport.h:3659:26: note: declared here
 #  define DPPP_NAMESPACE DPPP_
                          ^
/home/tony/perl/5.8.9-thr/lib/5.8.9/x86_64-linux-thread-multi/CORE/config.h:936:27: note: in definition of macro ‘PeRl_CaTiFy’
 #define PeRl_CaTiFy(a, b) a ## b
                           ^
ppport.h:3662:24: note: in expansion of macro ‘CAT2’
 #define DPPP_CAT2(x,y) CAT2(x,y)
                        ^~~~
ppport.h:3663:21: note: in expansion of macro ‘DPPP_CAT2’
 #define DPPP_(name) DPPP_CAT2(DPPP_NAMESPACE, name)
                     ^~~~~~~~~
ppport.h:3663:31: note: in expansion of macro ‘DPPP_NAMESPACE’
 #define DPPP_(name) DPPP_CAT2(DPPP_NAMESPACE, name)
                               ^~~~~~~~~~~~~~
ppport.h:5351:1: note: in expansion of macro ‘DPPP_’
 DPPP_(my_croak_xs_usage)(pTHX_ const CV *const cv, const char *const params)
 ^~~~~

5.6.2 threaded fails similarly.

Tony

---
via perlbug:  queue: perl5 status: new
https://rt.perl.org/Ticket/Display.html?id=132761

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About