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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Shered library in Ada - undefined symbols problem (Ubuntu) Date: Mon, 08 Jul 2013 17:22:25 +0100 Organization: A noiseless patient Spider Message-ID: References: <1a028a67-76d9-4b01-b892-37a053997fee@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx05.eternal-september.org; posting-host="a849a84efccf4ec3e3fdf530b5c53bc9"; logging-data="29707"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/iZRwCsrsJi72BOkYaCQZQOPCRlDD8YYE=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (darwin) Cancel-Lock: sha1:OnATl5JItlVs8VFJD/uil7EHIg4= sha1:JS4IVW2K+pj1bMCj8AehfZobsGI= Xref: news.eternal-september.org comp.lang.ada:16165 Date: 2013-07-08T17:22:25+01:00 List-Id: Maciej Sobczak writes: >> This is Linux Ubuntu, GNAT 4.6 from official packages. > > Interesting additional info: it works like a charm with GNAT GPL 2013 > on the same system. > > Does it qualify as a bug in the FSF version of GNAT? No problem with FSF GCC 4.6.0 on Mac OS X. I tried for Library_Auto_Init use "true"; and removing the calls to ada_moduleinit() and ada_modulefinal(), which gave a segv on 4.6 but was fine on 4.8.1. In both cases I used gprbuild, because of gnatmake's inability to deal with .dylibs & rpath properly.