Bug 535 - fails to compile ORB.cpp in Solaris 7 with Sun 5.0 C++
Summary: fails to compile ORB.cpp in Solaris 7 with Sun 5.0 C++
Status: RESOLVED
Alias: None
Product: TAO
Classification: Unclassified
Component: ORB (show other bugs)
Version: 1.1
Hardware: SPARC Solaris
: P3 normal
Assignee: DOC Center Support List (internal)
URL:
Depends on:
Blocks:
 
Reported: 2000-04-12 16:35 CDT by Steve Vranyes
Modified: 2000-04-26 19:21 CDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Vranyes 2000-04-12 16:35:50 CDT
When compiling TAO I get the following error in $ACE_ROOT/TAO/tao.

CC -mt -g -library=iostream,no%Cstd -instances=explicit -noex  -DACE_NO_INLINE
-I/home/svranyes/ACE3/ACE_wrappers -DTAO_HAS_AMI=0 -DTAO_HAS_AMI_POLLER=0
-DTAO_HAS_AMI_CALLBACK=0 -DTAO_HAS_RT_CORBA=1 -DTAO_HAS_CORBA_MESSAGING=1
-I/home/svranyes/ACE3/ACE_wrappers/TAO  -c -PIC -o .shobj/PolicyS.o PolicyS.cpp
"ORB.cpp", line 1409: Error: Could not find a match for CORBA::ORB_init(int,
char**, const char*, CORBA_Environment).
"ORB.cpp", line 1417: Error: CORBA::ORB_init(int&, char**, const char*,
CORBA_Environment&) already had a body defined.

I looked in ORB.h and ORB_init is not defined there. There is something in
corbafwd.h for ORB_init but when looking at what the preprocessor produces it
substitutes in "extern ORB_ptr ORB_init" which is not what the compiler needs.

I have tried this with two versions of ACE and they both fail in the same
manner. $ACE_ROOT/ACE_wrappers/TAO/VERSION contains the line:

This is TAO version 1.1, released Wed Mar 15 17:32:51 2000.
Comment 1 Ossama Othman 2000-04-12 16:45:59 CDT
We compile on Solaris 7 with Sun C++ 5.0 several times a day.  TAO 1.1
definitely compiled with this compiler/platform combination, too.

Are you using a vanilla TAO 1.1 release?  What compiler patch level are you
using?  Sun C++ 5.0 is really flaky.  Successful compilation of TAO is very
sensitive to the compiler patch level you have installed.
Comment 2 Don Busch 2000-04-21 12:00:59 CDT
I'm not quite sure why this was assigned to me.
Comment 3 Ossama Othman 2000-04-21 15:59:59 CDT
It wasn't assigned to you.  :-)
It's still assigned to tao-support.
Comment 4 Carlos O'Ryan 2000-04-26 19:21:59 CDT
We tried locally and TAO builds without problems.
Furthermore the error messages reported by the compiler are bogus.
In short, it looks like a compiler bug, that only manifests itself in certain
compiler revisions.