2009/9/13 Ion Gaztaņaga <igaztanaga@gmail.com>
Interprocess supposes that if shm_open needs path-based names(POSIX allows that), sem_open also needs them, so try to comment this line in inteprocess/detail/workaround.hpp:
#ifdef BOOST_INTERPROCESS_POSIX_NAMED_SEMAPHORES
#if defined(BOOST_INTERPROCESS_FILESYSTEM_BASED_POSIX_RESOURCES)
//THIS-> #define BOOST_INTERPROCESS_FILESYSTEM_BASED_POSIX_SEMAPHORES
#endif
#endif
And let's see if simple "/name" names are what hpux needs for sems.This solved the problem. Thank you!
Based on this information I solved the problem by adding this line to file Jamfile.v2, after line 29:<host-os>hpux,<toolset>gcc:<linkflags>"-Wl,+as,mpas"wrong order of the parameters passed to method __sync_val_compare_and_swap (in detail::atomic_cas32):wrong: __sync_val_compare_and_swap(const_cast<boost::uint32_t *>(mem), with, cmp)correct: __sync_val_compare_and_swap(const_cast<boost::uint32_t *>(mem), cmp, with)