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

missing library for zstd #4478

Closed
daniel-dsouza opened this issue Mar 9, 2021 · 3 comments · Fixed by #4615
Closed

missing library for zstd #4478

daniel-dsouza opened this issue Mar 9, 2021 · 3 comments · Fixed by #4615
Assignees
Labels
bug build/meson Requires Meson build tool support

Comments

@daniel-dsouza
Copy link

For new Package Requests, see the guidelines

Setup

Package Name: SynoCli File Tools
Package Version: 2.2-8

NAS Model: RS3614RPxs
NAS Architecture: x86
DSM version: DSM 6.2.3-25426 Update 3

Expected behavior

Tell us what should happen

zstd should work

Actual behavior

Tell us what happens instead

zstd: error while loading shared libraries: /spksrc/spk/synocli-file/work-x64-6.1/install/var/packages/synocli-file/target/lib/libz.so: cannot open shared object file: No such file or directory

Steps to reproduce

1. update SynoCLI File Tools
2. run zstd
3. observer error

Package log

Check Package Center or /usr/local/{package}/var/

Wed Mar  3 19:36:48 CST 2021
===> Step preupgrade. USER= GROUP= SHARE_PATH=
Wed Mar  3 19:36:48 CST 2021
===> Step preuninst. USER= GROUP= SHARE_PATH=
Wed Mar  3 19:36:56 CST 2021
===> Step postuninst. USER= GROUP= SHARE_PATH=
Invoke service_remove_links
remove link: /usr/local/bin/less -> /volume1/@appstore/synocli-file/bin/less
remove link: /usr/local/bin/lessecho -> /volume1/@appstore/synocli-file/bin/lessecho
remove link: /usr/local/bin/lesskey -> /volume1/@appstore/synocli-file/bin/lesskey
remove link: /usr/local/bin/tree -> /volume1/@appstore/synocli-file/bin/tree
remove link: /usr/local/bin/ncdu -> /volume1/@appstore/synocli-file/bin/ncdu
remove link: /usr/local/bin/jdupes -> /volume1/@appstore/synocli-file/bin/jdupes
remove link: /usr/local/bin/mc -> /volume1/@appstore/synocli-file/bin/mc
remove link: /usr/local/bin/mcdiff -> /volume1/@appstore/synocli-file/bin/mcdiff
remove link: /usr/local/bin/mcview -> /volume1/@appstore/synocli-file/bin/mcview
remove link: /usr/local/bin/mcedit -> /volume1/@appstore/synocli-file/bin/mcedit
remove link: /usr/local/bin/nano -> /volume1/@appstore/synocli-file/bin/nano
remove link: /usr/local/bin/rnano -> /volume1/@appstore/synocli-file/bin/rnano
remove link: /usr/local/bin/file -> /volume1/@appstore/synocli-file/bin/file
remove link: /usr/local/bin/detox -> /volume1/@appstore/synocli-file/bin/detox
remove link: /usr/local/bin/pcre2grep -> /volume1/@appstore/synocli-file/bin/pcre2grep
remove link: /usr/local/bin/pcre2test -> /volume1/@appstore/synocli-file/bin/pcre2test
remove link: /usr/local/bin/rmlint -> /volume1/@appstore/synocli-file/bin/rmlint
remove link: /usr/local/bin/rnm -> /volume1/@appstore/synocli-file/bin/rnm
remove link: /usr/local/bin/zstd -> /volume1/@appstore/synocli-file/bin/zstd
remove link: /usr/local/bin/unzstd -> /volume1/@appstore/synocli-file/bin/unzstd
remove link: /usr/local/bin/zstdcat -> /volume1/@appstore/synocli-file/bin/zstdcat
remove link: /usr/local/bin/zstdmt -> /volume1/@appstore/synocli-file/bin/zstdmt
remove link: /usr/local/bin/zstdgrep -> /volume1/@appstore/synocli-file/bin/zstdgrep
remove link: /usr/local/bin/zstdless -> /volume1/@appstore/synocli-file/bin/zstdless
remove link: /usr/local/bin/fdupes -> /volume1/@appstore/synocli-file/bin/fdupes
remove link: /usr/local/bin/rhash -> /volume1/@appstore/synocli-file/bin/rhash
remove link: /usr/local/bin/ed2k-link -> /volume1/@appstore/synocli-file/bin/rhash
remove link: /usr/local/bin/edonr256-hash -> /volume1/@appstore/synocli-file/bin/rhash
remove link: /usr/local/bin/edonr512-hash -> /volume1/@appstore/synocli-file/bin/rhash
remove link: /usr/local/bin/gost-hash -> /volume1/@appstore/synocli-file/bin/rhash
remove link: /usr/local/bin/has160-hash -> /volume1/@appstore/synocli-file/bin/rhash
remove link: /usr/local/bin/magnet-link -> /volume1/@appstore/synocli-file/bin/rhash
remove link: /usr/local/bin/sfv-hash -> /volume1/@appstore/synocli-file/bin/rhash
remove link: /usr/local/bin/tiger-hash -> /volume1/@appstore/synocli-file/bin/rhash
remove link: /usr/local/bin/tth-hash -> /volume1/@appstore/synocli-file/bin/rhash
remove link: /usr/local/bin/whirlpool-hash -> /volume1/@appstore/synocli-file/bin/rhash
Wed Mar  3 19:36:56 CST 2021
===> Step preinst. USER= GROUP= SHARE_PATH=
Wed Mar  3 19:36:57 CST 2021
===> Step postinst. USER= GROUP= SHARE_PATH=
Invoke service_create_links
create link: /usr/local/bin/less -> /volume1/@appstore/synocli-file/bin/less
create link: /usr/local/bin/lessecho -> /volume1/@appstore/synocli-file/bin/lessecho
create link: /usr/local/bin/lesskey -> /volume1/@appstore/synocli-file/bin/lesskey
create link: /usr/local/bin/tree -> /volume1/@appstore/synocli-file/bin/tree
create link: /usr/local/bin/ncdu -> /volume1/@appstore/synocli-file/bin/ncdu
create link: /usr/local/bin/jdupes -> /volume1/@appstore/synocli-file/bin/jdupes
create link: /usr/local/bin/mc -> /volume1/@appstore/synocli-file/bin/mc
create link: /usr/local/bin/mcdiff -> /volume1/@appstore/synocli-file/bin/mcdiff
create link: /usr/local/bin/mcview -> /volume1/@appstore/synocli-file/bin/mcview
create link: /usr/local/bin/mcedit -> /volume1/@appstore/synocli-file/bin/mcedit
create link: /usr/local/bin/nano -> /volume1/@appstore/synocli-file/bin/nano
create link: /usr/local/bin/rnano -> /volume1/@appstore/synocli-file/bin/rnano
create link: /usr/local/bin/file -> /volume1/@appstore/synocli-file/bin/file
create link: /usr/local/bin/detox -> /volume1/@appstore/synocli-file/bin/detox
create link: /usr/local/bin/pcre2grep -> /volume1/@appstore/synocli-file/bin/pcre2grep
create link: /usr/local/bin/pcre2test -> /volume1/@appstore/synocli-file/bin/pcre2test
create link: /usr/local/bin/rmlint -> /volume1/@appstore/synocli-file/bin/rmlint
create link: /usr/local/bin/rnm -> /volume1/@appstore/synocli-file/bin/rnm
create link: /usr/local/bin/zstd -> /volume1/@appstore/synocli-file/bin/zstd
create link: /usr/local/bin/unzstd -> /volume1/@appstore/synocli-file/bin/unzstd
create link: /usr/local/bin/zstdcat -> /volume1/@appstore/synocli-file/bin/zstdcat
create link: /usr/local/bin/zstdmt -> /volume1/@appstore/synocli-file/bin/zstdmt
create link: /usr/local/bin/zstdgrep -> /volume1/@appstore/synocli-file/bin/zstdgrep
create link: /usr/local/bin/zstdless -> /volume1/@appstore/synocli-file/bin/zstdless
create link: /usr/local/bin/lzip -> /volume1/@appstore/synocli-file/bin/lzip
create link: /usr/local/bin/plzip -> /volume1/@appstore/synocli-file/bin/plzip
create link: /usr/local/bin/fdupes -> /volume1/@appstore/synocli-file/bin/fdupes
create link: /usr/local/bin/micro -> /volume1/@appstore/synocli-file/bin/micro
create link: /usr/local/bin/fzf -> /volume1/@appstore/synocli-file/bin/fzf
create link: /usr/local/bin/rhash -> /volume1/@appstore/synocli-file/bin/rhash
create link: /usr/local/bin/ed2k-link -> /volume1/@appstore/synocli-file/bin/rhash
create link: /usr/local/bin/edonr256-hash -> /volume1/@appstore/synocli-file/bin/rhash
create link: /usr/local/bin/edonr512-hash -> /volume1/@appstore/synocli-file/bin/rhash
create link: /usr/local/bin/gost-hash -> /volume1/@appstore/synocli-file/bin/rhash
create link: /usr/local/bin/has160-hash -> /volume1/@appstore/synocli-file/bin/rhash
create link: /usr/local/bin/magnet-link -> /volume1/@appstore/synocli-file/bin/rhash
create link: /usr/local/bin/sfv-hash -> /volume1/@appstore/synocli-file/bin/rhash
create link: /usr/local/bin/tiger-hash -> /volume1/@appstore/synocli-file/bin/rhash
create link: /usr/local/bin/tth-hash -> /volume1/@appstore/synocli-file/bin/rhash
create link: /usr/local/bin/whirlpool-hash -> /volume1/@appstore/synocli-file/bin/rhash
Wed Mar  3 19:36:57 CST 2021
===> Step postupgrade. USER= GROUP= SHARE_PATH=

Other logs

E.g. /var/log/messages or /var/log/synopkg.log

na
@hgy59 hgy59 self-assigned this Mar 11, 2021
@hgy59 hgy59 added the bug label Mar 11, 2021
@PBXg33k
Copy link

PBXg33k commented Mar 24, 2021

This issue also affects rmlint

rmlint: error while loading shared libraries: /spksrc/spk/synocli-file/work-x64-6.1/install/var/packages/synocli-file/target/lib/libz.so: cannot open shared object file: No such file or directory

Package Name: SynoCli File Tools
Package Version: 2.2-8

NAS Model: DS1813+
NAS Architecture: x86_64
DSM version: DSM 6.2.3-25426 Update 2

@hgy59
Copy link
Contributor

hgy59 commented May 4, 2021

This bug affects aseveral packages that include cross/zlib (but not all).
The linking to libz has a bad path (full path of development) but others have no path (libzstd, liblzma, libc):
The RPATH is correct but is ignored for libz with a full path,

/spksrc/diyspk/zstd$ readelf -a   work-x64-6.1/install/var/packages/zstd/target/bin/zstd | grep lib
      [Requesting program interpreter: /lib64/ld-linux-x86-64.so.2]
 0x0000000000000001 (NEEDED)             Shared library: [libzstd.so.1]
 0x0000000000000001 (NEEDED)             Shared library: [/spksrc/diyspk/zstd/work-x64-6.1/install/var/packages/zstd/target/lib/libz.so]
 0x0000000000000001 (NEEDED)             Shared library: [liblzma.so.5]
 0x0000000000000001 (NEEDED)             Shared library: [libc.so.6]
 0x000000000000000f (RPATH)              Library rpath: [/var/packages/zstd/target/lib]
0000006233f0  004100000007 R_X86_64_JUMP_SLO 0000000000000000 __libc_start_main@GLIBC_2.2.5 + 0
    65: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND __libc_start_main@GLIBC_2.2.5 (2)
   153: 000000000041a6d0     2 FUNC    GLOBAL DEFAULT   12 __libc_csu_fini
   264: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND __libc_start_main@@GLIBC_
   309: 000000000041a660   101 FUNC    GLOBAL DEFAULT   12 __libc_csu_init
  000000: Version: 1  File: liblzma.so.5  Cnt: 1
  0x0020: Version: 1  File: libc.so.6  Cnt: 3

This bug occurs for packages that depend on cross/zlib and use meson build system
cross/rmlint -> cross/glib -> cross/zlib
cross/zstd -> cross/zlib

@hgy59
Copy link
Contributor

hgy59 commented May 4, 2021

@hgy59 hgy59 added the build/meson Requires Meson build tool support label May 4, 2021
hgy59 added a commit to hgy59/spksrc that referenced this issue May 8, 2021
- remove --prefix to get rpath fixed for packages with meson-build
hgy59 added a commit that referenced this issue May 8, 2021
- remove --prefix to get rpath fixed for packages with meson-build
hgy59 added a commit to hgy59/spksrc that referenced this issue May 8, 2021
- update changelog and SPK_REV to publish fix for rmlint and zstd (SynoCommunity#4478)
@hgy59 hgy59 mentioned this issue May 8, 2021
3 tasks
hgy59 added a commit that referenced this issue May 8, 2021
- update changelog and SPK_REV to publish fix for rmlint and zstd (#4478)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug build/meson Requires Meson build tool support
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants