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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,2765ecafd1ac631a X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-11-11 04:25:47 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!skynet.be!skynet.be!louie!tlk!not-for-mail Sender: lbrenta@lbrenta Newsgroups: comp.lang.ada Subject: Re: gnatlink error on Debian Woody References: From: Ludovic Brenta User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Date: 11 Nov 2003 13:25:13 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Organization: -= Belgacom Usenet Service =- NNTP-Posting-Host: 217.136.15.92 X-Trace: 1068553514 reader3.news.skynet.be 4268 217.136.15.92:46506 X-Complaints-To: usenet-abuse@skynet.be Xref: archiver1.google.com comp.lang.ada:2337 Date: 2003-11-11T13:25:13+01:00 List-Id: Frank Piron writes: > Hi, > if i try to link my ocitest.adb with > oracle's oci shared library on a debian > system, i get: > > > gnatmake -L$ORACLE_HOME/lib ocitest.adb -largs -lclntsh > ld: cannot find -laddr2line > gnatlink: cannot call /usr/bin/gnatgcc > gnatmake: *** link failed. > > On windows (with -loci of course) all works fine. > Is it a debian issue? > Frank Piron Is clntsh a shared library? If so, could you run ldd on it and report the results? Perhaps it is linked against libaddr2line, which is not part of Debian because it came from a very old binutils. If libclntsh.so is indeed linked against libaddr2line, you need to either relink libclntsh.so without libaddr2line, or use the binary gnat distribution from ACT; it does include libaddr2line. Then, of course, you resulting executable will require libaddr2line and you will need to consider any distribution issues that may arise. -- Ludovic Brenta.