comp.lang.ada
 help / color / mirror / Atom feed
From: Brian May <bam@snoopy.apana.org.au>
Subject: CORBA Ada bindings
Date: Fri, 01 Oct 2004 15:09:22 +1000
Date: 2004-10-01T15:09:22+10:00	[thread overview]
Message-ID: <sa4zn37c9dp.fsf@snoopy.apana.org.au> (raw)

Hello,

I am looking for open source Ada bindings that work with gcc-3.4 and
doesn't require ORBit 1.0 (now obsolete).

Or is this a contradiction?

So far I have found:

adabroker-1.0pre4

* very old

* configure script gets confused and says gcc-3.4 is too old. I hacked
  out this check.

* seems to get confused by gcc C++ preprocessor output (the IDL
compiler preprocesses its input with the C++ preprocessor - is this
really standard IDL?).

e.g.

<built-in>:0:19 Error: An idl file name should have a ".idl" extension.

where it got confused and thought <built-in> was the filename. I
hacked out this error.

* included adasockets Makefile creates sockets.Constants.ads but
sockets-constants.ads is expected.

* uses internal GNAT unit System.Soft_Links (according to compiler message).
* dies with compiler error:

../support/adacompiler -c -g -O2 -I. -I. -I../adasockets/src -I../adasockets/src -L../adasockets/src  -fPIC -DPIC broca-protected_objects.adb -o .libs/broca-protected_objects.lo
broca-protected_objects.adb:37:12: warning: "System.Soft_Links" is an internal GNAT unit
broca-protected_objects.adb:37:12: warning: use of this unit is non-portable and version-dependent
broca-protected_objects.adb:124:35: ambiguous entry name
mv: cannot stat `tmp27758/broca-protected_objects.o': No such file or directory
mv: cannot stat `tmp27758/*.ali': No such file or directory

I replaced this line:
               Free := Free + Wait'Count;
with:
               Free := Free + Barrier_PO.Wait'Count;

I am not sure why "Wait" is ambiguous.

* seems like the best approach, despite the problems above.

* example "mostly" works.
--- cut ---
.../adabroker-1.0pre4/examples/echo >./client IOR:010000000d00000049444c3a4563686f3a312e300000000001000000000000003c000000010100000a0000003132372e302e302e3100fadb24000000010000001feb86a20100000001000000000000000c000000010000000100000000000000
I said : Hello Ada !
The object answered : Hello Ada !

raised PROGRAM_ERROR : Protected Object is finalized
--- cut ---

or

--- cut ---
.../adabroker-1.0pre4/examples/echo >./client
usage : client <IOR_string_from_server>|-i

raised PROGRAM_ERROR : Protected Object is finalized
--- cut ---

hmmmmm... What does this mean?  How do I find out what object it is
referring to? I guess I will keep fiddling. gdb shows the error occurs
after Ada_Main_Program returns and when Do_Finalize is called.

* What is the status of this package? Is this package still
  maintained? If so, where should I send bug fixes? If not, does it
  need a new maintainer?

GNACK-1.0

* old

* doesn't seem to support ORBit2 libraries.

* still trying to compile; last attempt I got elaboration circularity
  errors.

* Is a layer on top of C CORBA bindings on top of the ORBit1 library,
  which would appear a more complicated solution.
-- 
Brian May <bam@snoopy.apana.org.au>



             reply	other threads:[~2004-10-01  5:09 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-01  5:09 Brian May [this message]
2004-10-01  5:46 ` CORBA Ada bindings Paul Duquennoy
2004-10-01  8:06   ` Brian May
  -- strict thread matches above, loose matches on Subject: below --
2006-12-31 13:16 okellogg
2006-12-31 13:37 ` Martin Krischik
2007-01-03 10:32   ` Jerome Hugues
2007-01-06 23:52     ` Dr. Adrian Wrigley
2007-01-07 12:36       ` Martin Krischik
2007-01-08 11:49       ` Jerome Hugues
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox