Discussion:
[omniORB] omniorb 4.1.0 compilation error on solaris 10 with CC 5.8
Marco Fratessa
2007-01-09 15:42:26 UTC
Permalink
Hi all,



I try to compile the omniorb 4.1.0 on solaris 10 using CC: Sun C++ 5.8
2005/10/13.



Here the configure command:



../configure --prefix=/opt/omniorb/omniorb410 CXX=/opt/SUNWspro/bin/CC



To be able to compile I need to change on the file:



vi ../include/omniORB4/CORBA_sysdep.h



this line from



# if __SUNPRO_CC < 0x420



to



# if __SUNPRO_CC < 0x620



To enable to macro NEED_DUMMY_RETURN, otherwise the compiler is complaining
with the following error:



gmake[4]: Entering directory
`/opt/install/omniORB-4.1.0/build/src/lib/omniORB/orbcore'

/opt/SUNWspro/bin/CC -c -O2 -g -I..
-I../../../../../src/lib/omniORB/orbcore/..
-I../../../../include/omniORB4/internal
-I../../../../../include/omniORB4/internal -DUsePthread -D_REENTRANT -mt
-DUSE_omniORB_logStream -D_OMNIORB_LIBRARY
-DOMNIORB_VERSION_STRING='"4.1.0"' -DOMNIORB_VERSION_HEX='0x040100F1'
-DCONFIG_DEFAULT_LOCATION='"/etc/omniORB.cfg"'
-DCONFIG_ENV='"OMNIORB_CONFIG"' -DUnixArchitecture -DBSD_COMP -I.
-I../../../../../src/lib/omniORB/orbcore -I../../../../include
-I../../../../../include -D__OSVERSION__=5 -D__sunos__ -D__sparc__ -o
static/anonObject.o ../../../../../src/lib/omniORB/orbcore/anonObject.cc

"../../../../../include/omniORB4/poa_defs.h", line 184: Error: "static
PortableServer::AdapterActivator::_unmarshalObjRef(cdrStream&)" is expected
to return a value.

"../../../../../include/omniORB4/poa_defs.h", line 308: Error: "static
PortableServer::ServantManager::_unmarshalObjRef(cdrStream&)" is expected to
return a value.

"../../../../../include/omniORB4/poa_defs.h", line 429: Error: "static
PortableServer::ServantActivator::_unmarshalObjRef(cdrStream&)" is expected
to return a value.

"../../../../../include/omniORB4/poa_defs.h", line 558: Error: "static
PortableServer::ServantLocator::_unmarshalObjRef(cdrStream&)" is expected to
return a value.

4 Error(s) detected.

gmake[4]: *** [static/anonObject.o] Error 4

gmake[4]: Leaving directory
`/opt/install/omniORB-4.1.0/build/src/lib/omniORB/orbcore'

gmake[3]: *** [export] Error 2

gmake[3]: Leaving directory
`/opt/install/omniORB-4.1.0/build/src/lib/omniORB'

gmake[2]: *** [export] Error 2

gmake[2]: Leaving directory `/opt/install/omniORB-4.1.0/build/src/lib'

gmake[1]: *** [export] Error 2

gmake[1]: Leaving directory `/opt/install/omniORB-4.1.0/build/src'

gmake: *** [all] Error 2



After this modification I was able to compile omniorb 4.1.0.



Please let me know if this is a bug or I have missing something in my
configuration setting.



Thank in advance



Best regards

MARCO

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20070109/03b7f18b/attachment.htm
Loading...