Re: /usr/include/ssp/wchar.h:78:1: error: unknown type name ‘FILE’ (during cygport package build)

Ken Brown
Mon May 14 12:40:00 GMT 2018

On 5/13/2018 12:01 PM, waterlan wrote:
> Hi,
> I'm trying to create a new wcd package, but I get compile errors during
> the cygport build of the wcd package.
> gcc -ggdb -O2 -pipe -Wall -Werror=format-security
> -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong
> --param=ssp-buffer-size=4
> -fdebug-prefix-map=/cygdrive/c/Users/waterlan/src/cygwin/wcd/wcd-6.0.2-1.x86_64/build=/usr/src/debug/wcd-6.0.2-1
> -fdebug-prefix-map=/cygdrive/c/Users/waterlan/src/cygwin/wcd/wcd-6.0.2-1.x86_64/src/wcd-6.0.2=/usr/src/debug/wcd-6.0.2-1
> -O2 -Wall -Wextra -Wno-unused-parameter -Wconversion    -Ic3po
> -DVERSION=\"6.0.2\" -DVERSION_DATE=\"2018-05-10\"  -std=gnu99
> -DLOCALEDIR=\"/usr/share/locale\" -DPACKAGE=\"wcd\"
> -I/usr/include/ncursesw -I/usr/include -DDEBUG=0 -D_LARGEFILE_SOURCE
> -D_XOPEN_SOURCE_EXTENDED  -c wcwidth.c -o wcwidth.o
> In file included from /usr/include/ssp/wchar.h:5:0,
>                   from /usr/include/wchar.h:336,
>                   from wcwidth.c:62:
> /usr/include/ssp/wchar.h:78:1: error: unknown type name 'FILE'
>   __ssp_decl(wchar_t *, fgetws, (wchar_t *__restrict __buf, int __wlen,
> FILE *__restrict __fp))

This is a newlib issue that has been fixed:;a=commitdiff;h=829820af6e5bccefe93485023e93821807fb99b8;hp=e494b560350cabef94126a4478096aae89ae35a0


Problem reports:
Unsubscribe info:

More information about the Cygwin mailing list