Subject: [Boost-bugs] [Boost C++ Libraries] #3138: Interprocess dependency on sys/shm.h
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-06-06 00:16:39
#3138: Interprocess dependency on sys/shm.h
------------------------------------------------------+---------------------
Reporter: Niklas Angare <li51ckf02_at_[hidden]> | Owner: igaztanaga
Type: Bugs | Status: new
Milestone: Boost 1.40.0 | Component: interprocess
Version: Boost 1.39.0 | Severity: Regression
Keywords: QNX |
------------------------------------------------------+---------------------
Since 1.39, boost/interprocess/mapped_region.hpp depends on sys/shm.h
(from POSIX XSI). The QNX 6 operating system doesn't have this header and
thus Interprocess no longer works.
boost/interprocess/shared_memory_object.hpp only conditionally includes
sys/shm.h, like this:[[BR]]
#if defined(BOOST_INTERPROCESS_SYSTEM_V_SHARED_MEMORY_OBJECTS)[[BR]]
# include <sys/shm.h> //System V shared memory...[[BR]]
#elif defined(BOOST_INTERPROCESS_POSIX_SHARED_MEMORY_OBJECTS)[[BR]]
mapped_region.hpp uses a bunch of stuff from sys/shm.h though so the fix
won't be quite that easy.
Here are the rest of the errors from my NA-QNX641-qcc-gnu0x test
runner:[[BR]]
mapped_region.hpp:402: error: '::shmid_ds' has not been declared[[BR]]
mapped_region.hpp:402: error: expected `;' before 'xsi_ds'[[BR]]
mapped_region.hpp:403: error: '::shmctl' has not been declared[[BR]]
mapped_region.hpp:403: error: 'IPC_STAT' was not declared in this
scope[[BR]]
mapped_region.hpp:403: error: 'xsi_ds' was not declared in this
scope[[BR]]
mapped_region.hpp:419: error: 'SHM_RDONLY' was not declared in this
scope[[BR]]
mapped_region.hpp:426: error: '::shmat' has not been declared[[BR]]
mapped_region.hpp:552: error: '::shmdt' has not been declared
Full log: http://tinyurl.com/onnn2t
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/3138> 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:00 UTC