Package: libtexttools-dev
Version: 2.0.3-4
Severity: normal

>From [EMAIL PROTECTED]:

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/



>From the maintainer: confirmed; the bug is also present when using a
minimalistic project file like the one below.  A workaround is to add
-lgnarl -lpthread to the command line, e.g.


gnatmake -aI/usr/share/ada/adainclude/texttools \
         -aO/usr/lib/ada/adalib/texttools \
         basic2.adb \
         -largs -ltexttools -lgnarl -lpthread

I will investigate the reason why gnatlink does not link libgnarl or
libpthread in, as I think it should.

The project file I tried:

with "texttools.gpr";
project Basic2 is
   for Source_Dirs use (".");
   package Linker renames TextTools.Linker;
end Basic2;

The above workaround also works with project files.

-- System Information:
Debian Release: 4.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-3-amd64
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)

Versions of packages libtexttools-dev depends on:
ii  gnat-4.1                      4.1.1-19   The GNU Ada compiler
ii  libtexttools2.0               2.0.3-4    Ada and C++ library for writing co

libtexttools-dev recommends no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to