Subject: [Boost-bugs] [Boost C++ Libraries] #5277: QNX 6.5.0 compilation
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-03-07 21:14:47
#5277: QNX 6.5.0 compilation
-------------------------------------+--------------------------------------
Reporter: godbolt@⦠| Owner:
Type: Bugs | Status: new
Milestone: To Be Determined | Component: Building Boost
Version: Boost 1.46.0 | Severity: Problem
Keywords: |
-------------------------------------+--------------------------------------
Hi,
I am compiling boost on QNX 6.5.0 and there are some changes necessary to
the source in order to successfully complete the build.
Regarding ticket #3133 https://svn.boost.org/trac/boost/ticket/3133 it
seems that va_list is now in std namespace so this workaround actually
causes an error.
In order to fix this on my machine I commented out the test for __QNXNTO__
in boost/serialization/factory.hpp as follows
{{{
namespace std{
#if defined(__LIBCOMO__) //|| defined(__QNXNTO__)
using ::va_list;
#endif
} // namespace std
}}}
In addition there is an issue with the rename function included from
cstdio. By adding <stdio.h> to the includes in
libs/filesystem/v3/src/operations.cpp I was able to get it to work. e.g.,
{{{
#include <cstdio> // for remove, rename
#include <cerrno>
#include <cassert>
// #include <iostream> // for debugging only; comment out when not in
use
#if defined(__QNXNTO__)
#include <stdio.h>
#endif
}}}
finally, I added std::va_list to boost/test/impl/execution_monitor.ipp
{{{
#if defined(__QNXNTO__)
# include <stdio.h>
using std::va_list;
#endif
}}}
These changes allow the build to complete successfully, however I don't
know if this means the library has been built problem, and I'm sure there
is a better way to integrate these changes.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/5277> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:05 UTC