From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 73557 invoked by alias); 4 Jul 2017 23:16:32 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 73499 invoked by uid 89); 4 Jul 2017 23:16:26 -0000 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 Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 04 Jul 2017 23:16:25 +0000 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B9EAA4E4C6 for ; Tue, 4 Jul 2017 23:16:23 +0000 (UTC) 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@cygwin.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com B9EAA4E4C6 Received: from [10.10.120.7] (ovpn-120-7.rdu2.redhat.com [10.10.120.7]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 741366887E for ; Tue, 4 Jul 2017 23:16:23 +0000 (UTC) Subject: Re: building libpng-1.6.29 fails with error in signal.h To: cygwin@cygwin.com References: <8726022A-425F-4D32-8061-5B749AD62BB8@Denis-Excoffier.org> From: Yaakov Selkowitz Message-ID: <4003d202-e983-51ca-378e-a0254173ba11@cygwin.com> Date: Tue, 04 Jul 2017 23:16:00 -0000 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: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2017-07/txt/msg00067.txt.bz2 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