[fpc-devel] Inconsistency detected in dynamic library

Hans-Peter Suter gchappi at gmail.com
Mon Nov 16 16:00:11 CET 2009


2009/11/16 Jonas Maebe <jonas.maebe at elis.ugent.be>:

> You may want to use at least FPC 2.2.4, several bugs related to dynamic libraries on *nix platforms were fixed there.

Thanks for your answer! - I updated to FPC 2.2.4 (*) but the
inconsistency message is still there. The same happened when I tested
on another (VM) machine.

<pre>
chappi at devmachine:/data/hs$ fpc -CD TestShlib.pas
Free Pascal Compiler version 2.2.4-3 [2009/06/03] for i386
Copyright (c) 1993-2008 by Florian Klaempfl
Target OS: Linux for i386
Compiling TestShlib.pas
Linking libTestShlib.so
11 lines compiled, 0.1 sec

chappi at devmachine:/data/hs$ fpc -k"-R ." -k"-lTestShlib" TestExe.pas
Free Pascal Compiler version 2.2.4-3 [2009/06/03] for i386
Copyright (c) 1993-2008 by Florian Klaempfl
Target OS: Linux for i386
Compiling TestExe.pas
Linking TestExe
8 lines compiled, 0.0 sec

chappi at devmachine:/data/hs$ ./TestExe
hello 42
Inconsistency detected by ld.so: dl-fini.c: 195: _dl_fini: Assertion
`ns != 0 || i == nloaded' failed!
</pre>

Hans-Peter

(*) wget http://sourceforge.net/projects/lazarus/files/Lazarus%20Linux%20i386%20DEB/Lazarus%200.9.28.2/fpc-2.2.4-3.i386.deb.tar/download



More information about the fpc-devel mailing list