firebird icon indicating copy to clipboard operation
firebird copied to clipboard

Need ICU version to fix FirebirdSQL at Nixpkgs/NixOS

Open superherointj opened this issue 5 years ago • 36 comments

Hello!

FirebirdSQL is broken in NixOS for quite some time. Which makes me sad to see. I've tried to get it running [meaning to fix the nix package] but I had a really hard time pinpointing exact ICU version to be used in each version.

I want to know the exact ICU versions for each Firebird release version:

Current Versions https://github.com/FirebirdSQL/firebird/releases/tag/T4_0_0_RC1 # 01-Feb-2021 https://github.com/FirebirdSQL/firebird/releases/tag/R3_0_7 # 3.0.7 20-Oct-2020 https://github.com/FirebirdSQL/firebird/releases/tag/R2_5_9 # 2.5.9 24-Jun-2019

Legacy Versions https://github.com/FirebirdSQL/firebird/releases/tag/R2_1_7 # 2.1.7 05-Dec-2014 https://github.com/FirebirdSQL/firebird/releases/tag/R2_0_7

Thanks.

superherointj avatar Apr 28 '21 13:04 superherointj

For v4 ICU 63.1 is tested and distributed in Windows. More up to date versions should be ok too.

For v3 and v2.5, probably any version.

asfernandes avatar Apr 28 '21 13:04 asfernandes

I am using Linux NixOS. Latest version did not work. And 'any version' does not work for v3, v2.5. You are closing the issue without any helpful answer.

superherointj avatar Apr 28 '21 13:04 superherointj

We have the devel list to discuss things. Have you search there? We have already talked about ICU versions there.

You saying that a thing does not work pointing a link to a broken = true; line does not help I help you.

asfernandes avatar Apr 28 '21 13:04 asfernandes

If you want to get useful answer please ask useful question. https://wwwusers.ts.infn.it/~mocchiut/bugs/bugs.html

AlexPeshkoff avatar Apr 28 '21 13:04 AlexPeshkoff

We have the devel list to discuss things. Have you search there? We have already talked about ICU versions there. I did search a lot on the internet, google groups, tried IRC [ask there]. But no luck [up to that point].

Thanks for pointing out the 'devel list'.

You saying that a thing does not work pointing a link to a broken = true; line does not help I help you.

I only asked for the specific ICU version on each release. I was merely pointing out the reasoning on why I was asking this.

Thanks anyway.

superherointj avatar Apr 28 '21 13:04 superherointj

Since FB3 there is no need in SPECIFIC ICU version - any not too old (say >= 5.0) for FB3 must work. If it does not - than may be something goes wrong with ICU or FB build.

AlexPeshkoff avatar Apr 28 '21 13:04 AlexPeshkoff

@AlexPeshkoff I am trying to build from sources for Linux NixOS. Is this still the case of not needing specific ICU version?

superherointj avatar Apr 28 '21 13:04 superherointj

Since FB 3, we do not have ICU in the FB sources. It should be built and installed before build/install Firebird.

asfernandes avatar Apr 28 '21 13:04 asfernandes

Firebird 2.x uses own build of ICU 3.0 (could use OS\system build also). Firebird 3.0 is build and tested with ICU 52. Firebird 4.0 is build and tested with ICU 63. All Firebird versions should work with system-supplied ICU of corresponding versions or higher (not mention own MS builds at modern Win10).

@superherointj: until you show the real problem we can't help.

hvlad avatar Apr 28 '21 14:04 hvlad

Hmm ... I can't successfully build FB 2.5.9 on CentOS 8, because of an ICU problem :(

grzegorzzyla avatar Apr 28 '21 14:04 grzegorzzyla

@aafemt Just curious - how? Non-standard entries like SUSE? Or invited something else?

AlexPeshkoff avatar Apr 28 '21 14:04 AlexPeshkoff

Oh, I mixed it up with SUSE indeed. I'm sorry.

aafemt avatar Apr 28 '21 14:04 aafemt

Using ICU63 with Firebird tag T4_0_0_RC1 the build went through until new error:

/build/source/gen/Release/firebird/bin/isql -q -i /build/source/src/dbs/metadata.sql
Error loading plugin Engine13
-Module /build/source/gen/Release/firebird/plugins/libEngine13.so exists but can not be loaded
-/build/source/gen/Release/firebird/plugins/libEngine13.so: undefined symbol: ltm_desc

For full log: https://termbin.com/bbkv

Any idea?

superherointj avatar Apr 28 '21 15:04 superherointj

The error has nothing to do with ICU and caused by missing libtommatch library.

aafemt avatar Apr 28 '21 15:04 aafemt

Previous error was ICU related. By adding the proper ICU it worked until new error.

libtommath (v1.2.0) and libtomcrypt (v1.18.2) is present already.

superherointj avatar Apr 28 '21 15:04 superherointj

Error message clearly states otherwise. Most likely libtommatch version 1.X is present while Firebird is linked against 0.X.

aafemt avatar Apr 28 '21 15:04 aafemt

ltm_desc is libtomcrypt's symbol, not libtommath I hope @AlexPeshkoff could make it clear.

hvlad avatar Apr 28 '21 16:04 hvlad

Tried building libtomcrypt with flags:

  1. CFLAGS="-DUSE_LTM -DLTM_DESC"

  2. CPPFLAGS+=" -DLTM_DESC -DGMP_DESC -DUSE_LTM" EXTRALIBS="-ltommath -lgmp"

But got same error when building firebird package:

Error loading plugin Engine13 -Module /build/source/gen/Release/firebird/plugins/libEngine13.so exists but can not be loaded -/build/source/gen/Release/firebird/plugins/libEngine13.so: undefined symbol: ltm_desc

Any idea on how to get around this "undefined symbol: ltm_desc" error?

superherointj avatar Apr 28 '21 18:04 superherointj

On 4/28/21 9:36 PM, superherointj wrote:

Tried building |libtomcrypt| with flags:

|CFLAGS="-DUSE_LTM -DLTM_DESC"|

That should be enough - from ltm_desc POV. Also do not forget -DLTC_PTHREAD -pthread - or firebird can segfault randomly when using tomcrypt.

CPPFLAGS+=" -DLTM_DESC -DGMP_DESC -DUSE_LTM" EXTRALIBS="-ltommath
-lgmp"

Firebird is not using GMP support in tomcrypt.

But got same error when building |firebird| package:

Error loading plugin Engine13 -Module /build/source/gen/Release/firebird/plugins/libEngine13.so exists but can not be loaded -/build/source/gen/Release/firebird/plugins/libEngine13.so: /undefined symbol: ltm_desc/

Any idea on how to get around this |"undefined symbol: ltm_desc"| error?

Start with using switch --with-builtin-tomcrypt in firebird's configure and see does it help.

AlexPeshkoff avatar Apr 29 '21 08:04 AlexPeshkoff

I was able to build tomcrypt with flags properly. Firebird 4 build no longer stops at tomcrypt but goes back to complaining about ICU, but with different error: Could not find acceptable ICU library I am providing icu63. So it finds ICU, just doesn't like it?

Full logs: https://termbin.com/5idg

Just noted: configure: WARNING: unrecognized options: --with-serivec-port, --with-system-icu

superherointj avatar Apr 29 '21 14:04 superherointj