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=RjWA4IXrwnvrkdVm 7OzAaQIHAWcgTaG+AVlH6AjGnVPhNR59GEajJobUwpiKLWrJhlp7TWkrvC34cjLn Rs4R0VxBIg90Rlp/MhylT6udm9X2JlN2+IhfiaaVcUlWBbO3BzDLdHthGg9bI69F K0VuPSxoyImMJAcpg3uXfD3UEFs= 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=Y1KLwVI00gGNm/5ea0GyKg PQPAI=; b=dEFoMAmO/1iSRiSHIgoqGQrEB8b5EChG13bdFT7b4kvuNPhxU6OAUM yoI9uQQquKQ24/ZGjzOOFDI1/9CL5uSLEO/dodR03UQ+jgcx4wMISmn46wLGYcbp cAkFc0mwaTELo+jFnmB0ORe1te4VWZ9oAgnnywFySxz25dpBwU3lo= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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.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 X-CornellRouted: This message has been Routed already. Subject: =?UTF-8?Q?Re:_Error:_unknown_type_name_=e2=80=98pthread=5fattr=5ft?= =?UTF-8?B?4oCZIGluIHNpZ25hbC5o?= To: cygwin AT cygwin DOT com References: From: Ken Brown Message-ID: Date: Mon, 16 Oct 2017 10:59:41 -0400 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 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