develooper Front page | perl.perl5.porters | Postings from December 2014

[perl #123464] Encode.pm in 5.21.7 does not compile with -Dgccansipedantic

From:
slaven@rezic.de via RT
Date:
December 26, 2014 14:06
Subject:
[perl #123464] Encode.pm in 5.21.7 does not compile with -Dgccansipedantic
Message ID:
rt-4.0.18-8238-1419602776-785.123464-15-0@perl.org
Dana Sub 20. Pro 2014, 11:09:39, slaven@rezic.de reče:
> Compilation stops with:
> ...
> ccache cc -c  -I./Encode  -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-
> strict-aliasing -pipe -fstack-protector -I/usr/local/include
> -D_FORTIFY_SOURCE=2 -Wall -pedantic -DPERL_GCC_PEDANTIC -Wextra -Wc++-
> compat -Wwrite-strings -O    -DVERSION=\"2.67\"  -DXS_VERSION=\"2.67\"
> -DPIC -fPIC "-I../.."   def_t.c
> def_t.c:9: error: array size missing in 'utf8_iso_8859_1'
> def_t.c:73: error: conflicting types for 'utf8_iso_8859_1'
> def_t.c:9: error: previous declaration of 'utf8_iso_8859_1' was here
> *** [def_t.o] Error code 1
> 
> Stop in /usr/local/src/perl-5.21.7/cpan/Encode.
> ccache cc -c  -I./Encode  -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-
> strict-aliasing -pipe -fstack-protector -I/usr/local/include
> -D_FORTIFY_SOURCE=2 -Wall -pedantic -DPERL_GCC_PEDANTIC -Wextra -Wc++-
> compat -Wwrite-strings -O    -DVERSION=\"2.67\"  -DXS_VERSION=\"2.67\"
> -DPIC -fPIC "-I../.."   def_t.c
> def_t.c:9: error: array size missing in 'utf8_iso_8859_1'
> def_t.c:73: error: conflicting types for 'utf8_iso_8859_1'
> def_t.c:9: error: previous declaration of 'utf8_iso_8859_1' was here
> *** [def_t.o] Error code 1
> 
> Stop in /usr/local/src/perl-5.21.7/cpan/Encode.
> Unsuccessful make(cpan/Encode): code=256 at make_ext.pl line 574.
> *** [lib/auto/Encode/Encode.so] Error code 1
> 
> Stop in /usr/local/src/perl-5.21.7.
> 
> ---
> 
> My workaround:
> 
> cd cpan/Encode && perl -i -pe 's/-pedantic//' Makefile; perl -i -pe
> 's/-pedantic//' */Makefile
> 

Actually it turns out that my wrapper build script activated -Dgccansipedantic. Simple fix is to remove this setting.

Fixed subject.



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



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