I had to trim down the options to -std=c89 -pedantic -Wall, so that I still
get errors for those C89 constructs, but the other errors are now gone on
my Mac. The downside is that I could not turn off specific warnings that
are triggered by code in the perl libraries... Hopefully now it works.
Uploaded a new one.
Cheers and thanks!
On Sun, May 8, 2016 at 6:22 PM, Slaven_Rezic via RT <
bug-URI-XSEscape@rt.cpan.org> wrote:
Show quoted text> <URL:
https://rt.cpan.org/Ticket/Display.html?id=114233 >
>
> On 2016-05-08 12:20:33, SREZIC wrote:
> > Still with 0.000005 there are compilation errors, now even with clang:
>
> Correction: freebsd 10.1 with clang and most perl versions works (various
> one between 5.18 and 5.24). Only with perl 5.20.1 it fails --- full build
> log:
>
> Output from '/usr/bin/make':
>
> cp lib/URI/XSEscape.pm blib/lib/URI/XSEscape.pm
> Running Mkbootstrap for XSEscape ()
> chmod 644 "XSEscape.bs"
> "/usr/perl5.20.1p/bin/perl5.20.1" -MExtUtils::Command::MM -e 'cp_nonempty'
> -- XSEscape.bs blib/arch/auto/URI/XSEscape/XSEscape.bs 644
> "/usr/perl5.20.1p/bin/perl5.20.1"
> "/usr/perl5.20.1p/lib/5.20.1/ExtUtils/xsubpp" -typemap
> '/usr/perl5.20.1p/lib/5.20.1/ExtUtils/typemap' escape.xs > escape.xsc
> mv escape.xsc escape.c
> cc -c -I. -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing
> -pipe -fstack-protector -I/usr/local/include -std=c89 -pedantic -Wall
> -Werror -Wno-gnu-statement-expression -Wno-variadic-macros -Wno-long-long
> -O -DVERSION=\"0.000005\" -DXS_VERSION=\"0.000005\" -DPIC -fPIC
> "-I/usr/perl5.20.1p/lib/5.20.1/amd64-freebsd/CORE" escape.c
> In file included from escape.xs:3:
> In file included from
> /usr/perl5.20.1p/lib/5.20.1/amd64-freebsd/CORE/perl.h:3332:
> /usr/perl5.20.1p/lib/5.20.1/amd64-freebsd/CORE/op.h:960:34: error: commas
> at the end of enumerator lists are a C99-specific feature
> [-Werror,-Wc99-extensions]
> XOPe_xop_peep = XOPf_xop_peep,
> ^
> 1 error generated.
> *** Error code 1
>
>
--
Gonzalo Diethelm
gonzalo.diethelm@gmail.com