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

Re: [perl #133152] Cygwin build failure with v5.27.11-16-g71e845c342

Thread Previous | Thread Next
Dave Mitchell
April 30, 2018 11:26
Re: [perl #133152] Cygwin build failure with v5.27.11-16-g71e845c342
Message ID:
On Tue, Apr 24, 2018 at 05:18:24PM -0700, Tony Cook (via RT) wrote:
> $ make locale.o
> gcc -c -DPERL_CORE -DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_FORTIFY_SOURCE=2 -std=c89 -O3 -Wall -Werror=declaration-after-statement -Werror=pointer-arith -Wextra -Wc++-compat -Wwrite-strings locale.c
> In file included from /usr/include/ssp/stdlib.h:4:0,
>                  from /usr/include/stdlib.h:338,
>                  from perl.h:819,
>                  from locale.c:49:
> /usr/include/ssp/wchar.h:78:1: error: conflicting types for ‘fgetws’
>  __ssp_decl(wchar_t *, fgetws, (wchar_t *__restrict __buf, int __wlen, FILE *__restrict __fp))
>  ^
> In file included from locale.c:54:0:
> /usr/include/wchar.h:228:10: note: previous declaration of ‘fgetws’ was here
>  wchar_t *fgetws (wchar_t *__restrict, int, __FILE *__restrict);
>           ^~~~~~

Do you know any of:

 * what the ssp/ include files are for,
 * why they have alternate definitions of fgetws etc,
 * why perl redefining a bunch of stdio macros cause both versions to be

"There's something wrong with our bloody ships today, Chatfield."
    -- Admiral Beatty at the Battle of Jutland, 31st May 1916.

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About