Page 1 of 1

Firebird Libraries

Posted: 07.07.2006, 11:58
by aperger
Hi Developers,

I update to SVN revision 78. In the "ZPlainFirebird15" unit there are some changes:

Code: Select all

  WINDOWS_DLL_LOCATION   = 'fbclient15.dll';
  WINDOWS_DLL_LOCATION_EMBEDDED = 'fbclientd15.dll';
  LINUX_DLL_LOCATION   = 'libfbclient.so.15';
  LINUX_DLL_LOCATION_EMBEDDED = 'libfbembed.so.15';
  LINUX_IB_CRYPT_LOCATION = 'libcrypt.so.15';
I install the latest stable Firebird 1.5.3.4870 into my Fedora Linux Box and MS Windows Box, but these libraries are not exist:

Under linux there are "libfbclient.so" as a link to "libfbclient.so.1.5.3"
Under windows there is a 'fbclient.dll' in "C:\Program Files\Firebird\Firebird_1_5\bin"

Please go back to rev. 77 if there are no any reason to do this!!!!

Perger ATtila

Posted: 07.07.2006, 12:38
by mdaems
Hi Attilla,

These changes are made to enable the embedded server library as well. He did this the way we implemented it for mysql, but did probably not see how we handled the alternative dll filenames. Using simply lfbclient.dll has the disadvantage of not being able to use 2 different fb protocols on the same machine (and certainly not in the same program). I'll change it this way : First the versioned names will be checked, and if they do not exist the generic name will be used.
I hope you can live with that solution? BTW, it happens only once for each program run, so the overhead should be minimal.

Mark

Posted: 07.07.2006, 13:22
by Terence
That is true, you have to rename the libs at the moment. For embedded you had on windows always to do also in mysql for both versions, so it doesn't seemed to strange to me to expect. But using espcape names makes sense, its just firebird drivers hadn't non strict dll loading before. Anyone who wants, else i do it.

Posted: 07.07.2006, 13:41
by mdaems
Just go on. You did the job well before, ideal time to finish...

Mark

Posted: 07.07.2006, 13:53
by aperger
mdaems wrote:
I'll change it this way : First the versioned names will be checked, and if they do not exist the generic name will be used.

Mark
Thanx for the answer. If you can do this "duoble" loading it would be ok for me.... and most of the programmers(ZeOS users).

Posted: 07.07.2006, 21:25
by mdaems
I hope it works with SVN version now. It compiles, but I don't use FB. I'm sure you will have the answer very soon.

Mark

Posted: 08.07.2006, 06:20
by Terence
I added this strict dll loading compiler switch and exported WINDOWS2 Const defs to new unit called ZPlainFirebirdDriver. Did some code seperation, the fb driver class now also is in ZPlainFirebirdDriver, common used code of Firebird+Interbase residy in
"ZPlainFirebirdInterbaseConstants". Adapted use clauses and updated Zeos.inc.
Still to do: add the 2 new files to packages. I can do for delphi 7, but what about the other versions.


http://cforce.dnsalias.org/files/firebird3mysqllib.zip

zip also contains mysql5 lib dll (server lib) would you please add it also, copyrights as already discussed in former threads are no problem.

Posted: 10.07.2006, 21:18
by mdaems
Added to SVN testing branch. Will be in my next unofficial release.

Mark