public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Error: unknown type name ‘pthread_attr_t’ in signal.h
@ 2017-10-16  7:12 Jeffrey Walton
  2017-10-16  8:39 ` Jeffrey Walton
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Jeffrey Walton @ 2017-10-16  7:12 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2017-10-18 14:42 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-16  7:12 Error: unknown type name ‘pthread_attr_t’ in signal.h Jeffrey Walton
2017-10-16  8:39 ` Jeffrey Walton
2017-10-16  8:55   ` Marco Atzeri
2017-10-16  9:20 ` Corinna Vinschen
2017-10-16 14:59 ` Ken Brown
2017-10-17 22:36 ` Jeffrey Walton
2017-10-18 10:13   ` Corinna Vinschen
2017-10-18 11:52     ` Ken Brown
2017-10-18 14:11       ` Corinna Vinschen
2017-10-18 14:19         ` Ken Brown
2017-10-18 14:42         ` Yaakov Selkowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).