[fpc-pascal] ibase package

Antonio Fortuny a.fortuny at sitasoftware.lu
Mon Nov 18 13:11:06 CET 2013


Le 18/11/2013 13:08, Antonio Fortuny a écrit :
>
> Le 18/11/2013 12:19, Michael Van Canneyt a écrit :
>>
>>
>> On Mon, 18 Nov 2013, Antonio Fortuny wrote:
>>
>>> Hi Folks.
>>>
>>> I'm a little bit annoyed by a boring specification in the fpc 
>>> package. When in a program I use the TIBConnection (along witha 
>>> transaction and a query), the compiled program looks for the local 
>>> libfbclient when establishing the connection.
>>> So far so good. When I install the program in another Linux box, 
>>> running Firebird 2.1, the program complains that
>>> "Can not load default Firebird clients ("libfbclient.so.2.5" or 
>>> "libgds.so" or "libfbembed.so.2.5")". Looks normal as this Linux box 
>>> uses Firebird 2.1
>>> Is it possible to force what library should be used instead ? (as 
>>> UIB does)
>>> Having a look inside the code, in ibase60 (lines 2680 and fw) 
>>> library names look fixed and looks like the Firebird version should 
>>> be fixed before using it.
>>
>> You can do 2 things:
>>
>> 1. use the TSQLDBLibraryLoader component from sqldblib (in trunk)
>>
>> 2. call
>>    function InitialiseIBase60(Const LibraryName : AnsiString) : integer;
> found it in ibase60dyn.pp --> ibase60.inc
> before connecting to the DB:
>     InitialiseIBase60('libfbclient.so');
changing previous line to
   InitialiseIBase60('./libfbclient.so');
works.

Thanks

Antonio.

> compile on one system (OpenSuse x86_64), copy to the target system 
> (Ubuntu x86_64)
> target systemp library /usr/lib/libfbclient.so.2 copied in current 
> directory as libfbclient.so
> then run and:
> An unhandled exception occurred at $00000000004B544B :
> EInOutError : Can not load Firebird client library "libfbclient.so". 
> Check your installation.
>
> any comment ?
>
> Antonio.
>
>> with the correct library name.
>>
>> Michael.
>> _______________________________________________
>> fpc-pascal maillist  - fpc-pascal at lists.freepascal.org
>> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>
> -- 
> Sita Software
> *Antonio Fortuny*
> Senior Software engineer
>
> 220, avenue de la Liberté
> L-4602 Niederkorn
> Tel.: +352 58 00 93 - 93
> www.sitasoftware.lu <http://www.sitasoftware.lu>
> Your IT Partner
>
>
>
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal

-- 
Sita Software
*Antonio Fortuny*
Senior Software engineer

220, avenue de la Liberté
L-4602 Niederkorn
Tel.: +352 58 00 93 - 93
www.sitasoftware.lu <http://www.sitasoftware.lu>
Your IT Partner

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20131118/ff78819a/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 2306 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20131118/ff78819a/attachment.jpe>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 921 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20131118/ff78819a/attachment-0001.jpe>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fdjaefcj.jpg
Type: image/jpeg
Size: 2306 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20131118/ff78819a/attachment.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cfedjagf.jpg
Type: image/jpeg
Size: 921 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20131118/ff78819a/attachment-0001.jpg>


More information about the fpc-pascal mailing list