Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 682142 - app-backup/tsm clobbers $ROOTPATH (was: dev-util/cmake-3.14.1 with app-backup/tsm installed: bin/cmake: error while loading shared libraries: libcrypto.so.1.0.2: cannot open shared object file: No such file or directory)
Summary: app-backup/tsm clobbers $ROOTPATH (was: dev-util/cmake-3.14.1 with app-backup...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Andreas K. Hüttel
URL:
Whiteboard:
Keywords:
: 690228 (view as bug list)
Depends on:
Blocks:
 
Reported: 2019-03-31 15:07 UTC by Toralf Förster
Modified: 2019-09-12 14:44 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,16.89 KB, text/plain)
2019-03-31 15:07 UTC, Toralf Förster
Details
dev-util:cmake-3.14.1:20190331-143947.log (dev-util:cmake-3.14.1:20190331-143947.log,537.40 KB, text/plain)
2019-03-31 15:07 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,90.17 KB, text/plain)
2019-03-31 15:07 UTC, Toralf Förster
Details
environment (environment,135.89 KB, text/plain)
2019-03-31 15:07 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,13.38 KB, application/x-bzip)
2019-03-31 15:07 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,9.40 KB, application/x-bzip)
2019-03-31 15:07 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,44.69 KB, application/x-bzip)
2019-03-31 15:07 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2019-03-31 15:07:34 UTC
[100%] Built target foo
Install the project...
bin/cmake: error while loading shared libraries: libcrypto.so.1.0.2: cannot open shared object file: No such file or directory
make: *** [Makefile:84: install] Error 127
 * ERROR: dev-util/cmake-3.14.1::gentoo failed (install phase):
 *   emake failed

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0-desktop-plasma-systemd_test_20190328-000152

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.1
 [2] x86_64-pc-linux-gnu-8.3.0 *

Available Python interpreters, in order of preference:
  [1]   python3.6
  [2]   python2.7 (fallback)
  [3]   pypy3 (fallback)

Available Rust versions:
  [1]   rust-1.33.0 *
java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 3.10.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm

emerge -qpvO dev-util/cmake
[ebuild     U ] dev-util/cmake-3.14.1 [3.14.0] USE="ncurses -doc -emacs -qt5 -system-jsoncpp -test"
Comment 1 Toralf Förster gentoo-dev 2019-03-31 15:07:37 UTC
Created attachment 571390 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2019-03-31 15:07:40 UTC
Created attachment 571392 [details]
dev-util:cmake-3.14.1:20190331-143947.log
Comment 3 Toralf Förster gentoo-dev 2019-03-31 15:07:43 UTC
Created attachment 571394 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2019-03-31 15:07:46 UTC
Created attachment 571396 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2019-03-31 15:07:48 UTC
Created attachment 571398 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2019-03-31 15:07:51 UTC
Created attachment 571400 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2019-03-31 15:07:54 UTC
Created attachment 571402 [details]
temp.tbz2
Comment 8 Michael Palimaka (kensington) gentoo-dev 2019-04-01 09:07:30 UTC
This is almost certainly a race condition (eg. openssl version change at the same time) or some breakage in the underlying environment - cmake doesn't use libcrypto at all.

If the issue persists, could you please run the build again with V=1 VERBOSE=1 in the environment?
Comment 9 Toralf Förster gentoo-dev 2019-04-01 18:34:46 UTC
(In reply to Michael Palimaka (kensington) from comment #8)
> If the issue persists, could you please run the build again with V=1
> VERBOSE=1 in the environment?

It is reproducible (at this image)
Comment 10 Aldo 2019-04-04 22:39:02 UTC
Exact same issue here on multiple devices; do you happen to have app-backup/tsm-7.1.8.0 installed? For me, the issue could be circumvented by unmerging it temporarily. On a side note, sys-cluster/ceph-12.2.8-r1 also has/had an issue connected with tsm, but from its build log the problem was somewhat more obvious; there it shadowed the 'libcurl.so.4'. If you want, I can provide it, but from my (admittedly unexperienced) point of view the issue rather seems to come from TSM.

Unfortunately I lack the experience and (more importantly) time to investigate the actual source of the issue right now, but if there's any way I can help, feel free to ask me.
Comment 11 Toralf Förster gentoo-dev 2019-04-05 19:55:45 UTC
hhm, scary, but at least tsm is installed here:

Sun Mar 31 08:13:37 2019 >>> app-backup/tsm-7.1.8.0
Comment 12 Michael Palimaka (kensington) gentoo-dev 2019-04-08 11:54:52 UTC
(In reply to Aldo from comment #10)
> Exact same issue here on multiple devices; do you happen to have
> app-backup/tsm-7.1.8.0 installed? For me, the issue could be circumvented by
> unmerging it temporarily. On a side note, sys-cluster/ceph-12.2.8-r1 also
> has/had an issue connected with tsm, but from its build log the problem was
> somewhat more obvious; there it shadowed the 'libcurl.so.4'. If you want, I
> can provide it, but from my (admittedly unexperienced) point of view the
> issue rather seems to come from TSM.
> 
> Unfortunately I lack the experience and (more importantly) time to
> investigate the actual source of the issue right now, but if there's any way
> I can help, feel free to ask me.

Thanks for the tip, the build is definitely broken by cmake somehow picking up the  stuff in /opt
Comment 13 Sławomir Nizio 2019-04-30 23:13:35 UTC
I don't know if it can be the reason or not, anyhow it's interesting that /opt/tivoli/tsm/client/ba/bin ends up as an element of PATH in ebuild's temp/environment file during build.
Comment 14 Sławomir Nizio 2019-04-30 23:20:29 UTC
…which is, by the look of it, due to ROOTPATH="/opt/tivoli/tsm/client/ba/bin" in /etc/env.d/80tivoli. I didn't try to remove that as I can't mess with that system I had it on.
Comment 15 Michael Palimaka (kensington) gentoo-dev 2019-05-01 10:01:11 UTC
(In reply to Sławomir Nizio from comment #14)
> …which is, by the look of it, due to
> ROOTPATH="/opt/tivoli/tsm/client/ba/bin" in /etc/env.d/80tivoli. I didn't
> try to remove that as I can't mess with that system I had it on.

Thanks, I have tested this and agree it's the cause

It seems like a bad idea for tsm to clobber $ROOTPATH like this, reassigning this bug to tsm maintainer.
Comment 16 Andreas K. Hüttel gentoo-dev 2019-06-20 17:57:01 UTC
I've unset ROOTPATH on my system and will check over the next days if tsm still runs properly. 

Updates soon.
Comment 17 tazinblack 2019-06-25 07:33:13 UTC
Same problem here. 
Temporal removal of /etc/env.d/80tivoli followed by 'env-update' and 'source /etc/profile' works for me to build cmake
Comment 18 Andreas Sturmlechner gentoo-dev 2019-07-20 16:25:47 UTC
*** Bug 690228 has been marked as a duplicate of this bug. ***
Comment 19 Felix Neumärker 2019-09-12 14:44:53 UTC
any news here ?

what about using

        start-stop-daemon --start --background --nicelevel 15 \
                --env PATH="${PATH}:/opt/tivoli/tsm/client/ba/bin" \
                ....

for daemon (to ensure the the existing functional is kept).

AFAIS are relevant binaries are symlinked anyway:
/usr/bin/dsmadmc -> ../../opt/tivoli/tsm/client/ba/bin/dsmadmc
/usr/bin/dsmagent -> ../../opt/tivoli/tsm/client/ba/bin/dsmagent
/usr/bin/dsmc -> ../../opt/tivoli/tsm/client/ba/bin/dsmc
/usr/bin/dsmcad -> ../../opt/tivoli/tsm/client/ba/bin/dsmcad
/usr/bin/dsmcert -> ../../opt/tivoli/tsm/client/ba/bin/dsmcert
/usr/bin/dsmj -> ../../opt/tivoli/tsm/client/ba/bin/dsmj
/usr/bin/dsmswitch -> ../../opt/tivoli/tsm/client/ba/bin/dsmswitch
/usr/bin/dsmtrace -> ../../opt/tivoli/tsm/client/ba/bin/dsmtrace
/usr/bin/gskcapicmd_64 -> ../../opt/ibm/gsk8_64/bin/gsk8capicmd_64
/usr/bin/gskver_64 -> ../../opt/ibm/gsk8_64/bin/gsk8ver_64