Package: liblzma-dev
Version: 5.2.2-1.3
Severity: normal

Dear Maintainer,
in a program I tested the lzma library for compress with multithread
function lzma_stream_encoder_mt, with the following results:

- if I link with dynamic library everything is fine
- if I link with static library, are returned these compilation errors:

g++ .... -Itr1 -Wl,-Bstatic -lblkid -luuid -lstdc++ -llzma -Wl,-Bdynamic
-no-pie -lpthread -O3 -flto -Wall -mindirect-branch=thunk -std=c++11
/usr/bin/ld: /tmp/user/0/ccGxpWk6.ltrans3.ltrans.o: in function ...:
<artificial>:(.text+0x2089): undefined reference to `lzma_cputhreads'
/usr/bin/ld: <artificial>:(.text+0x20a8): undefined reference to
`lzma_stream_encoder_mt' collect2: error: ld returned 1 exit status

but if I download the xz library sources (rel.5.3.99), create new static
library and link with it:

g++ .... -Itr1 -Wl,-Bstatic -lblkid -luuid -lstdc++ /opt/xz/lib/liblzma.a
-Wl,-Bdynamic -no-pie -lpthread -O3 -flto -Wall -mindirect-branch=thunk
-std=c++11

the compilation is successful.

Is it possible recreate or update the static library provided in the
package?

Thanks,
Antonio


-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (700, 'unstable'), (600, 'testing'), (500, 'stable-updates'),
(500, 'stable'), (100, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.18.5-custom (SMP w/8 CPU cores; PREEMPT)
Locale: LANG=it_IT, LC_CTYPE=it_IT (charmap=ISO-8859-1), LANGUAGE=it
(charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash
Init: systemd (via /run/systemd/system)

Versions of packages liblzma-dev depends on:
ii  liblzma5  5.2.2-1.3

liblzma-dev recommends no packages.

Versions of packages liblzma-dev suggests:
ii  liblzma-doc  5.2.2-1.3

Reply via email to