www.delorie.com/archives/browse.cgi | search |
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:date:from:to:subject:message-id:reply-to | |
:references:mime-version:content-type:in-reply-to; q=dns; s= | |
default; b=bM3t4lGBpDeVz+IZ0/kmCaeL2vcvszbRNI5TklT93oNAHoGJlaJBF | |
F8mht3ZEeKmrpGZtG8hJ8YdmmFyq4qry9jlCoHE5eYU1d7UMAY0bNNfWrV5KQwek | |
OonaQ5St2ompbCBNd0mPnDqLD2TtWB2JDzuzPFJtuV3dQOzmafMDn8= | |
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:date:from:to:subject:message-id:reply-to | |
:references:mime-version:content-type:in-reply-to; s=default; | |
bh=je6h0WZGUTce2SPiNq/kLk3Phbg=; b=ytQtljQKB3JluUBUKoJGO1fh+zXe | |
sG61cc+tapV7gbks/26+GRgr1vYYs0eKIZHSch6zEWSMq33hJXU6CUzTcApZosEI | |
fou2J+mgybzCmzc1V0w9EmXu9987XiBnvMq4I7GRyAYuFNjwZR5ktWFrd00ehyMq | |
QwSu0JdlkpYYgH0= | |
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: | =?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 |
Date: | Mon, 16 Oct 2017 11:20:24 +0200 |
From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
To: | cygwin AT cygwin DOT 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 AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <CAH8yC8=eY+bFd=t_4-UKFk+JnfamzQspzxFVpRdVT571LjBERQ AT mail DOT gmail DOT com> |
MIME-Version: | 1.0 |
In-Reply-To: | <CAH8yC8=eY+bFd=t_4-UKFk+JnfamzQspzxFVpRdVT571LjBERQ@mail.gmail.com> |
User-Agent: | Mutt/1.9.1 (2017-09-22) |
--zYM0uCDKw75PZbzx Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 <signal.h> 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" -----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--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |