From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,INVALID_MSGID, MAILING_LIST_MULTI autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d57675ac99e0d2c0 X-Google-Attributes: gid103376,public From: Gustaf Thorslund Subject: Re: PB: using gnatlink to link C and ADA code Date: 2000/08/17 Message-ID: <399BD25D.B61AD677@thorslund.org>#1/1 X-Deja-AN: 659301508 Content-Transfer-Encoding: 7bit References: <399BB17F.E517F88A@ida.liu.se> To: comp.lang.ada@ada.eu.org X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@enst.fr X-Trace: menuisier.enst.fr 966513426 17929 137.194.161.2 (17 Aug 2000 11:57:06 GMT) Organization: ENST, France List-Id: comp.lang.ada mail<->news gateway X-Mailman-Version: 2.0beta5 X-BeenThere: comp.lang.ada@ada.eu.org Mime-Version: 1.0 Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Date: 17 Aug 2000 11:57:06 GMT Newsgroups: comp.lang.ada Date: 2000-08-17T11:57:06+00:00 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 ' where 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