delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/10/16/03:13:07

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:mime-version:reply-to:from:date:message-id
:subject:to:content-type:content-transfer-encoding; q=dns; s=
default; b=B0Ceay05EnJalhb1rosRJ2FAyjOvzQeQ9+EtDwijQYdZ2N94v3ZD7
Otc2z/ffl1m2nFe8ZEbpoONWwZrw5vNmdl3/pmLLEsgvb0Ze+u9c5gyGqgLrZGBj
8VWhb9C4gp7Mn66lwhK0anjTDS39rkHRFsNZzn8FXkSEL7DVJ4yj9k=
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:mime-version:reply-to:from:date:message-id
:subject:to:content-type:content-transfer-encoding; s=default;
bh=j/eVYjnzGat6ppNhWL3RlhXiDrI=; b=rnriUcR6EZyYf19RJlQDNc5nTzNM
8VHXeJQSIOd0ak+SKziABm8QtDt8YZwrlp8mcL4szKZH345RJ7f34vBi2C/v3dmU
gArOvJQm0LliQ14CfrB6EUcTSVTf7nkSBpRQkvQm+bipGhQsv0LBTj7EAP13XOvm
JgoYRFLmiHO9Qcw=
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=-1.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=gear, Hx-languages-length:1739
X-HELO: mail-oi0-f68.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:reply-to:from:date:message-id :subject:to:content-transfer-encoding; bh=x9wikmWybsiR+1svHqvaGkAs0TvXnSqIfEfNSWjZTxs=; b=oL/d/vKfE0hmZ7GXLbEuWQiDGmcIA0boxrP134vMc7ic/2rbH60R/j+k0WsGWrq0JD Q6xDlZd7ni4Cwhrl2It2D+Bt9kMpLhVms9LMh0vQDovW8Hsu5dncgAJEryB84LMW3yIo TT93+KdMInuX03BBWCHbdgNY4suM+WKUi6x5/jrxlUQQIllGGhoic81KZqUjEN29+eyz 87KtskdwYVDkFLEz3EElLIXNfBZy1lY6FtL0Fk2NR6Ik8JAQCDEaFGmqgDH7vx6zYSxc foc/9z30oJDOatk06z0aqlN38r8okTQh4mnixYcqo1IsNkX16AQZGtxsWbJWID/uUtQU kiCQ==
X-Gm-Message-State: AMCzsaUpAAM0fAMtgshMQUOKU0UoOlFgNdkaa+wuZ8Px0iyR6Q+a9LLD 8x6A26MghEoQcsWrZ/NuN5wOPSA+1UkzoY7Nwx1TdICp
X-Google-Smtp-Source: AOwi7QAdNyy7pTrtTDyi+3nV86KPb3HTRiPm/FZdXlnJFEczIwWDJJ1cqkkWrteirFNPicCvEcvngL0Wke4HmoU4veg=
X-Received: by 10.157.0.37 with SMTP id 34mr5490884ota.468.1508137963030; Mon, 16 Oct 2017 00:12:43 -0700 (PDT)
MIME-Version: 1.0
Reply-To: noloader AT gmail DOT com
From: Jeffrey Walton <noloader AT gmail DOT com>
Date: Mon, 16 Oct 2017 03:12:42 -0400
Message-ID: <CAH8yC8=eY+bFd=t_4-UKFk+JnfamzQspzxFVpRdVT571LjBERQ@mail.gmail.com>
Subject: =?UTF-8?B?RXJyb3I6IHVua25vd24gdHlwZSBuYW1lIOKAmHB0aHJlYWRfYXR0cl904oCZIGluIHNpZw==?= =?UTF-8?B?bmFsLmg=?=
To: cygwin AT cygwin DOT com
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id v9G7D6Tc031879

Hi Everyone,

I'm trying to build Emacs on Cygwin. I use the platform as a test bed
because of Newlib. Emacs is failing with:

gcc -DHAVE_CONFIG_H -I. -I../lib -I../src -I../src
-I/usr/local/include -DNDEBUG -pthread -D_XOPEN_SOURCE=600    -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 ‘pthread_attr_t’
   pthread_attr_t *sigev_notify_attributes; /* notification attributes */
   ^~~~~~~~~~~~~~

Examining /usr/include/cygwin/signal.h around 175, I see:

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;

But I don't see an include for the pthread gear in the signal.h header file.

I found one past message that's similar
(https://cygwin.com/ml/cygwin/2016-06/msg00458.html), but its reported
as an upstream bug. I don't think it applies here since the pthread
data structure is used without an apparent declaration.

Can anyone confirm things are (not?) working as expected? If things
are working as expected, then hints to work around the failure would
be appreciated.

Thanks in advance,

Jeff

--
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