[zeromq-dev] Build fixes for Sun Studio and ICC

Mikko Koppanen mikko.koppanen at gmail.com
Thu Oct 14 18:54:35 CEST 2010


Hello,

attached are three patches that I needed to create in order to get
ZeroMQ master branch to build with Sun One Studio on Linux and ICC on
Linux.

Short explanation of each:

0001-Fixes-build-on-Linux-using-Sun-Studio-compiler.patch

It seems that defining _GNU_SOURCE macro on Linux causes Sun Studio to
barf on GNU related extensions. ICC seems to be recognized as a GNU
compiler so this should be a safe patch.

0002-Fix-build-for-ICC.patch

Fixes the following build errors:

epoll.cpp(141): error #68: integer conversion resulted in a change of sign
              timeout ? timeout : -1);

poll.cpp(130): error #68: integer conversion resulted in a change of sign
          int rc = poll (&pollset [0], pollset.size (), timeout ? timeout : -1);


0003-ICC-related-qualifier-fix.patch (does this change functionality?)

Fixes the following build errors:

pipe.hpp(60): error #1098: the qualifier on this friend declaration is ignored
          friend void zmq::create_pipe (object_t*, object_t*, uint64_t,

pipe.hpp(129): error #1098: the qualifier on this friend declaration is ignored
          friend void zmq::create_pipe (object_t*, object_t*, uint64_t,



I tested GCC, ICC and Sun Studio after applying these patches and
everything still seems to work. *knocks wood*


-- 
Mikko Koppanen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fixes-build-on-Linux-using-Sun-Studio-compiler.patch
Type: application/octet-stream
Size: 1022 bytes
Desc: not available
Url : http://lists.zeromq.org/pipermail/zeromq-dev/attachments/20101014/342cd8dc/attachment-0003.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Fix-build-for-ICC.patch
Type: application/octet-stream
Size: 1306 bytes
Desc: not available
Url : http://lists.zeromq.org/pipermail/zeromq-dev/attachments/20101014/342cd8dc/attachment-0004.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-ICC-related-qualifier-fix.patch
Type: application/octet-stream
Size: 1067 bytes
Desc: not available
Url : http://lists.zeromq.org/pipermail/zeromq-dev/attachments/20101014/342cd8dc/attachment-0005.obj 


More information about the zeromq-dev mailing list