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,9a720a14a5d106b X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!o13g2000cwo.googlegroups.com!not-for-mail From: "Ludovic Brenta" Newsgroups: comp.lang.ada Subject: Re: Shared Ada Library to be Used in a Non-Ada Context Date: 10 Aug 2005 00:53:07 -0700 Organization: http://groups.google.com Message-ID: <1123660387.140929.305530@o13g2000cwo.googlegroups.com> References: NNTP-Posting-Host: 212.190.145.10 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1123660396 29806 127.0.0.1 (10 Aug 2005 07:53:16 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 10 Aug 2005 07:53:16 +0000 (UTC) User-Agent: G2/0.2 Complaints-To: groups-abuse@google.com Injection-Info: o13g2000cwo.googlegroups.com; posting-host=212.190.145.10; posting-account=ZjNXewwAAADyBPkwI57_UcX8yKfXWOss Xref: g2news1.google.com comp.lang.ada:4054 Date: 2005-08-10T00:53:07-07:00 List-Id: Jeffrey Carter wrote: > Gnatmake invokes "gcc-3.4". It seems to know about GNAT. > Gnatbind invokes "gcc". It doesn't seem to know about GNAT. This appears to be a bug in the gnat-3.4 package. David Sauvage wrote: > i'm using Debian GNU/Linux Sarge. > linux kernel 2.6.8-2-386 > libc6 2.3.2.ds1-22 > gcc 3.3.5-3 > gcc-3.3 3.3.5-13 > gcc-3.4 3.4.3-13 > gnat-3.4 3.4.3-13 > libgnat-3.4 3.4.3-13 > libgnat-3.15p- 3.15p-1 You should use the system C compiler (gcc-3.3) and the system Ada compiler (gnat). I suggest you remove gnat-3.4 and reinstall gnat. This will make your toolchain consistent with all other Ada packages in Sarge. Your Makefile should use CC=gcc, and gnatmake directly. In Sarge, gcc is a symlink to gcc-3.3; gnatmake and gnatkink correctly invoke gnatgcc, the Ada-aware gcc 2.8.1 compiler driver. Your Makefile should link libservices.so to libgnat explicitly. See the Debian Ada Policy[1] for detailed instructions on how to do this. [1] http://www.ada-france.org/debian/debian-ada-policy.html -- Ludovic Brenta.