[fpc-pascal] sqldb firebird on linux can't find client lib

Michael Van Canneyt michael.vancanneyt at wisa.be
Thu Feb 15 13:38:07 CET 2007

On Thu, 15 Feb 2007, Bisma Jayadi wrote:

> > Run your application under 'strace' and send me the output, please.
> > (Zip, please, because it can be rather big)
> Done. Please check your email. I've made the program to the most simplest
> shape just to produce the error, so it isn't too big and hopefully easier to
> analyze. For the help, I thank you in advance.

>From the strace, you can see that it does find the library:

open("/usr/lib/libgds.so", O_RDONLY)    = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\360\271"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0555, st_size=548504, ...}) = 0
old_mmap(NULL, 585172, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0)= 0xee4000
old_mmap(0xf5a000, 65536, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x76000) = 0xf5a000
old_mmap(0xf6a000, 36308, PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xf6a000
close(3)                                = 0

The fact that it still reports it as 'not loaded', I conclude that the
dlopen operation failed. Why this would be so I cannot say.
Seems like some version incompatibility, because it again tries to load libm
etc, when it has already loaded it.


More information about the fpc-pascal mailing list