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!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.scarlet.biz!news.scarlet.biz.POSTED!not-for-mail NNTP-Posting-Date: Thu, 22 Dec 2005 17:35:57 -0600 From: Ludovic Brenta Newsgroups: comp.lang.ada Subject: Re: Debian Sarge: problem with libgnat.so References: Date: Fri, 23 Dec 2005 00:35:29 +0100 Message-ID: <87lkycpuwu.fsf@ludovic-brenta.org> User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux) Cancel-Lock: sha1:Y572Yi76hWciVi6Q/gP0KNyGWNg= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii NNTP-Posting-Host: 83.134.237.197 X-Trace: sv3-vfqXyxHKnAjDlvaHOj123W5GBb2nPAP7zNhymFXVENwVvv4xbSexwACFsTk/DJbBnn26EAXFfpjpWWn!6cQnrFcurtPLTRWo8pOXmCkyVkopMu0faSRtcUPS2bE78wQVGozZVLIdmsq3YjfTQF0ajyosBiA= X-Complaints-To: abuse@scarlet.be X-DMCA-Complaints-To: abuse@scarlet.biz X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Xref: g2news1.google.com comp.lang.ada:6973 Date: 2005-12-23T00:35:29+01:00 List-Id: Martin Klaiber 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).