Opened 10 years ago

Closed 10 years ago

#7214 closed Bugs (fixed)

Build issue for QNX OS 6.5 SDK

Reported by: steve.lemay@… Owned by: Robert Ramey
Milestone: To Be Determined Component: serialization
Version: Boost 1.51.0 Severity: Problem
Keywords: QNXNTO std::va_list valist Cc:

Description

It appears a small work around introduced to address a compilation problem related to the definition of std::va_list for Boost 1.42 and QNX OS 6.4 SDK is now causing the reverse problem for Boost 1.51 and the QNX 6.5 SDK. See original closed bug report, Ticket #3133.

The fix appears to be trivial, and if valid would be very nice to have in Boost 1.51.0. I was able to successful compile the libraries without error by changing:

In factory.hpp line #26 remove preprocessor defined (QNX_NTO)

namespace fac{

#if defined(LIBCOMO)

using ::va_list;

#endif

}

In execution_monitor.ipp line 56 add 'OR' defined (QNXNTO)

to use vsnprintf #if defined(SUNPRO_CC) OR defined(SunOS) OR defined (QNXNTO) # include <stdio.h> # include <stdarg.h> using std::va_list; #endif

execution_monitor.ipp REMOVE line 54 through 60 #if defined(QNXNTO) # include <stdio.h> #endif

Change History (2)

comment:1 by steve.lemay@…, 10 years ago

The source modification appears/shows incorrectly above due to Wiki Formatting. This issue was detected in Boost 1.50 (not 1.51) as described. I tried to attached the modified source files for reference, but they are being rejected by the Trac software as possible malware. QNXNTO has double underscores on both sides, and the OR should be double pipes. Due to issues with the web interface with Trac (malware detection), this problem report was created twice. Sorry.

comment:2 by Robert Ramey, 10 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.