comp.lang.ada
 help / color / mirror / Atom feed
From: Gustaf Thorslund <gustaf@thorslund.org>
To: comp.lang.ada@ada.eu.org
Subject: Re: PB: using gnatlink to link C and ADA code
Date: 2000/08/17
Date: 2000-08-17T11:57:06+00:00	[thread overview]
Message-ID: <399BD25D.B61AD677@thorslund.org> (raw)
In-Reply-To: 399BB17F.E517F88A@ida.liu.se

Hello Erik!

I don't know where the problem is but if you do the following it should
work (it did for me anyway):

gedrix.ida.liu.se:BANKER> which gnatlink
/sw/gnat-3.12/bin/gnatlink
gedrix.ida.liu.se:BANKER> \rm *.ali
gedrix.ida.liu.se:BANKER> gnatmake -c td_ada
gcc -c td_ada.adb
gcc -c thread_ada.adb
gcc -c types.adb
types.adb:16:25: warning: type of "Strcpy.Src" does not correspond to C
pointer
gedrix.ida.liu.se:BANKER> make
gcc -c -g -I/home/x98gusth/BANKER bankers_alg.adb
gnatbind -n /home/x98gusth/BANKER/td_ada.ali
/home/x98gusth/BANKER/types.ali \
            /home/x98gusth/BANKER/thread_ada.ali bankers_alg.ali
gnatlink  -lthread -lsocket -lnsl -o .rw /home/x98gusth/BANKER/thread.o
/home/x98gusth/BANKER/message.o /home/x98gusth/BANKER/lowlevel_io.o
/home/x98gusth/BANKER/output_control.o /home/x98gusth/BANKER/rwADT.o
/home/x98gusth/BANKER/td.o /home/x98gusth/BANKER/event_read.o
/home/x98gusth/BANKER/atc.o /home/x98gusth/BANKER/train.o
/home/x98gusth/BANKER/socketCom.o /home/x98gusth/BANKER/catch_disaster.o
/home/x98gusth/BANKER/bankerIO.o /home/x98gusth/BANKER/main.o -D_REENTRANT
bankers_alg.ali

Program 'banker' compiled.


To run with a simulator, start with 'banker <number>'
where <number> in range 2000..32000.
gedrix.ida.liu.se:BANKER>

You can find the compiled version in /home/x98gusth/BANKER

Regards:
Gustaf Thorslund

Erik Herzog wrote:

> We have used GNAT for a number of years in a lab setup on solaris.
> Except for some minor problems everything has worked fine unitl we
> upgraded to gnat 3.12.
>
> The problem occur when gnatlink is used to link C and ADA code to the
> final
> application. Gnatlink reports it 'failed to open the binder output'
>
> The link sequence is shown below.
>
> Any ideas where the problem could be?
>
> /Erik
>
> mir41 <38> make
> gnatbind -n /home/m_reap/BANKER/td_ada.ali /home/m_reap/BANKER/types.ali
> \
>             /home/m_reap/BANKER/thread_ada.ali bankers_alg.ali
> gnatlink  -v -v -lthread -lsocket -lnsl -o .rw
> /home/m_reap/BANKER/thread.o /home/m_reap/BANKER/message.o
> /home/m_reap/BANKER/lowlevel_io.o  /home/m_reap/BANKER/output_control.o
> /home/m_reap/BANKER/rwADT.o /home/m_reap/BANKER/td.o
> /home/m_reap/BANKER/event_read.o /home/m_reap/BANKER/atc.o
> /home/m_reap/BANKER/train.o /home/m_reap/BANKER/socketCom.o
> /home/m_reap/BANKER/catch_disaster.o /home/m_reap/BANKER/bankerIO.o
> /home/m_reap/BANKER/main.o -D_REENTRANT bankers_alg.ali
>
> GNATLINK 3.12p  (19990629) Copyright 1996-1999 Free Software Foundation,
> Inc.
> gnatlink: Failed to open binder output
> *** Error code 4
> make: Fatal error: Command failed for target `ada'
> _______________________________________________
> comp.lang.ada mailing list
> comp.lang.ada@ada.eu.org
> http://ada.eu.org/cgi-bin/mailman/listinfo/comp.lang.ada






  reply	other threads:[~2000-08-17  0:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-08-17  0:00 PB: using gnatlink to link C and ADA code Erik Herzog
2000-08-17  0:00 ` Gustaf Thorslund [this message]
2000-08-17  0:00 ` Florian Weimer
replies disabled

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