[zeromq-dev] zeromq 3.2 tests fails

Sebastian Lauwers sebastian.lauwers at gmail.com
Sat Aug 4 12:37:14 CEST 2012


On 08/04/2012 12:23 PM, Lourens Naudé wrote:
> Works for me on OS X, but don't have access to a Linux ( or other OS )
> from my current location. Mind taking it for a spin ?

Hi Lourens,

I'm getting the following errors:

stream_engine.hpp: In constructor 
'zmq::stream_engine_t::stream_engine_t(zmq::fd_t, const zmq::options_t&, 
const string&)':
stream_engine.hpp:106:14: error: 'zmq::stream_engine_t::plugged' will be 
initialized after [-Werror=reorder]
stream_engine.hpp:104:21: error:   'std::string 
zmq::stream_engine_t::endpoint' [-Werror=reorder]
stream_engine.cpp:45:1: error:   when initialized here [-Werror=reorder]
cc1plus: all warnings being treated as errors
make[2]: *** [libzmq_la-stream_engine.lo] Error 1

The full compile line for stream_engine.cpp is:

libtool: compile:  g++ -DHAVE_CONFIG_H -I. -pedantic -Werror -Wall 
-D_GNU_SOURCE -D_REENTRANT -D_THREAD_SAFE -DZMQ_FORCE_EPOLL 
-fvisibility=hidden -g -O2 -MT libzmq_la-stream_engine.lo -MD -MP -MF 
.deps/libzmq_la-stream_engine.Tpo -c stream_engine.cpp  -fPIC -DPIC -o 
.libs/libzmq_la-stream_engine.o

If I try with clang:

libtool: compile:  clang++ -DHAVE_CONFIG_H -I. -pedantic -Werror -Wall 
-D_GNU_SOURCE -D_REENTRANT -D_THREAD_SAFE -DZMQ_FORCE_EPOLL 
-fvisibility=hidden -g -O2 -MT libzmq_la-stream_engine.lo -MD -MP -MF 
.deps/libzmq_la-stream_engine.Tpo -c stream_engine.cpp  -fPIC -DPIC -o 
.libs/libzmq_la-stream_engine.o

stream_engine.cpp:56:5: error: field 'plugged' will be initialized after 
field 'endpoint' [-Werror,-Wreorder]
     plugged (false),
     ^
1 error generated.
make[2]: *** [libzmq_la-stream_engine.lo] Error 1

My toolset:

$ g++ --version
g++ (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3

$ clang++ --version
Ubuntu clang version 3.0-6ubuntu3 (tags/RELEASE_30/final) (based on LLVM 
3.0)



More information about the zeromq-dev mailing list