gzip & lzma detected, but not linked against enough
The configure script finds LZMA and gzip support, but does not seem to link against it in all relevant places. I see:
GZIP compression: yes
...
LZMA compression: yes
but later
--- test_linking_decompress ---
ld: ./.libs/libwget_decompress.a(libwget_decompress_la-decompressor.o): in function `lzma_decompress':
/scratch/net/wget2/work/wget2-2.0.0/libwget/decompressor.c:221: undefined reference to `lzma_code'
ld: ./.libs/libwget_decompress.a(libwget_decompress_la-decompressor.o): in function `gzip_exit':
/scratch/net/wget2/work/wget2-2.0.0/libwget/decompressor.c:167: undefined reference to `inflateEnd'
ld: ./.libs/libwget_decompress.a(libwget_decompress_la-decompressor.o): in function `gzip_decompress':
/scratch/net/wget2/work/wget2-2.0.0/libwget/decompressor.c:149: undefined reference to `inflate'
ld: ./.libs/libwget_decompress.a(libwget_decompress_la-decompressor.o): in function `gzip_init':
/scratch/net/wget2/work/wget2-2.0.0/libwget/decompressor.c:119: undefined reference to `inflateInit2_'
ld: ./.libs/libwget_decompress.a(libwget_decompress_la-decompressor.o): in function `deflate_init':
/scratch/net/wget2/work/wget2-2.0.0/libwget/decompressor.c:176: undefined reference to `inflateInit_'
ld: ./.libs/libwget_decompress.a(libwget_decompress_la-decompressor.o): in function `lzma_init':
/scratch/net/wget2/work/wget2-2.0.0/libwget/decompressor.c:191: undefined reference to `lzma_auto_decoder'
ld: ./.libs/libwget_decompress.a(libwget_decompress_la-decompressor.o): in function `lzma_exit':
/scratch/net/wget2/work/wget2-2.0.0/libwget/decompressor.c:237: undefined reference to `lzma_end'
*** [test_linking_decompress] Error code 1
Edited by Thomas Klausner