Boost logo

Boost Users :

Subject: Re: [Boost-users] [interprocess] problem in HPUX
From: Rui Pedro Fernandes (ruipfernandes_at_[hidden])
Date: 2009-09-21 05:53:38


Hi,

I'd like to know if you intend to integrate the fixes that emerged from the
effort we spent on trying to solve the problems in HP-UX, so that I can
expect they will be included in the next boost version.

Best regards,
Rui

On Wed, Sep 16, 2009 at 10:40 AM, Rui Pedro Fernandes <
ruipfernandes_at_[hidden]> wrote:

>
> 2009/9/13 Ion Gaztañaga <igaztanaga_at_[hidden]>
>
>> 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)
>
>



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net