[zeromq-dev] ZeroMQv 0.6 build on Solaris 9
Martin Sustrik
sustrik at fastmq.com
Fri Apr 17 17:32:00 CEST 2009
Ayman,
> I am trying to build ZeroMQ on Sun Solaris 9 using GCC 4.2.4. The build
> failed in “libzmq/zmq/atomic_bitmap.hpp”
>
> Did you tried to build ZeroMQ on Solaris 9?
No. We're using Solaris 10 for testing.
> Bellow is the build error log.
> ../../libzmq/zmq/atomic_bitmap.hpp:96: error: 'atomic_cas_32' was not
> declared in this scope
>
> ../../libzmq/zmq/atomic_bitmap.hpp: In member function 'uint32_t
> zmq::atomic_bitmap_t::xchg(uint32_t)':
>
> ../../libzmq/zmq/atomic_bitmap.hpp:153: error: 'atomic_swap_32' was not
> declared in this scope
>
> ../../libzmq/zmq/atomic_bitmap.hpp: In member function 'uint32_t
> zmq::atomic_bitmap_t::izte(uint32_t, uint32_t)':
>
> ../../libzmq/zmq/atomic_bitmap.hpp:207: error: 'atomic_cas_32' was not
> declared in this scope
This looks like Solaris 9 doesn't provide wrapper functions for atomic
instructions. You can disable the use of atomics this way:
export CXXFLAGS=-DZMQ_FORCE_MUTEXES
./configure
make
Let us know whether it helped!
Martin
More information about the zeromq-dev
mailing list