delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2018/05/13/12:01:34

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:date:from:to:subject:message-id
:content-type:content-transfer-encoding; q=dns; s=default; b=ZC5
jzrc1qzkH0yA6b9tO5H8fES3w6vikDMHhdeehLsmPGhfuFc75eGXiDVOAnfVJccB
6Gnol0pteA4ZelVbNC/ToZyCyITtJjgFChYNz6wM2LDz2CrJ8tOKqIFsUl4E1LP1
/JS1mbivywynRryLUMWMjtJ0u4118p06920wqnNA=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:date:from:to:subject:message-id
:content-type:content-transfer-encoding; s=default; bh=qB6o6txUJ
j4M5fxls+qjWl2zNmY=; b=ec8L83bTff5O2I3MV+ZF6U0OV61UZqjM6/YfBUYsv
hu3Y8W2qpEWBRFLjrT9X28FajJuPKTJG1d2BVy1heoNP1nh0+wNrIN+xPrxPC/gh
V5RQkqFFHBkev68pPkklvs1sReQJmaSUCjJ/Y8aaJffsmoKIApo8fNRI86A3IoBs
l4=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=UD:nl, H*c:alternative, Hx-spam-relays-external:ESMTPA
X-HELO: lb1-smtp-cloud8.xs4all.net
MIME-Version: 1.0
Date: Sun, 13 May 2018 18:01:02 +0200
From: waterlan <waterlan AT xs4all DOT nl>
To: cygwin AT cygwin DOT com
Subject: =?UTF-8?Q?/usr/include/ssp/wchar=2Eh=3A78=3A1=3A_error=3A_unknow?= =?UTF-8?Q?n_type_name_=E2=80=98FILE=E2=80=99_=28during_cygport_package_bu?= =?UTF-8?Q?ild=29?=
Message-ID: <95ce9d0aaca770f8e88d661cac91ce5d@xs4all.nl>
X-Sender: waterlan AT xs4all DOT nl
User-Agent: XS4ALL Webmail
X-CMAE-Envelope: MS4wfI3k7L1b11cJqiAGDttDNraqlBzcdodJh4V78jmnXXfWdeMnpQCxPNy0UWlabxlnIERW02JMRUTkNrzdnPcxmnyLGUk+/D4lFFZaV3xFqF7Kp4jvtFLW SB48dAnSGqtzjv/BbH6lEA91yGXK0LFtWiIsV3colJdWdNziImJAl1dNJeSEN23aeQ0LPgJyFZ+EJKkqExTHBfCtLd6Edqc3APU=
X-IsSubscribed: yes

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 
-DWCD_UNICODE -DWCD_UNINORM -DENABLE_NLS
-DLOCALEDIR=\"/usr/share/locale\" -DPACKAGE=\"wcd\" 
-I/usr/include/ncursesw -I/usr/include -DDEBUG=0 -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -DUNIX -DWCD_USECURSES  -D_XOPEN_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))
 ^ 

The C flag that triggers this option is -Wp,-D_FORTIFY_SOURCE=2. 

When I remove this flag the compilation goes OK. 

regards,

-- 
Erwin Waterlander
http://waterlan.home.xs4all.nl/

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019