From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24136 invoked by alias); 16 Oct 2017 14:59:50 -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 23583 invoked by uid 89); 16 Oct 2017 14:59:49 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 spammy=msg00458html, UD:msg00458.html, msg00458.html, 201606 X-HELO: limerock03.mail.cornell.edu Received: from limerock03.mail.cornell.edu (HELO limerock03.mail.cornell.edu) (128.84.13.243) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 16 Oct 2017 14:59:47 +0000 X-CornellRouted: This message has been Routed already. Received: from authusersmtp.mail.cornell.edu (granite3.serverfarm.cornell.edu [10.16.197.8]) by limerock03.mail.cornell.edu (8.14.4/8.14.4_cu) with ESMTP id v9GExiRD020912 for ; Mon, 16 Oct 2017 10:59:45 -0400 Received: from [192.168.0.15] (mta-68-175-129-7.twcny.rr.com [68.175.129.7] (may be forged)) (authenticated bits=0) by authusersmtp.mail.cornell.edu (8.14.4/8.12.10) with ESMTP id v9GExhPC000604 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT) for ; Mon, 16 Oct 2017 10:59:44 -0400 Subject: =?UTF-8?Q?Re:_Error:_unknown_type_name_=e2=80=98pthread=5fattr=5ft?= =?UTF-8?B?4oCZIGluIHNpZ25hbC5o?= To: cygwin@cygwin.com References: From: Ken Brown Message-ID: Date: Mon, 16 Oct 2017 14:59:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-PMX-Cornell-Gauge: Gauge=XXXXX X-PMX-CORNELL-AUTH-RESULTS: dkim-out=none; X-IsSubscribed: yes X-SW-Source: 2017-10/txt/msg00144.txt.bz2 On 10/16/2017 3:12 AM, Jeffrey Walton wrote: > 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. Yes, it was an upstream gnulib issue that was fixed long ago. I suspect you're building an old version of emacs that hadn't yet imported the fixed gnulib. Try building the latest emacs release. It should build with a simple ./configure && make. Ken -- 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