* Re: PB: using gnatlink to link C and ADA code
2000-08-17 0:00 PB: using gnatlink to link C and ADA code Erik Herzog
2000-08-17 0:00 ` Gustaf Thorslund
@ 2000-08-17 0:00 ` Florian Weimer
1 sibling, 0 replies; 3+ messages in thread
From: Florian Weimer @ 2000-08-17 0:00 UTC (permalink / raw)
Erik Herzog <erica@ida.liu.se> writes:
> Any ideas where the problem could be?
> gnatlink: Failed to open binder output
Perhaps your makefile has to be changed because the "gnatbind" creates
an Ada main program by default in GNAT version 3.12?
^ permalink raw reply [flat|nested] 3+ messages in thread
* PB: using gnatlink to link C and ADA code
@ 2000-08-17 0:00 Erik Herzog
2000-08-17 0:00 ` Gustaf Thorslund
2000-08-17 0:00 ` Florian Weimer
0 siblings, 2 replies; 3+ messages in thread
From: Erik Herzog @ 2000-08-17 0:00 UTC (permalink / raw)
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'
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: PB: using gnatlink to link C and ADA code
2000-08-17 0:00 PB: using gnatlink to link C and ADA code Erik Herzog
@ 2000-08-17 0:00 ` Gustaf Thorslund
2000-08-17 0:00 ` Florian Weimer
1 sibling, 0 replies; 3+ messages in thread
From: Gustaf Thorslund @ 2000-08-17 0:00 UTC (permalink / raw)
To: comp.lang.ada
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2000-08-17 0:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-08-17 0:00 PB: using gnatlink to link C and ADA code Erik Herzog
2000-08-17 0:00 ` Gustaf Thorslund
2000-08-17 0:00 ` Florian Weimer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox