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

Dean Zobec dean.zobec at gmail.com
Thu Feb 15 14:08:03 CET 2007

Michael Van Canneyt pravi:
> 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.

It may be a firebird client installation problem. Last week I tried to
do a client-only installation, by installing on the client machine only
the relevant libs and making the softlinks as explained in the Firebird
docs. But I was not able to connect with sqldb. Then I did a full
Firebird install and then the connection was ok.


More information about the fpc-pascal mailing list