comp.lang.ada
 help / color / mirror / Atom feed
* Texttools (Linux) - problem during compilation
@ 2006-12-26  0:28 xaerxess
  2006-12-26 10:55 ` Damien Carbonne
  2007-01-03 20:26 ` Ludovic Brenta
  0 siblings, 2 replies; 3+ messages in thread
From: xaerxess @ 2006-12-26  0:28 UTC (permalink / raw)


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?




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Texttools (Linux) - problem during compilation
  2006-12-26  0:28 Texttools (Linux) - problem during compilation xaerxess
@ 2006-12-26 10:55 ` Damien Carbonne
  2007-01-03 20:26 ` Ludovic Brenta
  1 sibling, 0 replies; 3+ messages in thread
From: Damien Carbonne @ 2006-12-26 10:55 UTC (permalink / raw)


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



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Texttools (Linux) - problem during compilation
  2006-12-26  0:28 Texttools (Linux) - problem during compilation xaerxess
  2006-12-26 10:55 ` Damien Carbonne
@ 2007-01-03 20:26 ` Ludovic Brenta
  1 sibling, 0 replies; 3+ messages in thread
From: Ludovic Brenta @ 2007-01-03 20:26 UTC (permalink / raw)


Dear anonymous contributor, please see Debian Bug#405466 which I just
filed for you and where I provide a workaround.

http://bugs.debian.org/405466

-- 
Ludovic Brenta.



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-01-03 20:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-26  0:28 Texttools (Linux) - problem during compilation xaerxess
2006-12-26 10:55 ` Damien Carbonne
2007-01-03 20:26 ` Ludovic Brenta

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