Skip to content
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

if fb4 is not in dir /opt/firebird/ libtomcrypt.so.1 => not found [CORE6006] #6256

Closed
firebird-automations opened this issue Feb 19, 2019 · 11 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: Segey Khalyutin (notesoft)

if fb4 is not in dir /opt/firebird/ libtomcrypt.so.1 => not found

when /opt/firebird_4/ renamed to /opt/firebird/ starting is ok

ost:~ #⁠ systemctl status firebird-4
Warning: firebird-4.service changed on disk. Run 'systemctl daemon-reload' to reload units.
? firebird-4.service - Firebird Database Server 4.0.a
Loaded: loaded (/opt/firebird_4/misc/firebird-4.service; linked; vendor preset: disabled)
Active: failed (Result: exit-code) since Tue 2019-02-19 16:12:11 EET; 17s ago
Process: 9302 ExecStart=/opt/firebird_4/bin/fbguard -pidfile /var/run/firebird/firebird_4.pid -daemon -forever (code=exited, stat>

Feb 19 16:12:11 host systemd[1]: Starting Firebird Database Server 4.0.a...
Feb 19 16:12:11 host fbguard[9302]: /opt/firebird_4/bin/fbguard: error while loading shared libraries: libtomcrypt.so.1: cannot ope>
Feb 19 16:12:11 host systemd[1]: firebird-4.service: Control process exited, code=exited status=127
Feb 19 16:12:11 host systemd[1]: Failed to start Firebird Database Server 4.0.a.
Feb 19 16:12:11 host systemd[1]: firebird-4.service: Unit entered failed state.
Feb 19 16:12:11 host systemd[1]: firebird-4.service: Failed with result 'exit-code'.

or bug reporting instructions, please see:
<http://bugs.opensuse.org>.
host:~ #⁠ ldd /opt/firebird_4/bin/fbguard
linux-vdso.so.1 (0x00007ffff49ec000)
libfbclient.so.2 => /opt/firebird_4/bin/../lib/libfbclient.so.2 (0x00007f7fe3a5c000)
libtommath.so.0 => /usr/lib64/libtommath.so.0 (0x00007f7fe3842000)
libtomcrypt.so.1 => not found
libdl.so.2 => /lib64/libdl.so.2 (0x00007f7fe363e000)
libncurses.so.5 => /lib64/libncurses.so.5 (0x00007f7fe3415000)
libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00007f7fe308b000)
libm.so.6 => /lib64/libm.so.6 (0x00007f7fe2d40000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f7fe2b28000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f7fe290a000)
libc.so.6 => /lib64/libc.so.6 (0x00007f7fe2550000)
/lib64/ld-linux-x86-64.so.2 (0x00007f7fe3e8b000)
libtomcrypt.so.1 => not found
libtinfo.so.6 => /lib64/libtinfo.so.6 (0x00007f7fe2322000)
host:~ #⁠ locate libtomcrypt
/opt/firebird_4/lib/.tm/libtomcrypt.so
/opt/firebird_4/lib/.tm/libtomcrypt.so.1
/opt/firebird_4/lib/.tm/libtomcrypt.so.1.0.1
/usr/lib64/libtomcrypt.so
/usr/lib64/libtomcrypt.so.1
/usr/lib64/libtomcrypt.so.1.0.1

Commits: 08a0bf6

@firebird-automations
Copy link
Collaborator Author

Modified by: @AlexPeshkoff

assignee: Alexander Peshkov [ alexpeshkoff ]

@firebird-automations
Copy link
Collaborator Author

Commented by: @AlexPeshkoff

Does issue still remains with current snapshot?

@firebird-automations
Copy link
Collaborator Author

Commented by: Segey Khalyutin (notesoft)

1.
if not instaled libtommath.so.0 and libtomcrypt.so.1 on computer not found this library in dir lib/.tm/ :

simple:/opt/NOTESOFT/NOTEMATRIX-3.0/RDE/firebird-4.0/bin #⁠ ldd fbguard
linux-vdso.so.1 (0x00007fff63d25000)
libfbclient.so.2 => /opt/NOTESOFT/NOTEMATRIX-3.0/RDE/firebird-4.0/bin/./../lib/libfbclient.so.2 (0x00007fadda875000)

    libtommath\.so\.0 =\> not found
    libtomcrypt\.so\.1 =\> not found

    libdl\.so\.2 =\> /lib64/libdl\.so\.2 \(0x00007fadda671000\)
    libncurses\.so\.5 =\> /lib64/libncurses\.so\.5 \(0x00007fadda448000\)
    libstdc\+\+\.so\.6 =\> /usr/lib64/libstdc\+\+\.so\.6 \(0x00007fadda0be000\)
    libm\.so\.6 =\> /lib64/libm\.so\.6 \(0x00007fadd9d86000\)
    libgcc\_s\.so\.1 =\> /lib64/libgcc\_s\.so\.1 \(0x00007fadd9b6e000\)
    libpthread\.so\.0 =\> /lib64/libpthread\.so\.0 \(0x00007fadd9950000\)
    libc\.so\.6 =\> /lib64/libc\.so\.6 \(0x00007fadd9596000\)
    /lib64/ld\-linux\-x86\-64\.so\.2 \(0x00007faddaca8000\)
    libtommath\.so\.0 =\> not found
    libtomcrypt\.so\.1 =\> not found
    libtinfo\.so\.6 =\> /lib64/libtinfo\.so\.6 \(0x00007fadd9368000\)

simple:/opt/NOTESOFT/NOTEMATRIX-3.0/RDE/firebird-4.0/bin #⁠ locate libtommath
simple:/opt/NOTESOFT/NOTEMATRIX-3.0/RDE/firebird-4.0/bin #⁠ locate libtomcrypt

/opt/NOTESOFT/NOTEMATRIX-3.0/RDE/firebird-4.0/lib/.tm/libtomcrypt.so
/opt/NOTESOFT/NOTEMATRIX-3.0/RDE/firebird-4.0/lib/.tm/libtomcrypt.so.1
/opt/NOTESOFT/NOTEMATRIX-3.0/RDE/firebird-4.0/lib/.tm/libtomcrypt.so.1.0.1

2.
if instaled libtommath.so.0 and libtomcrypt.so.1 on computer found this library in :

debug:/opt/NOTESOFT/NOTEMATRIX-3.0/RDE/firebird-4.0/bin #⁠ ldd firebird
...
libtommath.so.0 => /usr/lib64/libtommath.so.0 (0x00007f2687fcf000)
libtomcrypt.so.1 => /usr/lib64/libtomcrypt.so.1 (0x00007f2687d6b000)
..

In the second case firebird start normal from /opt/NOTESOFT/NOTEMATRIX-3.0/RDE/firebird-4.0/bin,

But, if it possible pleas include http://libtommath.so http://libtomcrypt.so in firebird distributive for "from box" run...

@firebird-automations
Copy link
Collaborator Author

Commented by: @AlexPeshkoff

How was FB installed into /opt/NOTESOFT/NOTEMATRIX-3.0/RDE/firebird-4.0 ?

@firebird-automations
Copy link
Collaborator Author

Commented by: Segey Khalyutin (notesoft)

Now we are testing our cross-platform installer (executable binary single file, created by xml-based script, Planned as free software). We used our installer to package the Snapshort FB4 files. We need a completely separate instance of the FB (including the tcp port, base directory, UDF, service, secure.fdb, etc.). If this is interesting for the FB project, we are ready to provide our installer fo FB (now it install FB in windows 10 and linux leap 15.1, but now has no GUI. GUI and iOS planed as next steps).

@firebird-automations
Copy link
Collaborator Author

Commented by: @AlexPeshkoff

Sergey, symlinks in /usr/lib (or /usr/lib64) to $FBROOT/lib/.tm/libtomcrypt.* are created by firebird installer at install time. I.e. you should add creation of them to your installer, and a problem with libtomcrypt will be gone. What about adding libtommath - no, we do not currently plan to add it to add it to binary packages, but you can easily build your own binaries from sources adding switch --with-builtin-tommath. Be sure - building FB on posix from src tarball is trivially simple process - just run ./configure (with appropriate switches) && make.

@firebird-automations
Copy link
Collaborator Author

Modified by: @AlexPeshkoff

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Cannot Reproduce [ 5 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

status: Resolved [ 5 ] => Closed [ 6 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

status: Closed [ 6 ] => Closed [ 6 ]

QA Status: No test => Cannot be tested

@firebird-automations
Copy link
Collaborator Author

Commented by: Basil A. Sidorov (basid)

./install.sh -path /opt/fb40
Firebird 4.0.0.2418-ReleaseCandidate1.amd64 Installation
Press Enter to start installation or ^C to abort
Please install required library 'libtomcrypt.so.1' before firebird, after it repeat firebird install

Lines 235-239 of http://install.sh (with "patch" - simple comment):
#⁠ if [ "Y" != "Y" -o "${fb_install_prefix}" != "${default_prefix}" ]
#⁠ then
#⁠ [ -z "$LIBTOMCRYPT" ] && LIBTOMCRYPT=tomcrypt
#⁠ checkLibrary $LIBTOMCRYPT
#⁠ fi

@firebird-automations
Copy link
Collaborator Author

Commented by: Basil A. Sidorov (basid)

LI-V4.0.0.2420 Firebird 4.0 Release Candidate 1
installed successfully with -path option

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants