From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 112538 invoked by alias); 4 Jul 2017 20:47:14 -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 112512 invoked by uid 89); 4 Jul 2017 20:47:14 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mail-wr0-f169.google.com Received: from mail-wr0-f169.google.com (HELO mail-wr0-f169.google.com) (209.85.128.169) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 04 Jul 2017 20:47:12 +0000 Received: by mail-wr0-f169.google.com with SMTP id 77so253852955wrb.1 for ; Tue, 04 Jul 2017 13:47:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=quLujfYL6i82Q+Vssz7rdglzeC3CNRUGFowxbZ78f7I=; b=XOsYgvqGGyPIUasLyrrgXVhJRSjq8VcBkbPRQNXQBFqk9caHleGYf0UuptyfKsapwm RvIOBE+IMWrZc4xqH0p42vwreCdo8Fy4OoodrI/abHshQGIM2hUZRNY4i3KzoMhIEg2s w6iF2KlnpcnBLvIqTDX4mLrLL2F/Z94QuPuGl9dx1pdXU9DBFn8J3K/SNYvFi3AXVWxy xeL7eDzJi/FaUuwT1WbnLjK2WuVd5rIuim2rWvJx+6F+Fvbv1anWM6UJKtBbnICx5JEk UxB11IMnqVjucV+hhqq17foZYEckFUlh4rKg5CK5lVPaKtvRnzBsXyxAUDos9/JSpWHN c6Yw== X-Gm-Message-State: AKS2vOzRGLk4vsBS7Bb6VFbEJXnLS2zE2hzOsSSihj0o5MKJb9hWJw4Z q+C3REy0shsk7i6r X-Received: by 10.223.155.205 with SMTP id e13mr35783279wrc.33.1499201230150; Tue, 04 Jul 2017 13:47:10 -0700 (PDT) Received: from [192.168.2.108] (p4FDB389D.dip0.t-ipconnect.de. [79.219.56.157]) by smtp.googlemail.com with ESMTPSA id e31sm30731514wre.54.2017.07.04.13.47.09 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 04 Jul 2017 13:47:09 -0700 (PDT) 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: Marco Atzeri Message-ID: Date: Tue, 04 Jul 2017 20:47:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <8726022A-425F-4D32-8061-5B749AD62BB8@Denis-Excoffier.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2017-07/txt/msg00052.txt.bz2 On 04/07/2017 20:59, Denis Excoffier wrote: > Hello, > > I tried to compile libpng-1.6.29 and failed at first. I obtain: > > /tmp/lcl/uxl/make/bin/make all-am > make[1]: Entering directory '/cygdrive/D/Users/dexcoff1/dexcoff1/cyglcl/tmp/libpng/libpng-1.6.29' > depbase=`echo png.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\ > /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -g -O2 -MT png.lo -MD -MP -MF $depbase.Tpo -c -o png.lo png.c &&\ > mv -f $depbase.Tpo $depbase.Plo > libtool: compile: gcc -DHAVE_CONFIG_H -I. -g -O2 -MT png.lo -MD -MP -MF .deps/png.Tpo -c png.c -DDLL_EXPORT -DPIC -o .libs/png.o > In file included from /usr/include/sys/signal.h:22:0, > from /usr/include/signal.h:6, > from /usr/include/machine/setjmp.h:372, > from /usr/include/setjmp.h:10, > from pngconf.h:50, > from png.h:366, > from pngpriv.h:375, > from png.c:14: > /usr/include/cygwin/signal.h:328:34: error: unknown type name 'siginfo_t' > void (*sa_sigaction) ( int, siginfo_t *, void * ); > ^ > make[1]: *** [Makefile:1174: png.lo] Error 1 > make[1]: Leaving directory '/cygdrive/D/Users/dexcoff1/dexcoff1/cyglcl/tmp/libpng/libpng-1.6.29' > make: *** [Makefile:791: all] Error 2 > > > I really don't know which (signal.h or libpng) is okay (or none). Will someone investigate this? > > Regards, > > Denis Excoffier. > tested on 1.6.30 ./configure CFLAGS="-D_GNU_SOURCE" make works. 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. In theory "_GNU_SOURCE" should be defined by default, but I see $ grep SOURCE *.h pngpriv.h:#define _POSIX_SOURCE 1 /* Just the POSIX 1003.1 and C89 APIs */ $ grep SOURCE *.c pngtest.c:#define _POSIX_SOURCE 1 that could have reduced the scope. Regards Marco -- 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