[pkg-boost-devel] Bug#653441: epoll_create1() available in C, not C++ (on alpha)?

Steve M. Robbins steve at sumost.ca
Thu Jan 5 02:44:24 UTC 2012


I'm investigating #653441, a build failure that exists only for Alpha.
The C++ code in question uses epoll_create1().

I've boiled it down to the following test code:

  #include <sys/epoll.h>

  int main(int ac, char* av[])
      int fd = epoll_create1(0);
      return 0;

This can be successfully compiled using "gcc" on both alpha (tested in
sid chroot of albeniz.debian.org) and on my amd64 machine.

However, if I compile using "g++", the amd64 works, but alpha says:

  (sid)smr at albeniz:~$ g++ try-epoll.c 
  try-epoll.c: In function -F¡int main(int, char**)¢:-A
  try-epoll.c:5: error: -F¡epoll_create1¢ was not declared in this scope-A

What's the solution?  Is there a bug in alpha's libc6.1-dev (source
of epoll.h)?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-boost-devel/attachments/20120104/f2e6c141/attachment.pgp>

More information about the pkg-boost-devel mailing list