comp.lang.ada
 help / color / mirror / Atom feed
From: Maciej Sobczak <see.my.homepage@gmail.com>
Subject: Shered library in Ada - undefined symbols problem (Ubuntu)
Date: Mon, 8 Jul 2013 04:43:50 -0700 (PDT)
Date: 2013-07-08T04:43:50-07:00	[thread overview]
Message-ID: <f4ede5c1-26f9-4e90-bd69-0cd0ad3bdf6e@googlegroups.com> (raw)

Hi,

While trying to run the older program that was based on shared library written 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 dependent symbols into a single file), but the linker refused complaining about relocation issues - apparently the static version of the GNAT runtime library is not itself compiled with fPIC.

Any tips on how to move forward?

This is Linux Ubuntu, GNAT 4.6 from official packages.

-- 
Maciej Sobczak * http://www.msobczak.com * http://www.inspirel.com

             reply	other threads:[~2013-07-08 11:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-08 11:43 Maciej Sobczak [this message]
2013-07-08 11:54 ` Shered library in Ada - undefined symbols problem (Ubuntu) Maciej Sobczak
2013-07-08 16:22   ` Simon Wright
2013-07-09  7:41     ` Maciej Sobczak
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox