Re: Debian Sarge: problem with libgnat.so



Martin Klaiber <martinkl@xxxxxxxxxxxxxxxxxx> 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).
.



Relevant Pages

  • Re: Inten(R) Fortran Compiler 8.1 for Linux install on a Debian stable box
    ... > I'm trying to install the 'Free Non-Commercial Download' of IntenFortran ... > Compiler 8.1 for Linux on my Debian stable (Sarge) box at home, ...
    (comp.lang.fortran)
  • Debian Sarge: problem with libgnat.so
    ... Since I've updated from Debian Woody to Sarge, this C-program doesn't ... Ada-programs compile fine and can use the lib ... The relevant part of the Makefile is: ...
    (comp.lang.ada)
  • Jigdo Sarge templates outdated?
    ... for the jigdo files and templates. ... When I take a random check on what is missing, ... Now the templates et al. are dated almost a month back. ... that Sarge cdimage work has been suspended? ...
    (Debian-User)
  • .htaccess in Sarge
    ... I'm not sure what I'm missing. ... box to a Sarge box, and all is fine, except one page that is protected ... Here is the content of the .htaccess: ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Help on g++ 3.3
    ... I dist-upgraded to Sarge a few weeks ago. ... using 2.95 compiler. ... constructing it with a default constructor for type T. ... This version of push_back is gone from the new STL in 3.3. ...
    (Debian-User)