Boost logo

Boost Users :

Subject: Re: [Boost-users] undefined references '__sync_fetch_and_add_4 'for Boost_1_39_0 on Alpha platform
From: Yan Wu (wuyan.ooorg_at_[hidden])
Date: 2010-11-23 09:40:27


On 11/23/10, Peter Dimov <pdimov_at_[hidden]> wrote:
> Kevin Arunski wrote:
>> On Nov 23, 2010, at 6:07 AM, Yan Wu wrote:
>>
>> > Hi,
>> >
>> > I got an error when building OpenOffice.org on Alpha EV6 platform, the
>> > error log is as following:
>> >
>> >
>> > Compiling: comphelper/unxlngaxp.pro/misc/comphelp4gcc3_version.c
>> > Making: comphelper.lib
>> > Making: libcomphelp4gcc3.so
>> > ../unxlngaxp.pro/slo/enumberablemap.o: In function
>> > 'comphelper
>> > ::EnumerableMap
>> > ::initialize(com::sun::star::uno::Sequence<com::sun::star::uno::Any>
>> > const&)': '__sync_fetch_and_add_4' undefined reference
> ...
>> These functions are built-in functions provided by gcc to implement
>> atomic operations. For some platforms, these intrinsics were not
>> implemented.. You can either provide an implementation yourself, or use
>> a newer version of gcc that implements them.
>
> Yes. To disable shared_ptr's use of these intrinsics, #define
> BOOST_SP_USE_PTHREADS.
>
Thanks for your kindly replies. It's a little difficult to implement
the atomic operations by myself;-)
Where should the macro BOOST_SP_USE_PTHREADS be defined ? Which file
in boost or the file in my comphelper.cxx?

Regards,
Yan


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