Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[ace-users] RE: Problem compiling TAO services

1 view
Skip to first unread message

Yong Chen

unread,
Oct 2, 2001, 8:48:55 PM10/2/01
to

Hi,

I'm now able to compile the ACE/TAO by the following changes:

In file /home/ychen/ACE_TAO_1_1_21/ACE_wrappers/TAO/TAO_IDL/be/be_helper.cpp

TAO_OutStream &
TAO_OutStream::operator<< (const TAO_INDENT& i)
{
this->incr_indent (0);

/* comment this if block out
if (i.do_now_)
{
this->nl ();
}
*/
this->nl(); //add this line
return *this;
}

TAO_OutStream &
TAO_OutStream::operator<< (const TAO_UNINDENT& i)
{
this->decr_indent (0);

/* comment this if block out
if (i.do_now_)
{
this->nl ();
}
*/
this->nl(); //add this line

return *this;
}


Those generated files are nicely spaced out and indented. Unfornaturely I'm
facing another problem when running Naming_Service as following:


./Naming_Service -ORBEndpoint iiop://10.20.1.33:2003 -ORBDebugLevel 10
TAO (489|1) Loaded default protocol <IIOP_Factory>
TAO (489|1) created new ORB <>
TAO (489|1) IIOP_Acceptor::open_i() trying to listen on port 2003

TAO (489|1) IIOP_Acceptor::open_i - listening on: <10.20.1.33:2003>
Notifying IMR of startup

We'll become a NameService
Missing ImR IOR, will not use the ImR
ACE_DLL::symbol failed for function _make_TAO_Table_Adapter_Factory:
Undefined symbol "__make_TAO_Table_Adapter_Factory"
Unable to find service: TAO_IORTable
(489|1) EXCEPTION, TAO_Naming_Server
user exception, ID 'IDL:omg.org/CORBA/ORB/InvalidName:1.0'

Please help!


thanks
Yong Chen

-----Original Message-----
From: Yong Chen
Sent: Friday, September 28, 2001 11:46 AM
To: 'ace-...@cs.wustl.edu'
Subject: Problem compiling TAO services

TAO Version: 1.1.21 (from
http://www.cs.wustl.edu/~schmidt/ACE_wrappers/ACE+TAO.tar.gz )
ACE VERSION: 5.1.21

HOST MACHINE and OPERATION SYSTEM: PowerPC/NetBSD1.4Z
COMPILER NAME and VERSIOIN: gcc egcs-1.1.2

AREA/CLASS/EXAMPLE AFFECTED: ../TAO/orbsvcs/orbsvcs
DOES THE PROBLEM AFFECT:
COMPILATION: Yes
LINKING:
EXECUTION:

SYNOPSIS:
Can't compile the orbsvcs/orbsvcs (actually also tests directory)

DESCRIPTION:

I downloaded per Doug's suggestion TAO 1.1.21, started to compile it. I
commented out "#define ACE_HAS_SEMUN" in config.h, (otherwise it won't
compile). I also changed one CFLAGS option -fpic to -fPIC in
platform_netbsd.GNU(otherwise I'll get some "relocation truncated..."
error). Then I was able to compile $ACE_ROOT/ace, $TAO_ROOT/tao and
$TAO_ROOT/TAO_IDL. ( I actually had to copy those generated .so files to
$ACE_ROOT/ace, otherwise they won't be found, even if the symbolic links are
there in $ACE_ROOT/ace).

But when I was compiling $TAO_ROOT/orbsvcs/orbsvcs, I got syntax error as
following. I checked, for instance, RtecBaseC.i, at line 163, it has
statement like this: "elsereturn", it should be "else return".


@% pwd
/home/ychen/ACE_TAO_1_1_21/ACE_wrappers/TAO/orbsvcs
@% gmake
gmake[1]: Entering directory
`/home/ychen/ACE_TAO_1_1_21/ACE_wrappers/TAO/orbsvcs/orbsvcs'
Makefile.Svc_Utils
gmake[2]: Entering directory
`/home/ychen/ACE_TAO_1_1_21/ACE_wrappers/TAO/orbsvcs/orbsvcs'
g++ -w -fno-strict-prototypes -g -fno-implicit-templates -fno-exceptions
-fcheck-new -I/home/ychen/ACE_TAO_1_1_21/ACE_wrappers
-I/home/ychen/ACE_TAO_1_1_21/ACE_wrappers/TAO
-I/home/ychen/ACE_TAO_1_1_21/ACE_wrappers/TAO/orbsvcs
-I/home/ychen/ACE_TAO_1_1_21/ACE_wrappers/TAO/orbsvcs/orbsvcs/Event -c
-fPIC -DPIC -o .shobj/RtecBaseS.o RtecBaseS.cpp
RtecBaseC.i: In function `Boolean operator <<(class TAO_OutputCDR &, const
struct ::RtecBase::Dependency_Info &)':
In file included from RtecBaseC.h:151,
from RtecBaseS.h:26,
from RtecBaseS.cpp:25:
RtecBaseC.i:163: syntax error before `0'
RtecBaseC.i: In function `Boolean operator >>(class TAO_InputCDR &, struct
::RtecBase::Dependency_Info &)':
RtecBaseC.i:168: syntax error before `0'
gmake[2]: *** [.shobj/RtecBaseS.o] Error 1
gmake[2]: Leaving directory
`/home/ychen/ACE_TAO_1_1_21/ACE_wrappers/TAO/orbsvcs/orbsvcs'
Makefile.CosNaming
gmake[2]: Entering directory
`/home/ychen/ACE_TAO_1_1_21/ACE_wrappers/TAO/orbsvcs/orbsvcs'
g++ -w -fno-strict-prototypes -g -fno-implicit-templates -fno-exceptions
-fcheck-new -I/home/ychen/ACE_TAO_1_1_21/ACE_wrappers
-I/home/ychen/ACE_TAO_1_1_21/ACE_wrappers/TAO
-I/home/ychen/ACE_TAO_1_1_21/ACE_wrappers/TAO/orbsvcs -c -fPIC -DPIC -o
.shobj/Naming_Context_Interface.o Naming/Naming_Context_Interface.cpp
In file included from
/home/ychen/ACE_TAO_1_1_21/ACE_wrappers/TAO/orbsvcs/orbsvcs/CosNamingS.h:26,
from Naming/Naming_Context_Interface.h:19,
from Naming/Naming_Context_Interface.cpp:15:
/home/ychen/ACE_TAO_1_1_21/ACE_wrappers/TAO/orbsvcs/orbsvcs/CosNamingC.h:604
: syntax error
/home/ychen/ACE_TAO_1_1_21/ACE_wrappers/TAO/orbsvcs/orbsvcs/CosNamingC.h:113
3: syntax error
/home/ychen/ACE_TAO_1_1_21/ACE_wrappers/TAO/orbsvcs/orbsvcs/CosNamingC.h:136
2: syntax error
In file included from
/home/ychen/ACE_TAO_1_1_21/ACE_wrappers/TAO/orbsvcs/orbsvcs/CosNamingS.h:26,
from Naming/Naming_Context_Interface.h:19,
from Naming/Naming_Context_Interface.cpp:15:
/home/ychen/ACE_TAO_1_1_21/ACE_wrappers/TAO/orbsvcs/orbsvcs/CosNamingC.h:112
2: unterminated `#if' conditional
gmake[2]: *** [.shobj/Naming_Context_Interface.o] Error 1
gmake[2]: Leaving directory
`/home/ychen/ACE_TAO_1_1_21/ACE_wrappers/TAO/orbsvcs/orbsvcs'
Makefile.CosTime
gmake[2]: Entering directory
`/home/ychen/ACE_TAO_1_1_21/ACE_wrappers/TAO/orbsvcs/orbsvcs'
/home/ychen/ACE_TAO_1_1_21/ACE_wrappers/TAO/TAO_IDL/tao_idl
-I/home/ychen/ACE_TAO_1_1_21/ACE_wrappers/TAO -Ge 1
-Wb,export_macro=TAO_Time_Export -Wb,export_include=Time/time_export.h
-Wb,pre_include=ace/pre.h -Wb,post_include=ace/post.h TimeService.idl
g++ -w -fno-strict-prototypes -g -fno-implicit-templates -fno-exceptions
-fcheck-new -I/home/ychen/ACE_TAO_1_1_21/ACE_wrappers
-I/home/ychen/ACE_TAO_1_1_21/ACE_wrappers/TAO
-I/home/ychen/ACE_TAO_1_1_21/ACE_wrappers/TAO/orbsvcs -c -fPIC -DPIC -o
.shobj/TAO_Time_Service_Server.o Time/TAO_Time_Service_Server.cpp
In file included from
/home/ychen/ACE_TAO_1_1_21/ACE_wrappers/TAO/orbsvcs/orbsvcs/TimeServiceS.h:2
7,
from Time/TAO_UTO.h:24,
from Time/TAO_Time_Service_Server.cpp:4:
/home/ychen/ACE_TAO_1_1_21/ACE_wrappers/TAO/orbsvcs/orbsvcs/TimeServiceC.h:2
70: syntax error
/home/ychen/ACE_TAO_1_1_21/ACE_wrappers/TAO/orbsvcs/orbsvcs/TimeServiceC.h:4
71: syntax error
/home/ychen/ACE_TAO_1_1_21/ACE_wrappers/TAO/orbsvcs/orbsvcs/TimeServiceC.h:7
11: syntax error
In file included from
/home/ychen/ACE_TAO_1_1_21/ACE_wrappers/TAO/orbsvcs/orbsvcs/TimeServiceS.h:2
7,
from Time/TAO_UTO.h:24,
from Time/TAO_Time_Service_Server.cpp:4:
/home/ychen/ACE_TAO_1_1_21/ACE_wrappers/TAO/orbsvcs/orbsvcs/TimeServiceC.h:4
60: unterminated `#if' conditional
gmake[2]: *** [.shobj/TAO_Time_Service_Server.o] Error 1
gmake[2]: Leaving directory
`/home/ychen/ACE_TAO_1_1_21/ACE_wrappers/TAO/orbsvcs/orbsvcs'
Makefile.LoadBalancing
gmake[2]: Entering directory
`/home/ychen/ACE_TAO_1_1_21/ACE_wrappers/TAO/orbsvcs/orbsvcs'
/home/ychen/ACE_TAO_1_1_21/ACE_wrappers/TAO/TAO_IDL/tao_idl
-I/home/ychen/ACE_TAO_1_1_21/ACE_wrappers/TAO -Ge 1
-Wb,export_macro=TAO_LoadBalancing_Export
-Wb,export_include=LoadBalancing/LoadBalancing_export.h
-Wb,pre_include=ace/pre.h -Wb,post_include=ace/post.h LoadBalancing.idl
g++ -w -fno-strict-prototypes -g -fno-implicit-templates -fno-exceptions
-fcheck-new -I/home/ychen/ACE_TAO_1_1_21/ACE_wrappers
-I/home/ychen/ACE_TAO_1_1_21/ACE_wrappers/TAO
-I/home/ychen/ACE_TAO_1_1_21/ACE_wrappers/TAO/orbsvcs -c -fPIC -DPIC -o
.shobj/LoadBalancer_i.o LoadBalancing/LoadBalancer_i.cpp
In file included from
/home/ychen/ACE_TAO_1_1_21/ACE_wrappers/TAO/orbsvcs/orbsvcs/LoadBalancingS.h
:26,
from LoadBalancing/LoadBalancer_i.h:23,
from LoadBalancing/LoadBalancer_i.cpp:5:
/home/ychen/ACE_TAO_1_1_21/ACE_wrappers/TAO/orbsvcs/orbsvcs/LoadBalancingC.h
:138: syntax error
/home/ychen/ACE_TAO_1_1_21/ACE_wrappers/TAO/orbsvcs/orbsvcs/LoadBalancingC.h
:350: syntax error
/home/ychen/ACE_TAO_1_1_21/ACE_wrappers/TAO/orbsvcs/orbsvcs/LoadBalancingC.h
:720: syntax error
In file included from
/home/ychen/ACE_TAO_1_1_21/ACE_wrappers/TAO/orbsvcs/orbsvcs/LoadBalancingS.h
:26,
from LoadBalancing/LoadBalancer_i.h:23,
from LoadBalancing/LoadBalancer_i.cpp:5:
/home/ychen/ACE_TAO_1_1_21/ACE_wrappers/TAO/orbsvcs/orbsvcs/LoadBalancingC.h
:339: unterminated `#if' conditional
gmake[2]: *** [.shobj/LoadBalancer_i.o] Error 1
gmake[2]: Leaving directory
`/home/ychen/ACE_TAO_1_1_21/ACE_wrappers/TAO/orbsvcs/orbsvcs'
Makefile.CosConcurrency
gmake[2]: Entering directory
`/home/ychen/ACE_TAO_1_1_21/ACE_wrappers/TAO/orbsvcs/orbsvcs'
/home/ychen/ACE_TAO_1_1_21/ACE_wrappers/TAO/TAO_IDL/tao_idl
-I/home/ychen/ACE_TAO_1_1_21/ACE_wrappers/TAO -Ge 1
-Wb,export_macro=TAO_Concurrency_Export
-Wb,export_include=Concurrency/concurrency_export.h
-Wb,pre_include=ace/pre.h -Wb,post_include=ace/post.h
CosConcurrencyControl.idl
g++ -w -fno-strict-prototypes -g -fno-implicit-templates -fno-exceptions
-fcheck-new -I/home/ychen/ACE_TAO_1_1_21/ACE_wrappers
-I/home/ychen/ACE_TAO_1_1_21/ACE_wrappers/TAO
-I/home/ychen/ACE_TAO_1_1_21/ACE_wrappers/TAO/orbsvcs -c -fPIC -DPIC -o
.shobj/CC_Lock.o Concurrency/CC_Lock.cpp
In file included from Concurrency/CC_Lock.h:31,
from Concurrency/CC_Lock.cpp:20:
/home/ychen/ACE_TAO_1_1_21/ACE_wrappers/TAO/orbsvcs/orbsvcs/CosConcurrencyCo
ntrolC.h:186: syntax error
/home/ychen/ACE_TAO_1_1_21/ACE_wrappers/TAO/orbsvcs/orbsvcs/CosConcurrencyCo
ntrolC.h:435: syntax error
In file included from Concurrency/CC_Lock.h:31,
from Concurrency/CC_Lock.cpp:20:
/home/ychen/ACE_TAO_1_1_21/ACE_wrappers/TAO/orbsvcs/orbsvcs/CosConcurrencyCo
ntrolC.h:175: unterminated `#if' conditional
gmake[2]: *** [.shobj/CC_Lock.o] Error 1
gmake[2]: Leaving directory
`/home/ychen/ACE_TAO_1_1_21/ACE_wrappers/TAO/orbsvcs/orbsvcs'
Makefile.CosProperty
gmake[2]: Entering directory
`/home/ychen/ACE_TAO_1_1_21/ACE_wrappers/TAO/orbsvcs/orbsvcs'
/home/ychen/ACE_TAO_1_1_21/ACE_wrappers/TAO/TAO_IDL/tao_idl
-I/home/ychen/ACE_TAO_1_1_21/ACE_wrappers/TAO -Ge 1
-Wb,export_macro=TAO_Property_Export
-Wb,export_include=Property/property_export.h -Wb,pre_include=ace/pre.h
-Wb,post_include=ace/post.h CosPropertyService.idl
g++ -w -fno-strict-prototypes -g -fno-implicit-templates -fno-exceptions
-fcheck-new -I/home/ychen/ACE_TAO_1_1_21/ACE_wrappers
-I/home/ychen/ACE_TAO_1_1_21/ACE_wrappers/TAO
-I/home/ychen/ACE_TAO_1_1_21/ACE_wrappers/TAO/orbsvcs -c -fPIC -DPIC -o
.shobj/CosPropertyService_i.o Property/CosPropertyService_i.cpp
In file included from
/home/ychen/ACE_TAO_1_1_21/ACE_wrappers/TAO/orbsvcs/orbsvcs/CosPropertyServi
ceS.h:26,
from
/home/ychen/ACE_TAO_1_1_21/ACE_wrappers/TAO/orbsvcs/orbsvcs/Property/CosProp
ertyService_i.h:28,
from Property/CosPropertyService_i.cpp:16:
/home/ychen/ACE_TAO_1_1_21/ACE_wrappers/TAO/orbsvcs/orbsvcs/CosPropertyServi
ceC.h:1821: syntax error
/home/ychen/ACE_TAO_1_1_21/ACE_wrappers/TAO/orbsvcs/orbsvcs/CosPropertyServi
ceC.h:2056: syntax error
/home/ychen/ACE_TAO_1_1_21/ACE_wrappers/TAO/orbsvcs/orbsvcs/CosPropertyServi
ceC.h:2223: syntax error
/home/ychen/ACE_TAO_1_1_21/ACE_wrappers/TAO/orbsvcs/orbsvcs/CosPropertyServi
ceC.h:2523: syntax error
/home/ychen/ACE_TAO_1_1_21/ACE_wrappers/TAO/orbsvcs/orbsvcs/CosPropertyServi
ceC.h:2791: syntax error
/home/ychen/ACE_TAO_1_1_21/ACE_wrappers/TAO/orbsvcs/orbsvcs/CosPropertyServi
ceC.h:2960: syntax error
In file included from
/home/ychen/ACE_TAO_1_1_21/ACE_wrappers/TAO/orbsvcs/orbsvcs/CosPropertyServi
ceS.h:26,
from
/home/ychen/ACE_TAO_1_1_21/ACE_wrappers/TAO/orbsvcs/orbsvcs/Property/CosProp
ertyService_i.h:28,
from Property/CosPropertyService_i.cpp:16:
/home/ychen/ACE_TAO_1_1_21/ACE_wrappers/TAO/orbsvcs/orbsvcs/CosPropertyServi
ceC.h:2780: unterminated `#if' conditional
gmake[2]: *** [.shobj/CosPropertyService_i.o] Error 1
gmake[2]: Leaving directory
`/home/ychen/ACE_TAO_1_1_21/ACE_wrappers/TAO/orbsvcs/orbsvcs'
Makefile.av
gmake[2]: Entering directory
`/home/ychen/ACE_TAO_1_1_21/ACE_wrappers/TAO/orbsvcs/orbsvcs'
/home/ychen/ACE_TAO_1_1_21/ACE_wrappers/TAO/TAO_IDL/tao_idl
-I/home/ychen/ACE_TAO_1_1_21/ACE_wrappers/TAO -Ge 1
-Wb,export_macro=TAO_AV_Export -Wb,export_include=AV/AV_export.h
AVStreams.idl
...
...

Yong Chen

unread,
Oct 2, 2001, 9:45:39 PM10/2/01
to

Hi Doug,

Yes, it's NetBSD1.4Z/PowerPC, I have the OS/Platform info in my previous
email (by including the original email that reported the compilation
problem).

What is explicit dynamically linking? I was using your 1.1 release and could
run Naming_Service (though it crashes when a client tries to talk to it,
that's why I moved to 1.1.21, based on your suggestion.)


thanks
Yong Chen

-----Original Message-----
From: Douglas C. Schmidt [mailto:sch...@cs.wustl.edu]
Sent: Tuesday, October 02, 2001 6:35 PM
To: yc...@allegronetworks.com; par...@cs.wustl.edu; ba...@cs.wustl.edu
Subject: Re: [ace-users] RE: Problem compiling TAO services


Hi Yong,

>> I'm now able to compile the ACE/TAO by the following changes:

Cool!

>> In file
/home/ychen/ACE_TAO_1_1_21/ACE_wrappers/TAO/TAO_IDL/be/be_helper.cpp
>>
>> TAO_OutStream &
>> TAO_OutStream::operator<< (const TAO_INDENT& i)
>> {
>> this->incr_indent (0);
>>
>> /* comment this if block out
>> if (i.do_now_)
>> {
>> this->nl ();
>> }
>> */
>> this->nl(); //add this line
>> return *this;
>> }
>>
>> TAO_OutStream &
>> TAO_OutStream::operator<< (const TAO_UNINDENT& i)
>> {
>> this->decr_indent (0);
>>
>> /* comment this if block out
>> if (i.do_now_)
>> {
>> this->nl ();
>> }
>> */
>> this->nl(); //add this line
>>
>> return *this;
>> }
>>
>> Those generated files are nicely spaced out and indented.

Jeff, is this something you can fix without breaking other stuff?

>> Unfortunately, I'm facing another problem when running


>> Naming_Service as following:
>>
>> ./Naming_Service -ORBEndpoint iiop://10.20.1.33:2003 -ORBDebugLevel 10
>> TAO (489|1) Loaded default protocol <IIOP_Factory>
>> TAO (489|1) created new ORB <>
>> TAO (489|1) IIOP_Acceptor::open_i() trying to listen on port 2003
>>
>> TAO (489|1) IIOP_Acceptor::open_i - listening on: <10.20.1.33:2003>
>> Notifying IMR of startup
>>
>> We'll become a NameService
>> Missing ImR IOR, will not use the ImR
>> ACE_DLL::symbol failed for function _make_TAO_Table_Adapter_Factory:
>> Undefined symbol "__make_TAO_Table_Adapter_Factory"
>> Unable to find service: TAO_IORTable
>> (489|1) EXCEPTION, TAO_Naming_Server
>> user exception, ID 'IDL:omg.org/CORBA/ORB/InvalidName:1.0'

I don't recall which platform you're using, is it NetBSD? If so,
maybe it doesn't support explicit dynamic linking properly?

Thanks,

Doug

--
Dr. Douglas C. Schmidt, Associate Professor TEL: (949) 824-1901
Dept of Electrical & Computer Engineering FAX: (949) 824-2321
616E Engineering Tower WEB: www.ece.uci.edu/~schmidt/
University of California, Irvine, 92697-2625 NET: sch...@uci.edu

Douglas C. Schmidt

unread,
Oct 2, 2001, 10:04:27 PM10/2/01
to
Hi Yong,

>> Yes, it's NetBSD1.4Z/PowerPC, I have the OS/Platform info in my
>> previous email (by including the original email that reported the
>> compilation problem).

Ok, thanks for the update. We'll try to fix the problem with the
concatenated output from TAO's IDL compiler, but since we don't have
NetBSD we'll need to rely on your to track down the problem with the
dynamic linking.

>> What is explicit dynamically linking?

Please see the "Component Configurator" pattern in POSA2
<www.cs.wustl.edu/~schmidt/POSA/> for information on explicit dynamic
linking. There's also information in a paper on the ACE Service
Configurator framework at

http://www.cs.wustl.edu/~schmidt/PDF/Svc-Conf.pdf

>> I was using your 1.1 release and could run Naming_Service (though
>> it crashes when a client tries to talk to it, that's why I moved to
>> 1.1.21, based on your suggestion.)

If you need more "predictable" support for TAO, I recommend that you
contact Malcolm Spence <spen...@ociweb.com>.

Take care,

Yong Chen

unread,
Oct 2, 2001, 10:15:59 PM10/2/01
to

Thanks Doug, sure I can do the test if you give me the fix.

I'm trying to evaluate TAO's notification service to see if it meets our
requirements. Hopefully I can get some basic ideas before getting into
commercial support.

thanks
Yong Chen


-----Original Message-----
From: Douglas C. Schmidt [mailto:sch...@cs.wustl.edu]
Sent: Tuesday, October 02, 2001 7:02 PM
To: ace-...@cs.wustl.edu
Subject: Re: [ace-users] RE: Problem compiling TAO services

0 new messages