comp.lang.ada
 help / color / mirror / Atom feed
From: Ludovic Brenta <ludovic@ludovic-brenta.org>
Subject: Re: Debian Sarge: problem with libgnat.so
Date: Fri, 23 Dec 2005 00:35:29 +0100
Date: 2005-12-23T00:35:29+01:00	[thread overview]
Message-ID: <87lkycpuwu.fsf@ludovic-brenta.org> (raw)
In-Reply-To: jehr73-k19.ln1@martinkl.dialup.fu-berlin.de

Martin Klaiber <martinkl@zedat.fu-berlin.de> writes:
>   gcc -Wall -o test_c test_c.c -I/usr/local/include/opensteuer -lopensteuer -lgnat
>   /usr/bin/ld: cannot find -lgnat
>   collect2: ld returned 1 exit status
>
> The main difference between Woody and Sarge is IMHO that the link
> libgnat.so in /usr/lib is missing now.
>
> There is a link usr/lib/gcc-lib/i486-linux/2.8.1/adalib/libgnat.so
> pointing to /usr/lib/libgnat-3.15p.so.1.12 but it seems not to be
> found.  I've added this path to /etc/ld.so.conf and to the
> ADA_INCLUDE_PATH, but this makes no change.
>
> So, I've just created this link in /usr/lib and now the compilation
> works as fine as before.
>
> What does this mean now?  Is Debian Sarge misconfigurated, or is my
> system misconfigurated, or is my code in the Makefile wrong?

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.

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

-- 
Ludovic Brenta (maintainer of gnat in Debian).



  reply	other threads:[~2005-12-22 23:35 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 [this message]
2005-12-23  0:15   ` Martin Klaiber
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