From: ludo@gnu.org (Ludovic Courtès)
To: Andreas Enge <andreas@enge.fr>
Cc: 18508@debbugs.gnu.org
Subject: bug#18508: Incomplete type pollfd
Date: Mon, 22 Sep 2014 10:43:27 +0200 [thread overview]
Message-ID: <878ulct58w.fsf@gnu.org> (raw)
In-Reply-To: <20140919101615.GA25878@debian.surfnet.iacbox> (Andreas Enge's message of "Fri, 19 Sep 2014 12:16:15 +0200")
Andreas Enge <andreas@enge.fr> 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’.
next prev parent reply other threads:[~2014-09-22 8:43 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-19 10:16 bug#18508: Incomplete type pollfd Andreas Enge
2014-09-19 10:28 ` bug#18507: " Andreas Enge
2016-06-21 16:08 ` Andy Wingo
2014-09-22 8:43 ` Ludovic Courtès [this message]
2014-09-26 14:40 ` bug#18508: " Andreas Enge
2014-09-27 9:41 ` Ludovic Courtès
2014-09-27 12:40 ` Andreas Enge
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=878ulct58w.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=18508@debbugs.gnu.org \
--cc=andreas@enge.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).