Bug #29274 Patch: Enable LSB-compliant build
Submitted: 21 Jun 2007 15:31 Modified: 15 Apr 2015 7:39
Reporter: Jeff Licquia Email Updates:
Status: Won't fix Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:5.1.18 OS:Linux
Assigned to: Assigned Account CPU Architecture:Any
Tags: Contribution

[21 Jun 2007 15:31] Jeff Licquia
Description:
MySQL cannot be built to be LSB-compliant, because it uses some things not in the LSB.

How to repeat:
CC=lsbcc CXX=lsbc++ ./configure ...

Suggested fix:
The contributed patch resolves four issues:

 - When checking for sigset_t, use signal.h instead of sys/types.h as the header.

 - isnan() may be a macro, so look for it like isinf().

 - _POSIX_PATH_MAX is not portable; use PATH_MAX instead.

 - getdtablesize() is not in the LSB, so implement a local replacement that is exactly equivalent.

Also, in review, it was pointed out that we should check our use of poll.h when needed, so those checks have also been included.
[21 Jun 2007 15:34] Jeff Licquia
Patch to fix LSB issues.

Attachment: mysql-lsb.patch (text/x-patch), 4.85 KiB.

[21 Jun 2007 16:20] Valeriy Kravchuk
Thank you for the problem report and patch.
[22 Jun 2007 22:47] Chad MILLER
The parts not about NDB are good by me.  Stewart will handle the other part, I think.
[15 Apr 2015 7:38] Jon Olav Hauglid
Posted by developer:
 
LSB development environment packages have been removed from popular Linux distros such as Ubuntu and Debian making it unfeasible to fix this.