-
-
Notifications
You must be signed in to change notification settings - Fork 222
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Linux: Upgrade to libtommath1 (link with libtommath.so.1) [CORE6313] #6554
Comments
Modified by: @AlexPeshkoffassignee: Alexander Peshkov [ alexpeshkoff ] |
Commented by: @AlexPeshkoff Appears to be useless change. Firebird 4 currently can be installed on both types of systems with tommath 0 and 1. |
Commented by: @asfernandes I think there is a problem really. Every time I try to install the binaries package in new Ubuntu I have a problem. |
Modified by: @pcisarstatus: Resolved [ 5 ] => Closed [ 6 ] |
Commented by: @AlexPeshkoff @adriano - do you mean FB3 or FB4 binaries? |
Commented by: @asfernandes Alex, after installing linbcurses5, looks like ok now in Ubuntu 20.04. However I must say I don't like that our installer creates symlink for libtommath.so.0 in /lib/x86_64-linux-gnu as that system directories changes are generally handled by packages. If I move this symlink to /opt/firebird/lib things still works. So why not use /opt/firebird/lib? |
Commented by: @AlexPeshkoff System directory for artificial symlink was chosen on purpose. After firebird installation required library can be installed (or at least attempted to install) into target box by native package manager. With symlink in /opt/firebird/lib they get 2 symlinks to 2 different copies of library, and it's hard to predict which one will be used. |
It looks like things are still problematic. Our CI (for example https://github.com/FirebirdSQL/firebird/runs/8061596033?check_suite_focus=true) is failing with If package is built with system tommath.so.1, install should not check for libtommath.so.0, I think. But even with this check, I believe install should not fail in this case (build and install in the same system) |
@asfernandes |
Yes, but last row of build says When I tried to fix it (together with changes related to filenames) I had the error about tommath and the job failing. (https://github.com/asfernandes/firebird/runs/8069509348?check_suite_focus=true) |
On 8/29/22 15:25, Adriano dos Santos Fernandes wrote:
@asfernandes <https://github.com/asfernandes> That link has no
failed jobs.
Yes, but last row of build says |./install.sh: 5: libtinfo.so.6: not
found|. This does not seems as a recoverable thing, so I suspect it's
exiting with wrong error code.
It's a bug in script-builder - may be ignored.
In |install.sh from artifact I see:
export LIBCURSES=libncurses.so.6
libtinfo.so.6
Looks like isql somehow depends upon both libncurses & libtinfo, will
take closer look.|
When I tried to fix it (together with changes related to filenames) I
had the error about tommath and the job failing.
(https://github.com/asfernandes/firebird/runs/8069509348?check_suite_focus=true)
In original case there were no problems with tommath.
But even with this check, I believe install should not fail in this
case (build and install in the same system)
It does - just foolish message |libtinfo.so.6: not found
|
|
On 8/29/22 16:54, Alexander Peshkov wrote:
On 8/29/22 15:25, Adriano dos Santos Fernandes wrote:
>
> @asfernandes <https://github.com/asfernandes> That link has no
> failed jobs.
>
> Yes, but last row of build says |./install.sh: 5: libtinfo.so.6: not
> found|. This does not seems as a recoverable thing, so I suspect it's
> exiting with wrong error code.
>
It's a bug in script-builder - may be ignored.
In |install.sh from artifact I see:
export LIBCURSES=libncurses.so.6
libtinfo.so.6
Looks like isql somehow depends upon both libncurses & libtinfo, will
take closer look.|
configure detects curses library present on the host:
1_build-linux-docker-x86.txt:2022-08-29T00:16:59.3670496Z checking for
tgetent in -lcurses... yes
and uses -lcursesswitch when building isql.
But there is no curses dependency in isql, instead:
# ldd isql
libncurses.so.6 => /lib64/libncurses.so.6 (0x00007fef18e4a000)
libtinfo.so.6 => /lib64/libtinfo.so.6 (0x00007fef18e0a000)
2 libraries but both distinct from requested one! I can understand how
(with a kind of .la redirection or something like it) we can get
libncurses or libtinfo instead libcurses - but why both?
|
Sorry, in the modified build tommath errors was happening because I missed to change an amd64 string in the shell script. |
Submitted by: Basil A. Sidorov (basid)
Firebird 4.0 beta 2 uses libncurses6 from base system "newest linuxes" (f.e. - CentOS 8 and Ubuntu19).
"Newest linuxes" also migrate to libtommath1 (libtommath.so.1), but FB40b2 linked with libtommath.so.0.
In coordination need link with libtommath.so.1
The text was updated successfully, but these errors were encountered: