delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/07/04/19:16:50

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:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=Z9eIQk26QPDHAwuq
WbxQpw/T/wGNJWOR+nxeyXi8NCDu0alcvHTNlwyLWp9F0cf4+pvoBeOJvWgSi9mN
GnDlZtkTbLtLl3o5y3u3RXPR1PcOYT0my5deOxcff2u17RE6JQoPZfAOxKrM63oh
fIMAx1MA9EcpNPRpjl4UbQqFMWc=
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:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=qaftRbAtfB2LKrVmSoNgS5
FTzjA=; b=SFqa/Uxlgl4tfWg+zFu7aR+o3GOxF67vgkJ90K3KnZ9UimA1Y023cM
Th9FJHyhuY003cvRGuqOKmqb94qFA3/aWWr6+6j7+yel5E8TFBgphwVd4TzY4/Wa
Ibl8ZpJ1Rw2qPaQiqViEeiI6kRHQwT9ycJvMoRxtANHFdTAnyNEkY=
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=-1.0 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,SPF_HELO_PASS autolearn=no version=3.3.2 spammy=
X-HELO: mx1.redhat.com
DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com B9EAA4E4C6
Authentication-Results: ext-mx09.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=cygwin.com
Authentication-Results: ext-mx09.extmail.prod.ext.phx2.redhat.com; spf=none smtp.mailfrom=yselkowitz AT cygwin DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com B9EAA4E4C6
Subject: Re: building libpng-1.6.29 fails with error in signal.h
To: cygwin AT cygwin DOT com
References: <8726022A-425F-4D32-8061-5B749AD62BB8 AT Denis-Excoffier DOT org> <dd6cc3ce-d99a-ea06-46eb-e68d0efd7685 AT gmail DOT com>
From: Yaakov Selkowitz <yselkowitz AT cygwin DOT com>
Message-ID: <4003d202-e983-51ca-378e-a0254173ba11@cygwin.com>
Date: Tue, 4 Jul 2017 18:16:22 -0500
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1
MIME-Version: 1.0
In-Reply-To: <dd6cc3ce-d99a-ea06-46eb-e68d0efd7685@gmail.com>
X-IsSubscribed: yes

On 2017-07-04 15:46, Marco Atzeri wrote:
> On 04/07/2017 20:59, Denis Excoffier wrote:
>> I tried to compile libpng-1.6.29 and failed at first. I obtain:
>>
>> /usr/include/cygwin/signal.h:328:34: error: unknown type name 'siginfo_t'
>>      void  (*sa_sigaction) ( int, siginfo_t *, void * );
>>                                   ^
>> I really don't know which (signal.h or libpng) is okay (or none). Will 
>> someone investigate this?
> > Reading
> http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/signal.h.html
> 
> I have the impression that the current cygwin header behaviour
> is correct as siginfo_t is an extension POSIX.1-2008.

True, but I missed that struct sigaction (which is correctly guarded as 
POSIX.1-1990) uses siginfo_t.  This part needs to be guarded as 
POSIX.1b-1993 without breaking the struct, as is done in glibc.

> In theory "_GNU_SOURCE" should be defined by default

No, I'll fix this in the header shortly, along with updating libpng.

-- 
Yaakov

--
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