[omniORB] Newbie - Compiler Error on MacOSX for Echo Tutorial
Bill Noon
noon@snow.nrcc.cornell.edu
Tue Nov 26 14:17:01 2002
I have built and have been running v4.0 for some time on both OSX
10.1.5 and 10.2.x with just a couple of issues that I haven't tracked
down.
I configured and built in a separate directory: ../omni/configure
--disable-static --enable-thread-tracing --with-openssl=/usr
--with-omniORB-config=/usr/local/etc/omniORB.cfg
It is installed in /usr/local. I had to manually move the python code
from /usr/local/lib/python2.3/site-packages since I am using the
framework build (lives in /Library/Framework....).
I needed to --enable-thread-tracing since there was some problem (that
I didn't have time to track down at the time) with
OMNIORB_ENABLE_LOCK_TRACES in omniORBpy.
You also have to set DYLD_BIND_AT_LAUNCH (even with gcc 3.1) for the
python backend to work (all the static inits aren't called otherwise).
Given the above, the echo examples build fine out of box. The eg1 and
eg2 examples work fine. The eg3 examples failed since I am not
running a NameService.
--Bill Noon
Northeast Regional Climate Center
Cornell University
On Monday, November 25, 2002, at 07:46 PM, bido@mac.com wrote:
> Thanks Duncan, I was just going through the files in the Echo dir and
> came across a some references to x86 and thought "what the heck might
> as well give those a look" since the usual make didn't work even with
> the DYLD_LIBRARY_PATH var set.
>
> I had DYLD_LIBRARY_PATH = /usr/local/omni_inst/lib and was able to run
> omniidl and omniNames so at that point I assumed that this var was
> set correctly.
>
> Nevertheless, when running make from the Echos dir, I got messages
> about missing header files etc. I copied over the necessary files from
> the install dir into the appropriate locations relative to Echos dir
> and got a little bit further. This time I'm getting:
>
> [122:src/examples/echo] bido% make
> /usr/bin/c++ -c -O2 -Wall -Wno-unused -D__OMNIORB4__ -I../../../stub
> -I. -I. -I../../../include -D__powerpc__ -D__darwin__
> -D__OSVERSION__=1 -o eg1.o eg1.cc
> In file included from ../../../include/omniORB4/omniInternal.h:200,
> from ../../../include/omniORB4/CORBA.h:310,
> from ../../../stub/echo.hh:10,
> from eg1.cc:11:
> ../../../include/omniORB4/CORBA_basetypes.h:144: warning: use of `long
> double'
> type; its size may change in a future release
> ../../../include/omniORB4/CORBA_basetypes.h:144: warning: (Long double
> usage is
> reported only once for each file.
> ../../../include/omniORB4/CORBA_basetypes.h:144: warning: To disable
> this
> warning, use -Wno-long-double.)
> In file included from ../../../include/omniORB4/CORBA.h:444,
> from ../../../stub/echo.hh:10,
> from eg1.cc:11:
> ../../../include/omniORB4/dynAny.h:148: `LongDoubleSeq' undeclared in
> namespace
> `CORBA'
> ../../../include/omniORB4/dynAny.h:148: `value' was not declared in
> this scope
> ../../../include/omniORB4/dynAny.h:148: virtual outside class
> declaration
> ../../../include/omniORB4/dynAny.h:148: variable or field `
> insert_longdouble_seq' declared void
> ../../../include/omniORB4/dynAny.h:168: warning: ISO C++ forbids
> declaration of
> `LongDoubleSeq' with no type
> ../../../include/omniORB4/dynAny.h:168: invalid use of `::'
> ../../../include/omniORB4/dynAny.h:168: `LongDoubleSeq' declared as a
> `virtual'
> field
> ../../../include/omniORB4/dynAny.h:168: parse error before `*' token
> make: *** [eg1.o] Error 1
>
>
> For this one I'm out of ideas. Can anyone assist, I think I'm pretty
> close to getting it to work.
>
> Thanks,
> -FB
>
>
> On Monday, November 25, 2002, at 02:54 PM, Duncan Grisby wrote:
>
>> On Monday 25 November, bido@mac.com wrote:
>>
>>> To provide further clarification for PROBLEM 2:
>>>
>>> My system does not have an nmake command. So I can execute
>>>
>>> nmake /f dir.mak [<build option>]
>>
>> You are very confused. You are reading the instructions for Windows,
>> so it's not surprising it doesn't work on MacOS.
>>
>> You just need to run make in the build/src/examples directory.
>>
>> After that, set DYLD_LIBRARY_PATH=/usr/local/lib and run the examples.
>>
>> Cheers,
>>
>> Duncan.
>>
>> --
>> -- Duncan Grisby --
>> -- duncan@grisby.org --
>> -- http://www.grisby.org --
>> _______________________________________________
>> omniORB-list mailing list
>> omniORB-list@omniorb-support.com
>> http://www.omniorb-support.com/mailman/listinfo/omniorb-list
>
> _______________________________________________
> omniORB-list mailing list
> omniORB-list@omniorb-support.com
> http://www.omniorb-support.com/mailman/listinfo/omniorb-list