comp.lang.ada
 help / color / mirror / Atom feed
From: Damien Carbonne <damien.carbonne@free.fr>
Subject: Re: Texttools (Linux) - problem during compilation
Date: Tue, 26 Dec 2006 11:55:50 +0100
Date: 2006-12-26T11:55:50+01:00	[thread overview]
Message-ID: <4590ffb6$0$23053$426a34cc@news.free.fr> (raw)
In-Reply-To: <1167092938.402434.195770@n51g2000cwc.googlegroups.com>

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



  reply	other threads:[~2006-12-26 10:55 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-26  0:28 Texttools (Linux) - problem during compilation xaerxess
2006-12-26 10:55 ` Damien Carbonne [this message]
2007-01-03 20:26 ` Ludovic Brenta
replies disabled

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