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

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=Sz4sjTHjeIWaAVDT
IBn54HbDhNgW0mTp90zT7pKgWVHi2AvmzzB63dNquU9pTgo1FHgvqDYS7OD4E16H
ZmQnbBV05yIs3bLviAcuQUH4nqz1dH/xbOJEhEOaqn0XLHQGf8BnoRDx+WP8pJYA
NgonOsSvvNgJr54Wk9kv7fRjFYU=
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=jb6/wRXVXlKiULhzmoftmc
Xpx70=; b=Yq+6qmiK96HabdFS/T6EBUTYbJbJoNWk40Zk32BrFo+J+WKA9pvSlz
qB5/lFhITx7sz+ehcp8eDNyFG+woCPulc3qlYb/Ruij6+236UB86NhLFla0tszOM
6IcQWXgYypQoCIzdz5E3McsP05LJD41hIdxoW7BKL2VT+gOCOAqHE=
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.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
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)
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>
From: Marco Atzeri <marco DOT atzeri AT gmail DOT com>
Message-ID: <dd6cc3ce-d99a-ea06-46eb-e68d0efd7685@gmail.com>
Date: Tue, 4 Jul 2017 22:46:21 +0200
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>
X-IsSubscribed: yes

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

- Raw text -


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