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:from:content-type:content-transfer-encoding :mime-version:date:subject:message-id:to; q=dns; s=default; b=W6 rbBdMXI7H0qEFc1oYKHahCdl2H6DkabsjiviAr/ZyRFV3SXqisl+nt4RKU9Gbp/+ kENB3jKIYoJbNGAC1gHz4aFfuWY0emmWfqp3vFOe3u12+XF5aCS9DL3jeU/Qual7 ffDJH8yPzBH5hmqFie1o5Wp4SYQJOsaCsPg8G52DA= 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:from:content-type:content-transfer-encoding :mime-version:date:subject:message-id:to; s=default; bh=bHL00Lrn 1/vNVL8DPMC7GzcPrUg=; b=m/N9NJ79OyAZ0W9EC57zFcqTdjDL4Ai9obblXGWV N4p4WOP0cXTJxKQz+oI0DW4K0yKanrwOv2EuxAkQ9oRhxNqBGYqWHpmx5VAkrCAw ayLXptkg3q5ZxLe2uLJ1NUf63eJccDyTKJ7b84RiME6hFJioux+t950OCkPlsUwI fCQ= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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=-5.9 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_2,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 spammy=H*F:U*cygwin, lo, lcl, pngo X-HELO: smtp5-g21.free.fr From: Denis Excoffier Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Date: Tue, 4 Jul 2017 20:59:16 +0200 Subject: building libpng-1.6.29 fails with error in signal.h Message-Id: <8726022A-425F-4D32-8061-5B749AD62BB8@Denis-Excoffier.org> To: The Cygwin Mailing List Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id v64IxXVX012072 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 Further investigation shows that /usr/include/cygwin/signal.h has been modified recently (June) and that if i move "struct sigaction" out of the scope, the problem goes away and libpng is works now: *** /usr/include/cygwin/signal.h.vanilla Mon Jul 3 14:07:58 2017 --- /usr/include/cygwin/signal.h Tue Jul 4 15:53:28 2017 *************** *** 318,324 **** typedef void (*_sig_func_ptr)(int); ! #if __POSIX_VISIBLE struct sigaction { --- 318,324 ---- typedef void (*_sig_func_ptr)(int); ! #if __POSIX_VISIBLE >= 999999 struct sigaction { I really don't know which (signal.h or libpng) is okay (or none). Will someone investigate this? Regards, Denis Excoffier. -- 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