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.4 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Received: by 10.224.29.76 with SMTP id p12mr24526108qac.5.1373283830825; Mon, 08 Jul 2013 04:43:50 -0700 (PDT) X-Received: by 10.49.35.195 with SMTP id k3mr493564qej.2.1373283830810; Mon, 08 Jul 2013 04:43:50 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!t19no771551qam.0!news-out.google.com!f7ni1559qai.0!nntp.google.com!t19no771550qam.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 8 Jul 2013 04:43:50 -0700 (PDT) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=195.182.34.201; posting-account=bMuEOQoAAACUUr_ghL3RBIi5neBZ5w_S NNTP-Posting-Host: 195.182.34.201 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Shered library in Ada - undefined symbols problem (Ubuntu) From: Maciej Sobczak Injection-Date: Mon, 08 Jul 2013 11:43:50 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Received-Bytes: 1891 Xref: news.eternal-september.org comp.lang.ada:16152 Date: 2013-07-08T04:43:50-07:00 List-Id: Hi, While trying to run the older program that was based on shared library writ= ten in Ada I have found that my library has some undefined symbols, namely: interfaces__c_E This symbol is defined in the libgnat.a library, but it is not linked in to= my own shared library file. When the shared library is loaded with dlopen,= the error message points to the above symbol as missing. I have tried to force static linking of my shared library (to bring all dep= endent symbols into a single file), but the linker refused complaining abou= t relocation issues - apparently the static version of the GNAT runtime lib= rary is not itself compiled with fPIC. Any tips on how to move forward? This is Linux Ubuntu, GNAT 4.6 from official packages. --=20 Maciej Sobczak * http://www.msobczak.com * http://www.inspirel.com