Bug #2374 LSB MySQL Porting Notes: include <poll.h> instead of <sys/poll.h>
Submitted: 13 Jan 2004 8:06 Modified: 28 Sep 2010 19:26
Reporter: Lenz Grimmer Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:4.0.14,5.1 OS:Linux (Linux)
Assigned to: Assigned Account CPU Architecture:Any

[13 Jan 2004 8:06] Lenz Grimmer
Description:
Excerpt from an email from Mats Wichmann with notes of a build of
MySQL 4.0.14 on an LSB system:

http://freestandards.org/pipermail/lsb-appbat/2003-October/001037.html

[SNIP]
6. include/my_net.h does #include <sys/poll.h>
Applications aligned with POSIX are supposed to
include <poll.h>; <sys/poll.h> might exist but
is not described by source standards.  It turns
out that this is completely invisible on GNU/Linux,
where <poll.h> directly includes <sys/poll.h>, but=20
in the LSB, the function prototype for poll appears=20
in the user-level header <poll.h> so including
<sys/poll.h> leaves it undeclared, and causes a
build problem.
[SNIP]

How to repeat:
Try to perform a MySQL build on an LSB development platform
[26 Jan 2004 8:34] Sergei Golubchik
moved to a todo: WL#1449
[28 Jul 2009 18:38] MySQL Verification Team
Back to verified. Same reason of http://bugs.mysql.com/bug.php?id=2371.
[28 Sep 2010 19:26] Jonathan Perkin
Closing these individual bugs, we have

 - a patch to fix these problems as of a few years ago (bug#29274)
 - a new bug to create ongoing PB2 builds to ensure LSB correctness (bug#57078)

to replace them.