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.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, FREEMAIL_REPLY autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,ef489aaf7eb31d80 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!tiscali!newsfeed1.ip.tiscali.net!proxad.net!cleanfeed1-b.proxad.net!nnrp2-1.free.fr!not-for-mail Date: Tue, 26 Dec 2006 11:55:50 +0100 From: Damien Carbonne User-Agent: Thunderbird 1.5.0.8 (X11/20061025) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Texttools (Linux) - problem during compilation References: <1167092938.402434.195770@n51g2000cwc.googlegroups.com> In-Reply-To: <1167092938.402434.195770@n51g2000cwc.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 8bit Message-ID: <4590ffb6$0$23053$426a34cc@news.free.fr> Organization: Guest of ProXad - France NNTP-Posting-Date: 26 Dec 2006 11:55:50 MET NNTP-Posting-Host: 82.235.135.166 X-Trace: 1167130550 news-4.free.fr 23053 82.235.135.166:51642 X-Complaints-To: abuse@proxad.net Xref: g2news2.google.com comp.lang.ada:8016 Date: 2006-12-26T11:55:50+01:00 List-Id: xaerxess@gmail.com a �crit : > Hi, > > I want to use texttools ( http://www.pegasoft.ca/tt.html ) in my > program and first I checked how to compile an example file. I installed > libtexttools-dev via apt-get and then tried to compile the file: > > $ gnatmake -aI/usr/share/ada/adainclude/texttools > -aO/usr/lib/ada/adalib/texttools basic2.adb -largs -ltexttools > gnatbind -aO./ -aO/usr/lib/ada/adalib/texttools -I- -x basic2.ali > gnatlink -ltexttools basic2.ali > /usr/bin/../lib/libtexttools.so: undefined reference to > `system__interrupts__install_handlers' > /usr/bin/../lib/libtexttools.so: undefined reference to > `system__interrupts__register_interrupt_handler' > /usr/bin/../lib/libtexttools.so: undefined reference to > `system__interrupts___init_proc__7' > /usr/bin/../lib/libtexttools.so: undefined reference to > `system__tasking__protected_objects__entries__initialize_protection_entries' > /usr/bin/../lib/libtexttools.so: undefined reference to > `system__tasking__protected_objects__entries__unlock_entries' > /usr/bin/../lib/libtexttools.so: undefined reference to > `system__tasking__protected_objects__entries__lock_entries' > gnatlink: cannot call /usr/bin/gnatgcc > gnatmake: *** link failed. > > What's wrong? Of course, there is a link gnatgcc in /usr/bin/ > > BTW: Has anybody any experience with using texttools? > I had a similar message a few days ago, with gnat installed in a non-standard location on a Mandriva Linux box. I found it confusing. When is says "cannot call ...", I understand, "issue when calling ...". In fact, you must take care of lines that are before this message. The problem is with missing symbols for link. What is strange is that missing symbols seems to be GNAT related. - Are you using a precompiled texttools lib ? - If yes: - Are you sure the gnat version is the same ? (I think such a problem should be identified by GNAT with a clear message). - You could try to compile it yourself. - Isn't this related to a different runtime version (different tasking model ?). I have never tried this, but on some systems, including Linux, GNAT comes with several runtime lib, each using different thread implementations. You could also try to use more verbose output options to find out which files are used for linking. Regards, Damien