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=0.7 required=5.0 tests=BAYES_00,INVALID_DATE, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b4517452ef6204ff X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1994-11-12 01:18:51 PST Path: nntp.gmd.de!xlink.net!sol.ctr.columbia.edu!usc!howland.reston.ans.net!pipex!uunet!zib-berlin.de!informatik.tu-muenchen.de!lrz-muenchen.de!news.lrz-muenchen.de!a2c0102 From: a2c0102@sun2.lrz-muenchen.de (Rolf Ebert) Newsgroups: comp.lang.ada Subject: Re: TASK and Gnat 1.83 under Linux Date: 11 Nov 1994 12:28:00 GMT Organization: Leibniz-Rechenzentrum, Muenchen (Germany) Distribution: world Message-ID: References: <39qa42$96r@upsn2.u-psud.fr> Reply-To: a2c0102@sunmail.lrz-muenchen.de (Rolf EBERT) NNTP-Posting-Host: sun2.lrz-muenchen.de In-reply-to: smcneil@netcom.com's message of Thu, 10 Nov 1994 06:15:27 GMT Date: 1994-11-11T12:28:00+00:00 List-Id: In article smcneil@netcom.com (Sean McNeil) writes: > rogliano patrice wrote: > > > > Hie guys, > > > >First I would like to excuse myself for my bad english (I am a french Student)... > > > >I am learning Ada at University and I am trying to use Gnat on my Linux Box. > >All the programs I've compiled without any task succeeded BUT I couldn't > >use any Task... > >The message I received told me that some symbols couldn't be resolved during > >the binding phase (gnatbl -o task task.ali). > >So I tried to use the library libgthreads.a which is in /usr/lib/gcc-lib/2.6.0/gnatlib/ > >but this file is just about 200 bytes!!! It couldn't bind either.... > > I believe that libgthreads.a is just an interface to pthreads (or just > a stub library??). What you need is a libpthreads.a - a library for > pthread support. > The pthreads library is based on early work for the Gnu Ada runtime. Gthreads and pthreads have some quite common parts. Some exported names are different and functionality is not exactly the same. Unfortunately some parts of gthreads are written in Sparc assembler, which makes it hard to port it to other systems. As far as I know this part has been rewritten in C for the pthreads library. There seems to be quite some interest in using Ada task on Linux. I don't have the time and the knowledge to do the port myself, but I can give some initial help, if someone voloteers. Right now the file /usr/lib/gcc-lib/2.6.0/adalib/libgthreads.a is just a dummy. Its existance is needed for gnatbl, but actually this lib does not contain any useful symbol. Rolf -- ----------------------------------------------------------------------------- Rolf Ebert Conseil en Energetique et Simulation (Team Ada) Beratung fuer Energiesysteme und Simulation Tel: +49 89 30.77.88.00 Fax: +49 89 30.77.91.00 Rolf.Ebert@waporo.muc.de -----------------------------------------------------------------------------