Bug #51694 QNX build issue
Submitted: 3 Mar 2010 15:12 Modified: 15 Mar 2010 9:37
Reporter: Sean Boudreau Email Updates:
Status: Unsupported Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:5.0.88 OS:Other
Assigned to: CPU Architecture:Any
Tags: Contribution

[3 Mar 2010 15:12] Sean Boudreau
Description:
The QNX issue worked around in include/my_global.h
is fixed in latter versions.  Suggested diff below.

Regards,

-seanb

--- include/my_global.h.orig    2009-11-09 18:29:41.000000000 +0000
+++ include/my_global.h
@@ -406,6 +406,8 @@ extern "C" int madvise(void *addr, size_
 #undef  HAVE_FINITE
 #undef  LONGLONG_MIN            /* These get wrongly defined in QNX 6.2 */
 #undef  LONGLONG_MAX            /* standard system library 'limits.h' */
+#include <sys/neutrino.h>
+#if !defined(_NTO_VERSION) || (_NTO_VERSION < 640)
 #ifdef __cplusplus
 #ifndef HAVE_RINT
 #define HAVE_RINT
@@ -414,6 +416,7 @@ extern "C" int madvise(void *addr, size_
 #define isnan(a) std::isnan(a)  /* in the usr/include/math.h on QNX     */
 #endif
 #endif
+#endif

How to repeat:
Compile on QNX 6.4.1 and see redefinition warnings.
[15 Mar 2010 9:37] Sveta Smirnova
Thank you for the report.

All versions of QNX are not supported anymore. See http://www.mysql.com/support/eol-notice.html for details.

But thank you for contribution anyway: this can help other people who still use QNX.