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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,fea50f781bb229dc X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!news3.google.com!feeder3.cambriumusenet.nl!feeder1.cambriumusenet.nl!feed.tweaknews.nl!87.79.20.105.MISMATCH!news.netcologne.de!ramfeed1.netcologne.de!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: About static libraries and Debian policy Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <85f51aeb-cac9-4591-921a-a7f50c8ef142@a21g2000yqn.googlegroups.com> <1pup1z7a4f1pq$.of30sejrqe4m.dlg@40tude.net> <87hbmae33k.fsf@ludovic-brenta.org> Date: Fri, 14 May 2010 21:54:17 +0200 Message-ID: <1qlmof1bv2m4t.6suzc7ieyv1j$.dlg@40tude.net> NNTP-Posting-Date: 14 May 2010 21:54:13 CEST NNTP-Posting-Host: 84525279.newsspool3.arcor-online.net X-Trace: DXC=PD\V3Eh0akAWDmlTRbh@=IMcF=Q^Z^V3H4Fo<]lROoRA8kF On Fri, 14 May 2010 20:43:27 +0200, Ludovic Brenta wrote: > � 5.3.3 Ada object files [...] > Rule: The -dev package SHALL provide a static library in > /usr/lib/libLIBRARY.a. OK. >>>> BTW, Why there should be no traceback when relocatable libraries are >>>> used? > > Traceback is always available, either in symbolic or numeric form. To > get the symbolic form, you need the -dbg package installed. I meant g-trasym.adb. In Fedora's gcc 4.4 it is in the static library, but absent in the shared. I don't understand why. >> Maybe, but other shared libraries can well be compiled with -g as well >> as the application. But linking them with shared RTL fails if any of >> them uses Traceback.Symbolic. > > That's because GNAT GPL includes a non-standard 'libaddr2line.a' > produced from binutils (and therefore pure GPL) and calls that to > produce the symbolic tracebacks. GCC (from the FSF) lacks this library. > I patched GCC to use an alternate mechanism instead, i.e. fork()/exec() > and call /usr/bin/addr2line. This restores the functionality in the FSF > version of GNAT. Does it mean that under Debian g-trasym.adb is in both libraries? -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de