bug-guile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#18508: Incomplete type pollfd


From: Ludovic Courtès
Subject: bug#18508: Incomplete type pollfd
Date: Mon, 22 Sep 2014 10:43:27 +0200
User-agent: Gnus/5.130011 (Ma Gnus v0.11) Emacs/24.3 (gnu/linux)

Andreas Enge <address@hidden> skribis:

> guile-2.0.11 fails to build on Redhat 6.5 with the following error message:
>
>   CC       libguile_2.0_la-fports.lo
> fports.c: In function 'fport_input_waiting':
> fports.c:612: error: variable 'pollfd' has initializer but incomplete type
> fports.c:612: warning: excess elements in struct initializer
> fports.c:612: warning: (near initialization for 'pollfd')
> fports.c:612: error: 'POLLIN' undeclared (first use in this function)
> fports.c:612: error: (Each undeclared identifier is reported only once
> fports.c:612: error: for each function it appears in.)
> fports.c:612: warning: excess elements in struct initializer
> fports.c:612: warning: (near initialization for 'pollfd')
> fports.c:612: warning: excess elements in struct initializer
> fports.c:612: warning: (near initialization for 'pollfd')
> fports.c:612: error: storage size of 'pollfd' isn't known
> fports.c:614: warning: implicit declaration of function 'poll'
> fports.c:612: warning: unused variable 'pollfd'
> make[3]: *** [libguile_2.0_la-fports.lo] Error 1
> make[3]: Leaving directory `/home/enge/lib-intel/guile-2.0.11/libguile'
>
> Versions of software used:
> gcc 4.4.7

What libc version is this?

It would have been great, if this is still possible, to post lib/poll.h.
Normally that file uses #include_next to get libc’s <poll.h>, but maybe
that mechanism somehow fails with old GCC versions.

Ludo’.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]