Dear all,
I want to port and test an application working with Equalizer 0.9 to 1.0 and I'm having some troubles compiling the source code. The default version of gcc shipped with Ubuntu 10.10 (4.4.5) complains about strict-aliasing rules being broken. The full error message is quite meaningless:

[ 0%] Building CXX object libs/client/CMakeFiles/Equalizer.dir/__/collage/rspConnection.cpp.o
cc1plus: warnings being treated as errors
In member function ‘virtual bool co::RSPConnection::listen()’:
cc1plus: error: dereferencing pointer ‘pretmp.23799’ does break strict-aliasing rules
cc1plus: note: initialized from here
cc1plus: error: dereferencing pointer ‘pretmp.23799’ does break strict-aliasing rules
cc1plus: note: initialized from here
cc1plus: error: dereferencing pointer ‘pretmp.23803’ does break strict-aliasing rules
cc1plus: note: initialized from here
cc1plus: error: dereferencing pointer ‘pretmp.23803’ does break strict-aliasing rules
cc1plus: note: initialized from here
make[2]: *** [libs/client/CMakeFiles/Equalizer.dir/__/collage/rspConnection.cpp.o] Error 1
make[1]: *** [libs/client/CMakeFiles/Equalizer.dir/all] Error 2
make: *** [all] Error 2

Trying to nail down the error I was able to obtain a clean compilation by commenting out lines 249-250 and replacing line 226 with: const ip::udp::endpoint writeEndpoint; My guess is that there is something wrong going on with boost::asio::ip::udp::resolver::iterator (my boost version is 1.42 by the way). Has anyone encountered this problem before? Is there a workaround?

Since I'm coming from 0.9.0 where RSP connections weren't still available, should I just remove the -Werror flag from the CMakeLists.txt and ignore this problem?

Thanks and best regards,
Juan

_______________________________________________
eq-dev mailing list
[email protected]
http://www.equalizergraphics.com/cgi-bin/mailman/listinfo/eq-dev
http://www.equalizergraphics.com

Reply via email to