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: a07f3367d7,fea50f781bb229dc X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!feeder.news-service.com!85.214.198.2.MISMATCH!eternal-september.org!.POSTED!not-for-mail From: Ludovic Brenta Newsgroups: comp.lang.ada Subject: Re: About static libraries and Debian policy Date: Sat, 15 May 2010 12:07:24 +0200 Organization: A noiseless patient Spider Message-ID: <87zl01cwbn.fsf@ludovic-brenta.org> References: <85f51aeb-cac9-4591-921a-a7f50c8ef142@a21g2000yqn.googlegroups.com> <1pup1z7a4f1pq$.of30sejrqe4m.dlg@40tude.net> <87hbmae33k.fsf@ludovic-brenta.org> <1qlmof1bv2m4t.6suzc7ieyv1j$.dlg@40tude.net> <87d3wydxrt.fsf@ludovic-brenta.org> <1f90y1bvh08f5.13dh2h2anptwy$.dlg@40tude.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Date: Sat, 15 May 2010 10:07:24 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="z95YBe35u1cN58aAoa2/GQ"; logging-data="24765"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18DBp8JlkAwX4a47S28rzvW" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:WmKNLIdZTRiXlU3qDumwA4hIk7M= sha1:v/31sSgfI/hSX0Nb6ODAdyDrCI0= Xref: g2news2.google.com comp.lang.ada:11633 Date: 2010-05-15T12:07:24+02:00 List-Id: Dmitry A. Kazakov writes on comp.lang.ada: > On Fri, 14 May 2010 22:38:30 +0200, Ludovic Brenta wrote: > >> Dmitry A. Kazakov writes: >>> On Fri, 14 May 2010 20:43:27 +0200, Ludovic Brenta wrote: >>> >>>>>>> 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 the Fedora maintainers can explain? > > From g-trasym.ads: > > "On all platforms except VMS, this package is not intended to be used > within a shared library, symbolic tracebacks are only supported for the > main executable and not for shared libraries. You should consider using > gdb to obtain symbolic traceback in such cases." > > This reads to me: don't use in a shared library. Maybe they just followed > this advice. I admit, I don't understand the text above. In particular, > since any library is dead without the main executable, comparing them makes > no sense to me. To me this reads: do not call this from a shared library; however your main program can call this even if it is in a shared libgnat. There is no technical reason why g-trasym.adb cannot be compiled with -fPIC and included in a shared library. For that matter, if we followed your interpretation, g-trasym.adb should not be in a static library either. -- Ludovic Brenta.