From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30141 invoked by alias); 16 Oct 2017 09:20: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 30109 invoked by uid 89); 16 Oct 2017 09:20:32 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: =?ISO-8859-1?Q?No, score=-99.5 required=5.0 tests=AWL,BAYES_50,GOOD_FROM_CORINNA_CYGWIN,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=walton, Walton, gear, pthread_attr_t=e2?= X-HELO: drew.franken.de Received: from mail-n.franken.de (HELO drew.franken.de) (193.175.24.27) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 16 Oct 2017 09:20:29 +0000 Received: from aqua.hirmke.de (aquarius.franken.de [193.175.24.89]) (Authenticated sender: aquarius) by mail-n.franken.de (Postfix) with ESMTPSA id A40AF71E3F451 for ; Mon, 16 Oct 2017 11:20:25 +0200 (CEST) Received: from calimero.vinschen.de (calimero.vinschen.de [192.168.129.6]) by aqua.hirmke.de (Postfix) with ESMTP id CE0D15E023C for ; Mon, 16 Oct 2017 11:20:24 +0200 (CEST) Received: by calimero.vinschen.de (Postfix, from userid 500) id BC454A80663; Mon, 16 Oct 2017 11:20:24 +0200 (CEST) Date: Mon, 16 Oct 2017 09:20:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: Error: unknown type =?utf-8?Q?name_?= =?utf-8?B?4oCYcHRocmVhZF9hdHRyX3TigJk=?= in signal.h Message-ID: <20171016092024.GE16436@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="zYM0uCDKw75PZbzx" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.1 (2017-09-22) X-SW-Source: 2017-10/txt/msg00141.txt.bz2 --zYM0uCDKw75PZbzx Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 2407 On Oct 16 03:12, Jeffrey Walton wrote: > Hi Everyone, >=20 > I'm trying to build Emacs on Cygwin. I use the platform as a test bed > because of Newlib. Emacs is failing with: >=20 > gcc -DHAVE_CONFIG_H -I. -I../lib -I../src -I../src > -I/usr/local/include -DNDEBUG -pthread -D_XOPEN_SOURCE=3D600 -m64 -MT > close-stream.o -MD -MP -MF .deps/close-stream.Tpo -c -o close-stream.o > close-stream.c > In file included from /usr/include/sys/signal.h:22:0, > from /usr/include/signal.h:6, > from ./signal.h:52, > from ./sys/select.h:107, > from /usr/include/sys/time.h:47, > from ./sys/time.h:39, > from ./sys/select.h:86, > from /usr/include/sys/types.h:68, > from ./sys/types.h:28, > from ./fcntl.h:50, > from binary-io.h:23, > from binary-io.c:3: > /usr/include/cygwin/signal.h:175:3: error: unknown type name =E2=80=98pth= read_attr_t=E2=80=99 > pthread_attr_t *sigev_notify_attributes; /* notification attributes */ > ^~~~~~~~~~~~~~ >=20 > Examining /usr/include/cygwin/signal.h around 175, I see: >=20 > typedef struct sigevent > { > sigval_t sigev_value; /* signal value */ > int sigev_signo; /* signal number */ > int sigev_notify; /* notification type */ > void (*sigev_notify_function) (sigval_t); /* notification function */ > pthread_attr_t *sigev_notify_attributes; /* notification attributes */ > } sigevent_t; >=20 > But I don't see an include for the pthread gear in the signal.h header fi= le. That's right, but that's usually not a problem because the pthread types are included via sys/types.h. That means, a simple testcase like=20 #include main(){} isn't sufficient to trigger the above, neither with nor without -D_XOPEN_SOURCE=3D600. And there's the fact that emacs is part of the Cygwin distro, so it seems you're using a non-standard setting somewhere. We could add #include sys/_pthreadtypes.h to cygwin/signal.h unconditioanlly, but it would be interesting to know how the above include chain works, and why sys/_pthreadtypes.h isn't picked up. Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --zYM0uCDKw75PZbzx Content-Type: application/pgp-signature; name="signature.asc" Content-length: 819 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJZ5HnYAAoJEPU2Bp2uRE+gB+oP/R+eD2WLa16npWpjji+/OJpc Rkiv2jFSxZ3R8+oKYBLFBnHYvCHYPxhaHw2cFuWT0Mrmvkamoo4ux0bjG18UAQ4O DJT06WyOerY4dqfvzleVVf3SGSMLBvCETu2U85K9QaVN5xk7s6IbMQaHyyQ87C+Y ApB6TVe3hi+s1gU82hTpxjBYGOjPmFQdhkli99mWbDRGrb+68rNx4oURcio9J/ln C2uajYFbk0s+5SQYsYbshjcFkNJ3av5Pz8Qf8fYbpDbBHXys/mx/BWn2dec3Uwou g0wC0rhnhh4sfkosf0gN9SqMgS0g8nW4SRUUJnFK3j22znwEdK7cRk/5Nr3UF9Ac JPhr1mR4do4UNZiFHzmCXdPZcVaBRSM4h7oTNyGNDKgHCPMxw9YU9hAFb4PFU4Zu 0w6S8JsHWJKuFNvMZQTc5TV63zVYjaRUhlboVqY4kxOtDqJ8vfszivuRWlXTMaeX WFb+9DvsiBvOczUepv+81fFTUOKCJYhs2o7L2hbusBL0/Bzr4aO9VcfrsXiNbyZu 45SbYUI3OP/DI6xidWdYysfZuGdwjZppt9IaSpThvfiYg6maEk4/ck2hEpqCZ1qK WZeMQnetl9ixhNGnvmQeX9o/uUneZ66XV3QoVwfb0fE4I4jPyMoYNribxgBlbSsy cNdUNk6Loy/rsmM36XDB =5t9L -----END PGP SIGNATURE----- --zYM0uCDKw75PZbzx--