[fpc-devel] fp IDE and gdbint on Debian Wheezy/testing

Tomas Hajny XHajT03 at hajny.biz
Fri Oct 26 22:35:37 CEST 2012


On 26 Oct 12, at 19:46, Mark Morgan Lloyd wrote:
> Ewald wrote:
> > Hello,
> > 
> > I believe Tomas is right saying that there are some symbols missing.
> > These funcions appear to be part of gcc's initialization/finalization
> > equivalent for shared objects (a quick search told me this). I once had
> > a similar issue with a symbol called `__dso_handle`, the fix for it was
> > to declare the symbol (as there was apparantly noone using it, but a
> > linker expecting it).
 .
 .

I was hopefully right saying that the symbols were not found, but 
Florian was even more right saying that the most probable reason of 
those symbols not being found were object files not found due to 
different paths not known by the compiler.


> > If I were you, I would try to declare these to functions; but I can give
> > you no garanties that it will help you in any way:
> > 
> >     Procedure _init; cdecl; public name '_init';
> >     Begin
> >     End;
> > 
> >     Procedure _fini; cdecl; public name '_fini';
> >     Begin
> >     End;
> > 
> > Hope it helps.

No, that wouldn't help I'm afraid. The symbols are necessary for 
proper initialization and finalization of libc.


> I'm trying Thomas's suggestion first, pending Florian's comments.
 .
 .

I'd say that Thomas' suggestion points to the same direction as 
Florian. Your output sent in response to the Florian's request 
contains a reference to "/usr/lib/gcc/sparc-linux-
gnu/4.6/../../../sparc-linux-gnu/" as one of paths for searching the 
libraries - obviously, normalizing this path gives the path suggested 
by Thomas.

Tomas




More information about the fpc-devel mailing list