comp.lang.ada
 help / color / mirror / Atom feed
From: Martin Klaiber <martinkl@zedat.fu-berlin.de>
Subject: Re: Debian Sarge: problem with libgnat.so
Date: Fri, 23 Dec 2005 01:15:38 +0100
Date: 2005-12-23T01:15:38+01:00	[thread overview]
Message-ID: <a6sr73-ktb.ln1@martinkl.dialup.fu-berlin.de> (raw)
In-Reply-To: 87lkycpuwu.fsf@ludovic-brenta.org

Ludovic Brenta <ludovic@ludovic-brenta.org> wrote:

> Your Makefile is correct, except that it calls the C compiler to link
> your program.  If you call gnatgcc instead, you should be fine.  By
> default, gnatgcc looks in /usr/lib/gcc-lib/i486-linux/2.8.1/adalib,
> but gcc (the C compiler) only looks in /usr/lib.

Hm, gnatgcc gives the same error:

  gnatgcc -Wall -o test_c test_c.c -I/usr/local/include/opensteuer -lopensteuer -lgnat
  ld: cannot find -lgnat

  martinkl [~/src/eigene/ada/opensteuer/libopensteuer] ls -l `locate libgnat.so`
  lrwxrwxrwx  1 root root 33 2005-12-22 18:55 /usr/lib/gcc-lib/i486-linux/2.8.1/adalib/libgnat.so -> ../../../../libgnat-3.15p.so.1.12

  martinkl [~/src/eigene/ada/opensteuer/libopensteuer] env | grep ADA
  ADA_INCLUDE_PATH=/usr/lib/ada/adalib:/usr/lib/ada/adainclude:/usr/lib/gcc-lib/i486-linux/2.8.1/adalib:/home/martinkl/lib/ada/av/1

  martinkl [~/src/eigene/ada/opensteuer/libopensteuer] cat /etc/ld.so.conf | grep /usr/lib
  /usr/lib/libc5-compat
  /usr/lib
  /usr/lib/gcc-lib/i486-linux/2.8.1/adalib

Is there anything else I need to configure?

> Adding another symlink in /usr/lib is also an option.

I want to keep it portable with other Linux-distros (if possible) as
the code is public.  Would it be better to use gnatgcc oder gcc then?

thx, Martin



  reply	other threads:[~2005-12-23  0:15 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-22 21:12 Debian Sarge: problem with libgnat.so Martin Klaiber
2005-12-22 23:35 ` Ludovic Brenta
2005-12-23  0:15   ` Martin Klaiber [this message]
2005-12-23 12:43     ` Ludovic Brenta
2005-12-23 16:10       ` Georg Bauhaus
2005-12-23 23:35       ` Martin Klaiber
2005-12-24  0:23         ` Ludovic Brenta
2005-12-27 12:23           ` Martin Klaiber
2005-12-27 15:43             ` 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