Bug#1003813: libghc-lzma-dev: static C library missing as a prerequisite

Felix Lechner felix.lechner at lease-up.com
Sun Jan 16 05:35:11 GMT 2022


Package: libghc-lzma-dev
Severity: normal

Hi,

I am new to Debian's ecosystem for Haskell, so please forgive me if
this filing is perhaps not entirely justified.

When building my new package 'kickoff' [1] using sbuild in a fresh
'unstable' chroot, I received the build error below. It looks to me
like the linker could not find the static LZMA library.

I believe the library is available in the installable 'liblzma-dev'.
(Your package [2] only pulls in the shared version via liblzma5.) Are
consuming sources supposed to depend on the C library separately?

The full build log was attached to this message. Thank you for your guidance!

Kind regards
Felix Lechner

[1] https://bugs.debian.org/1003751
[2] https://packages.debian.org/sid/libghc-lzma-dev

* * *

/usr/bin/ld.gold: error: cannot find -llzma
/usr/lib/haskell-packages/ghc/lib/x86_64-linux-ghc-8.8.4/lzma-0.0.0.3-2n8nD73xk8SLYSVlgeU5jz/libHSlzma-0.0.0.3-2n8nD73xk8SLYSVlgeU5jz.a(lzma_wrapper.o):function
hs_lzma_init_decoder: error: undefined reference to
'lzma_stream_decoder'
/usr/lib/haskell-packages/ghc/lib/x86_64-linux-ghc-8.8.4/lzma-0.0.0.3-2n8nD73xk8SLYSVlgeU5jz/libHSlzma-0.0.0.3-2n8nD73xk8SLYSVlgeU5jz.a(lzma_wrapper.o):function
hs_lzma_init_decoder: error: undefined reference to
'lzma_auto_decoder'
/usr/lib/haskell-packages/ghc/lib/x86_64-linux-ghc-8.8.4/lzma-0.0.0.3-2n8nD73xk8SLYSVlgeU5jz/libHSlzma-0.0.0.3-2n8nD73xk8SLYSVlgeU5jz.a(lzma_wrapper.o):function
hs_lzma_init_encoder: error: undefined reference to
'lzma_easy_encoder'
/usr/lib/haskell-packages/ghc/lib/x86_64-linux-ghc-8.8.4/lzma-0.0.0.3-2n8nD73xk8SLYSVlgeU5jz/libHSlzma-0.0.0.3-2n8nD73xk8SLYSVlgeU5jz.a(lzma_wrapper.o):function
hs_lzma_run: error: undefined reference to 'lzma_code'
/usr/lib/haskell-packages/ghc/lib/x86_64-linux-ghc-8.8.4/lzma-0.0.0.3-2n8nD73xk8SLYSVlgeU5jz/libHSlzma-0.0.0.3-2n8nD73xk8SLYSVlgeU5jz.a(lzma_wrapper.o):function
hs_lzma_done: error: undefined reference to 'lzma_end'
collect2: error: ld returned 1 exit status
`x86_64-linux-gnu-gcc' failed in phase `Linker'. (Exit code: 1)
make: *** [/usr/share/cdbs/1/class/hlibrary.mk:147: build-ghc-stamp] Error 1
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kickoff_0.1.0_amd64-2022-01-16T04:50:08Z.build.xz
Type: application/x-xz
Size: 16364 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-haskell-maintainers/attachments/20220115/f5cb369b/attachment-0001.xz>


More information about the Pkg-haskell-maintainers mailing list