From: Semih C. <Sem...@ne...> - 2009-04-30 05:35:58
|
Dear List, Attached is the patch file to apply to the STAF 3.3.3 source tree in order to compile it with Sun Studio C++ compiler on Solaris 10 (sparc) OS. The build system that I use here was: $ uname -a SunOS oberon 5.10 Generic_137137-09 sun4u sparc SUNW,Sun-Fire-880 $ CC -V CC: Sun C++ 5.9 SunOS_sparc Patch 124863-04 2008/04/16 The patch file is very similar to the one that I posted earlier (2008-11-19) for OpenSolaris x86, which is available from http://sourceforge.net/tracker/?func=detail&aid=2316610&group_id=33142&atid= 407383 During the Sun CC/Solaris port however I have come across a strange exception while executing a shutdown request. A demo and debugger transcript of this problem is also attached. I have come to the conclusion that the exception is caused by initialization/destruction sequence by one of STL containers. Lastly, could STAF developers/team please schedule this patch to be integrated into main truck? I understand that it is exceedingly difficult to support multitude of C++ compilers and platforms. However please note; 1- Gcc ABI and name mangling scheme is different and incompatible with Sun CC's one. 2- Sun CC is the native compiler on Solaris platform and comes with plethora of tools that Gcc may not have. 3- Especially in our case we have very large code base compilable only by Sun CC which we intend to integrate with STAF. Due to the issue indicated in #1, compiling STAF with Sun CC is a necessity for us. On the other hand re-applying the patch to the every new STAF release is not a desirable prospect. I believe my patches can be reviewed/integrated within an hour, as changes are mostly guarded by conditionals which would not affect other platforms that STAF currently supports. Thanks, regards, Semih Cemiloglu |