From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,540ef566e4c55af7 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Martin Klaiber Newsgroups: comp.lang.ada Subject: Re: Debian Sarge: problem with libgnat.so Date: Fri, 23 Dec 2005 01:15:38 +0100 Organization: Freie Universitaet Berlin Sender: Martin Klaiber Message-ID: References: <87lkycpuwu.fsf@ludovic-brenta.org> X-Trace: news.uni-berlin.de dXMRsnNFeCM0qHZDaJ70pANabuBFpGZ1jq+BAXmpZjKY8Mzft1iKf16dVM X-Orig-Path: not-for-mail User-Agent: tin/1.5.12-20020427 ("Sugar") (UNIX) (Linux/2.4.32 (i686)) Xref: g2news1.google.com comp.lang.ada:6977 Date: 2005-12-23T01:15:38+01:00 List-Id: Ludovic Brenta 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