Closed mgautierfr closed 1 year ago
This is warnings internal to xapian. It is fixed in last version of xapian: https://github.com/xapian/xapian/blob/master/xapian-core/NEWS#L307-L315
@mgautierfr so lets upgrade xapian, should be straight.
Using this on (fresh) bullseye now fails to compile kiwix-tools ☹️
root@b824dc21825c:~/kiwix-build# kiwix-build --target-platform native_mixed kiwix-tools
WARNING: qmake command not found.
kiwix-tools
libkiwix
[INSTALL PACKAGES]
- automake : SKIP
- libtool : SKIP
- cmake : SKIP
- git : SKIP
- subversion : SKIP
- ccache : SKIP
- pkg-config : SKIP
- gcc : SKIP
- autopoint : SKIP
- libbz2-dev : SKIP
- libmagic-dev : SKIP
SKIP, No package to install.
[SETUP PLATFORMS]
[PREPARE]
prepare sources pugixml :
download pugixml : OK (0.9s)
extract pugixml : OK (0.0s)
patch pugixml : OK (0.0s)
prepare sources lzma :
download lzma : OK (1.6s)
extract lzma : OK (0.1s)
prepare sources zstd :
download zstd : OK (2.7s)
extract zstd : OK (0.1s)
prepare sources zlib :
download zlib : OK (1.1s)
extract zlib : OK (0.1s)
patch zlib : OK (0.0s)
prepare sources uuid :
download uuid : OK (1.7s)
extract uuid : OK (0.1s)
prepare sources xapian-core :
download xapian-core : OK (1.3s)
extract xapian-core : OK (0.7s)
patch xapian-core : OK (0.0s)
prepare sources icu4c :
download icu4c : OK (12.7s)
extract icu4c : OK (3.5s)
patch icu4c : OK (0.0s)
prepare sources zim-testing-suite :
download zim-testing-suite : OK (12.5s)
extract zim-testing-suite : OK (0.4s)
prepare sources libzim :
gitinit libzim : OK (8.6s)
prepare sources libcurl :
download libcurl : OK (1.9s)
extract libcurl : OK (0.7s)
prepare sources libmicrohttpd :
download libmicrohttpd : OK (2.3s)
extract libmicrohttpd : OK (0.1s)
prepare sources mustache :
download mustache : OK (1.4s)
extract mustache : OK (0.0s)
prepare sources libkiwix :
gitinit libkiwix : OK (4.1s)
prepare sources kiwix-tools :
gitinit kiwix-tools : OK (2.6s)
[BUILD]
build pugixml (native_static):
configure pugixml : OK (0.4s)
compile pugixml : OK (3.2s)
test pugixml : OK (0.3s)
install pugixml : OK (0.2s)
build lzma (native_static):
configure lzma : OK (5.7s)
compile lzma : OK (3.4s)
install lzma : OK (0.4s)
build zstd (native_static):
configure zstd : OK (1.8s)
compile zstd : OK (9.0s)
test zstd : OK (0.3s)
install zstd : OK (0.3s)
build zlib (native_static):
pre_build_script zlib : OK (0.0s)
configure zlib : OK (0.3s)
compile zlib : OK (0.9s)
install zlib : OK (0.0s)
build uuid (native_static):
configure uuid : OK (11.3s)
compile uuid : OK (1.3s)
install uuid : OK (0.2s)
build xapian-core (native_static):
configure xapian-core : OK (8.6s)
compile xapian-core : .OK (39.5s)
install xapian-core : OK (1.0s)
build icu4c (native_static):
configure icu4c : OK (4.0s)
compile icu4c : ..OK (75.4s)
install icu4c : OK (0.9s)
build zim-testing-suite (native_static):
build libzim (native_static):
configure libzim : OK (4.0s)
compile libzim : ..OK (86.3s)
test libzim : OK (14.1s)
install libzim : OK (0.5s)
build libcurl (native_static):
configure libcurl : OK (21.1s)
compile libcurl : OK (6.4s)
install libcurl : OK (0.8s)
build libmicrohttpd (native_static):
configure libmicrohttpd : OK (7.7s)
compile libmicrohttpd : OK (1.4s)
install libmicrohttpd : OK (0.2s)
build mustache (native_static):
copy_header mustache : OK (0.0s)
build libkiwix (native_static):
configure libkiwix : OK (4.3s)
compile libkiwix : .OK (50.1s)
test libkiwix : OK (13.5s)
install libkiwix : OK (0.3s)
build kiwix-tools (native_mixed):
configure kiwix-tools : OK (0.7s)
compile kiwix-tools : ERROR
run command 'ninja -v'
current directory is '/root/kiwix-build/./BUILD_native_mixed/kiwix-tools'
env is :
HOSTNAME : 'b824dc21825c'
PWD : '/root/kiwix-build'
HOME : '/root'
TERM : 'xterm'
SHLVL : '1'
PATH : '/root/kiwix-build/./BUILD_native_mixed/INSTALL/bin:/root/kiwix-build/./BUILD_native_static/INSTALL/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
OLDPWD : '/root'
_ : '/usr/local/bin/kiwix-build'
LC_CTYPE : 'C.UTF-8'
PKG_CONFIG_PATH : ':/root/kiwix-build/./BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/pkgconfig:/root/kiwix-build/./BUILD_native_mixed/INSTALL/lib/x86_64-linux-gnu/pkgconfig'
CPPFLAGS : '-I/root/kiwix-build/./BUILD_native_mixed/INSTALL/include -I/root/kiwix-build/./BUILD_native_static/INSTALL/include '
LD_LIBRARY_PATH : ':/root/kiwix-build/./BUILD_native_mixed/INSTALL/lib:/root/kiwix-build/./BUILD_native_mixed/INSTALL/lib/x86_64-linux-gnu'
QMAKE_CXXFLAGS : '-I/root/kiwix-build/./BUILD_native_mixed/INSTALL/include '
QMAKE_LFLAGS : '-L/root/kiwix-build/./BUILD_native_mixed/INSTALL/lib -L/root/kiwix-build/./BUILD_native_mixed/INSTALL/lib/x86_64-linux-gnu '
LDFLAGS : '-L/root/kiwix-build/./BUILD_native_mixed/INSTALL/lib -L/root/kiwix-build/./BUILD_native_mixed/INSTALL/lib/x86_64-linux-gnu '
[1/6] ccache c++ -Isrc/searcher/kiwix-search.p -Isrc/searcher -I../../SOURCE/kiwix-tools/src/searcher -I/root/kiwix-build/./BUILD_native_static/INSTALL/include/ -I/root/kiwix-build/BUILD_native_static/INSTALL/include -I/root/kiwix-build/./BUILD_native_static/INSTALL/include -I/root/kiwix-build/./BUILD_native_mixed/INSTALL/include -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -std=c++11 -O0 -g '-DKIWIX_TOOLS_VERSION="3.4.0"' -pthread -DCURL_STATICLIB -MD -MQ src/searcher/kiwix-search.p/kiwix-search.cpp.o -MF src/searcher/kiwix-search.p/kiwix-search.cpp.o.d -o src/searcher/kiwix-search.p/kiwix-search.cpp.o -c ../../SOURCE/kiwix-tools/src/searcher/kiwix-search.cpp
[2/6] ccache c++ -Isrc/manager/kiwix-manage.p -Isrc/manager -I../../SOURCE/kiwix-tools/src/manager -I/root/kiwix-build/./BUILD_native_static/INSTALL/include/ -I/root/kiwix-build/BUILD_native_static/INSTALL/include -I/root/kiwix-build/./BUILD_native_static/INSTALL/include -I/root/kiwix-build/./BUILD_native_mixed/INSTALL/include -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -std=c++11 -O0 -g '-DKIWIX_TOOLS_VERSION="3.4.0"' -pthread -DCURL_STATICLIB -MD -MQ src/manager/kiwix-manage.p/kiwix-manage.cpp.o -MF src/manager/kiwix-manage.p/kiwix-manage.cpp.o.d -o src/manager/kiwix-manage.p/kiwix-manage.cpp.o -c ../../SOURCE/kiwix-tools/src/manager/kiwix-manage.cpp
[3/6] ccache c++ -Isrc/server/kiwix-serve.p -Isrc/server -I../../SOURCE/kiwix-tools/src/server -I/root/kiwix-build/./BUILD_native_static/INSTALL/include/ -I/root/kiwix-build/BUILD_native_static/INSTALL/include -I/root/kiwix-build/./BUILD_native_static/INSTALL/include -I/root/kiwix-build/./BUILD_native_mixed/INSTALL/include -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -std=c++11 -O0 -g '-DKIWIX_TOOLS_VERSION="3.4.0"' -pthread -DCURL_STATICLIB -MD -MQ src/server/kiwix-serve.p/kiwix-serve.cpp.o -MF src/server/kiwix-serve.p/kiwix-serve.cpp.o.d -o src/server/kiwix-serve.p/kiwix-serve.cpp.o -c ../../SOURCE/kiwix-tools/src/server/kiwix-serve.cpp
[4/6] c++ -o src/searcher/kiwix-search src/searcher/kiwix-search.p/kiwix-search.cpp.o -L/root/kiwix-build/./BUILD_native_mixed/INSTALL/lib -L/root/kiwix-build/./BUILD_native_mixed/INSTALL/lib/x86_64-linux-gnu -I/root/kiwix-build/./BUILD_native_mixed/INSTALL/include -I/root/kiwix-build/./BUILD_native_static/INSTALL/include -Wl,--as-needed -Wl,--no-undefined -pthread -Wl,--start-group /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libkiwix.a /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libzim.a /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/liblzma.a /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libzstd.a /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libicui18n.a /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libicuuc.a /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libicudata.a /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libpugixml.a /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libcurl.a /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libmicrohttpd.a /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libxapian.a -Wl,--end-group
FAILED: src/searcher/kiwix-search
c++ -o src/searcher/kiwix-search src/searcher/kiwix-search.p/kiwix-search.cpp.o -L/root/kiwix-build/./BUILD_native_mixed/INSTALL/lib -L/root/kiwix-build/./BUILD_native_mixed/INSTALL/lib/x86_64-linux-gnu -I/root/kiwix-build/./BUILD_native_mixed/INSTALL/include -I/root/kiwix-build/./BUILD_native_static/INSTALL/include -Wl,--as-needed -Wl,--no-undefined -pthread -Wl,--start-group /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libkiwix.a /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libzim.a /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/liblzma.a /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libzstd.a /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libicui18n.a /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libicuuc.a /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libicudata.a /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libpugixml.a /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libcurl.a /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libmicrohttpd.a /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libxapian.a -Wl,--end-group
/usr/bin/ld: /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libxapian.a(compression_stream.o): in function `CompressionStream::~CompressionStream()':
(.text+0xe): undefined reference to `deflateEnd'
/usr/bin/ld: (.text+0x2f): undefined reference to `inflateEnd'
/usr/bin/ld: /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libxapian.a(compression_stream.o): in function `CompressionStream::decompress_chunk(char const*, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&)':
(.text+0xe1): undefined reference to `inflate'
/usr/bin/ld: /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libxapian.a(compression_stream.o): in function `CompressionStream::lazy_alloc_deflate_zstream()':
(.text+0x23b): undefined reference to `deflateReset'
/usr/bin/ld: (.text+0x2af): undefined reference to `deflateInit2_'
/usr/bin/ld: /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libxapian.a(compression_stream.o): in function `CompressionStream::compress(char const*, unsigned long*)':
(.text+0x484): undefined reference to `deflate'
/usr/bin/ld: /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libxapian.a(compression_stream.o): in function `CompressionStream::lazy_alloc_inflate_zstream()':
(.text+0x50b): undefined reference to `inflateReset'
/usr/bin/ld: (.text+0x574): undefined reference to `inflateInit2_'
/usr/bin/ld: /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libxapian.a(multimatch.o): in function `MultiMatch::get_mset(unsigned int, unsigned int, unsigned int, Xapian::MSet&, Xapian::Weight::Internal&, Xapian::MatchDecider const*, Xapian::KeyMaker const*)':
(.text+0x1d35): undefined reference to `timer_delete'
/usr/bin/ld: (.text+0x1e6c): undefined reference to `timer_create'
/usr/bin/ld: (.text+0x1edf): undefined reference to `timer_settime'
/usr/bin/ld: (.text+0x1ef4): undefined reference to `timer_delete'
/usr/bin/ld: /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libxapian.a(multimatch.o): in function `MultiMatch::get_mset(unsigned int, unsigned int, unsigned int, Xapian::MSet&, Xapian::Weight::Internal&, Xapian::MatchDecider const*, Xapian::KeyMaker const*) [clone .cold]':
(.text.unlikely+0x20e): undefined reference to `timer_delete'
/usr/bin/ld: /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libxapian.a(uuids.o): in function `Uuid::generate()':
(.text+0xc): undefined reference to `uuid_generate'
collect2: error: ld returned 1 exit status
[5/6] c++ -o src/manager/kiwix-manage src/manager/kiwix-manage.p/kiwix-manage.cpp.o -L/root/kiwix-build/./BUILD_native_mixed/INSTALL/lib -L/root/kiwix-build/./BUILD_native_mixed/INSTALL/lib/x86_64-linux-gnu -I/root/kiwix-build/./BUILD_native_mixed/INSTALL/include -I/root/kiwix-build/./BUILD_native_static/INSTALL/include -Wl,--as-needed -Wl,--no-undefined -pthread -Wl,--start-group /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libkiwix.a /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libzim.a /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/liblzma.a /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libzstd.a /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libicui18n.a /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libicuuc.a /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libicudata.a /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libpugixml.a /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libcurl.a /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libmicrohttpd.a /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libxapian.a -Wl,--end-group
FAILED: src/manager/kiwix-manage
c++ -o src/manager/kiwix-manage src/manager/kiwix-manage.p/kiwix-manage.cpp.o -L/root/kiwix-build/./BUILD_native_mixed/INSTALL/lib -L/root/kiwix-build/./BUILD_native_mixed/INSTALL/lib/x86_64-linux-gnu -I/root/kiwix-build/./BUILD_native_mixed/INSTALL/include -I/root/kiwix-build/./BUILD_native_static/INSTALL/include -Wl,--as-needed -Wl,--no-undefined -pthread -Wl,--start-group /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libkiwix.a /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libzim.a /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/liblzma.a /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libzstd.a /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libicui18n.a /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libicuuc.a /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libicudata.a /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libpugixml.a /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libcurl.a /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libmicrohttpd.a /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libxapian.a -Wl,--end-group
/usr/bin/ld: /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libxapian.a(compression_stream.o): in function `CompressionStream::~CompressionStream()':
(.text+0xe): undefined reference to `deflateEnd'
/usr/bin/ld: (.text+0x2f): undefined reference to `inflateEnd'
/usr/bin/ld: /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libxapian.a(compression_stream.o): in function `CompressionStream::decompress_chunk(char const*, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&)':
(.text+0xe1): undefined reference to `inflate'
/usr/bin/ld: /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libxapian.a(compression_stream.o): in function `CompressionStream::lazy_alloc_deflate_zstream()':
(.text+0x23b): undefined reference to `deflateReset'
/usr/bin/ld: (.text+0x2af): undefined reference to `deflateInit2_'
/usr/bin/ld: /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libxapian.a(compression_stream.o): in function `CompressionStream::compress(char const*, unsigned long*)':
(.text+0x484): undefined reference to `deflate'
/usr/bin/ld: /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libxapian.a(compression_stream.o): in function `CompressionStream::lazy_alloc_inflate_zstream()':
(.text+0x50b): undefined reference to `inflateReset'
/usr/bin/ld: (.text+0x574): undefined reference to `inflateInit2_'
/usr/bin/ld: /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libxapian.a(multimatch.o): in function `MultiMatch::get_mset(unsigned int, unsigned int, unsigned int, Xapian::MSet&, Xapian::Weight::Internal&, Xapian::MatchDecider const*, Xapian::KeyMaker const*)':
(.text+0x1d35): undefined reference to `timer_delete'
/usr/bin/ld: (.text+0x1e6c): undefined reference to `timer_create'
/usr/bin/ld: (.text+0x1edf): undefined reference to `timer_settime'
/usr/bin/ld: (.text+0x1ef4): undefined reference to `timer_delete'
/usr/bin/ld: /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libxapian.a(multimatch.o): in function `MultiMatch::get_mset(unsigned int, unsigned int, unsigned int, Xapian::MSet&, Xapian::Weight::Internal&, Xapian::MatchDecider const*, Xapian::KeyMaker const*) [clone .cold]':
(.text.unlikely+0x20e): undefined reference to `timer_delete'
/usr/bin/ld: /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libxapian.a(uuids.o): in function `Uuid::generate()':
(.text+0xc): undefined reference to `uuid_generate'
/usr/bin/ld: /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libcurl.a(libcurl_la-version.o): in function `Curl_version_init':
(.text+0x3c): undefined reference to `zlibVersion'
/usr/bin/ld: (.text+0x6e): undefined reference to `zlibVersion'
/usr/bin/ld: /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libcurl.a(libcurl_la-version.o): in function `curl_version':
(.text+0xdb): undefined reference to `zlibVersion'
/usr/bin/ld: /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libcurl.a(libcurl_la-version.o): in function `curl_version_info':
(.text+0x12d): undefined reference to `zlibVersion'
/usr/bin/ld: /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libcurl.a(libcurl_la-content_encoding.o): in function `deflate_init_writer':
(.text+0x1e4): undefined reference to `inflateInit_'
/usr/bin/ld: /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libcurl.a(libcurl_la-content_encoding.o): in function `deflate_close_writer':
(.text+0x2a5): undefined reference to `inflateEnd'
/usr/bin/ld: /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libcurl.a(libcurl_la-content_encoding.o): in function `gzip_close_writer':
(.text+0x335): undefined reference to `inflateEnd'
/usr/bin/ld: /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libcurl.a(libcurl_la-content_encoding.o): in function `gzip_init_writer':
(.text+0x3ba): undefined reference to `zlibVersion'
/usr/bin/ld: (.text+0x3ed): undefined reference to `inflateInit2_'
/usr/bin/ld: (.text+0x411): undefined reference to `inflateInit2_'
/usr/bin/ld: /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libcurl.a(libcurl_la-content_encoding.o): in function `inflate_stream':
(.text+0x4ee): undefined reference to `inflate'
/usr/bin/ld: (.text+0x671): undefined reference to `inflateEnd'
/usr/bin/ld: (.text+0x6d4): undefined reference to `inflateEnd'
/usr/bin/ld: (.text+0x704): undefined reference to `inflateEnd'
/usr/bin/ld: (.text+0x71d): undefined reference to `inflateInit2_'
/usr/bin/ld: (.text+0x7b9): undefined reference to `inflateEnd'
/usr/bin/ld: /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libcurl.a(libcurl_la-content_encoding.o): in function `deflate_unencode_write':
(.text+0x896): undefined reference to `inflateEnd'
/usr/bin/ld: (.text+0x8ca): undefined reference to `inflateEnd'
/usr/bin/ld: /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libcurl.a(libcurl_la-content_encoding.o): in function `gzip_unencode_write':
(.text+0x9e0): undefined reference to `inflateEnd'
/usr/bin/ld: (.text+0xaa7): undefined reference to `inflateEnd'
/usr/bin/ld: /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libcurl.a(libcurl_la-content_encoding.o):(.text+0xb04): more undefined references to `inflateEnd' follow
collect2: error: ld returned 1 exit status
[6/6] c++ -o src/server/kiwix-serve src/server/kiwix-serve.p/kiwix-serve.cpp.o -L/root/kiwix-build/./BUILD_native_mixed/INSTALL/lib -L/root/kiwix-build/./BUILD_native_mixed/INSTALL/lib/x86_64-linux-gnu -I/root/kiwix-build/./BUILD_native_mixed/INSTALL/include -I/root/kiwix-build/./BUILD_native_static/INSTALL/include -Wl,--as-needed -Wl,--no-undefined -pthread -Wl,--start-group /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libkiwix.a /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libzim.a /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/liblzma.a /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libzstd.a /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libicui18n.a /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libicuuc.a /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libicudata.a /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libpugixml.a /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libcurl.a /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libmicrohttpd.a /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libxapian.a -Wl,--end-group
FAILED: src/server/kiwix-serve
c++ -o src/server/kiwix-serve src/server/kiwix-serve.p/kiwix-serve.cpp.o -L/root/kiwix-build/./BUILD_native_mixed/INSTALL/lib -L/root/kiwix-build/./BUILD_native_mixed/INSTALL/lib/x86_64-linux-gnu -I/root/kiwix-build/./BUILD_native_mixed/INSTALL/include -I/root/kiwix-build/./BUILD_native_static/INSTALL/include -Wl,--as-needed -Wl,--no-undefined -pthread -Wl,--start-group /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libkiwix.a /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libzim.a /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/liblzma.a /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libzstd.a /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libicui18n.a /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libicuuc.a /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libicudata.a /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libpugixml.a /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libcurl.a /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libmicrohttpd.a /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libxapian.a -Wl,--end-group
/usr/bin/ld: /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libxapian.a(compression_stream.o): in function `CompressionStream::~CompressionStream()':
(.text+0xe): undefined reference to `deflateEnd'
/usr/bin/ld: (.text+0x2f): undefined reference to `inflateEnd'
/usr/bin/ld: /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libxapian.a(compression_stream.o): in function `CompressionStream::decompress_chunk(char const*, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&)':
(.text+0xe1): undefined reference to `inflate'
/usr/bin/ld: /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libxapian.a(compression_stream.o): in function `CompressionStream::lazy_alloc_deflate_zstream()':
(.text+0x23b): undefined reference to `deflateReset'
/usr/bin/ld: (.text+0x2af): undefined reference to `deflateInit2_'
/usr/bin/ld: /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libxapian.a(compression_stream.o): in function `CompressionStream::compress(char const*, unsigned long*)':
(.text+0x484): undefined reference to `deflate'
/usr/bin/ld: /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libxapian.a(compression_stream.o): in function `CompressionStream::lazy_alloc_inflate_zstream()':
(.text+0x50b): undefined reference to `inflateReset'
/usr/bin/ld: (.text+0x574): undefined reference to `inflateInit2_'
/usr/bin/ld: /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libxapian.a(multimatch.o): in function `MultiMatch::get_mset(unsigned int, unsigned int, unsigned int, Xapian::MSet&, Xapian::Weight::Internal&, Xapian::MatchDecider const*, Xapian::KeyMaker const*)':
(.text+0x1d35): undefined reference to `timer_delete'
/usr/bin/ld: (.text+0x1e6c): undefined reference to `timer_create'
/usr/bin/ld: (.text+0x1edf): undefined reference to `timer_settime'
/usr/bin/ld: (.text+0x1ef4): undefined reference to `timer_delete'
/usr/bin/ld: /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libxapian.a(multimatch.o): in function `MultiMatch::get_mset(unsigned int, unsigned int, unsigned int, Xapian::MSet&, Xapian::Weight::Internal&, Xapian::MatchDecider const*, Xapian::KeyMaker const*) [clone .cold]':
(.text.unlikely+0x20e): undefined reference to `timer_delete'
/usr/bin/ld: /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libxapian.a(uuids.o): in function `Uuid::generate()':
(.text+0xc): undefined reference to `uuid_generate'
/usr/bin/ld: /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libkiwix.a(server_response.cpp.o): in function `kiwix::(anonymous namespace)::compress(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&)':
/root/kiwix-build/BUILD_native_static/libkiwix/../../SOURCE/libkiwix/src/server/response.cpp:82: undefined reference to `deflateInit2_'
/usr/bin/ld: /root/kiwix-build/BUILD_native_static/libkiwix/../../SOURCE/libkiwix/src/server/response.cpp:96: undefined reference to `deflate'
/usr/bin/ld: /root/kiwix-build/BUILD_native_static/libkiwix/../../SOURCE/libkiwix/src/server/response.cpp:106: undefined reference to `deflateEnd'
/usr/bin/ld: /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libcurl.a(libcurl_la-version.o): in function `Curl_version_init':
(.text+0x3c): undefined reference to `zlibVersion'
/usr/bin/ld: (.text+0x6e): undefined reference to `zlibVersion'
/usr/bin/ld: /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libcurl.a(libcurl_la-version.o): in function `curl_version':
(.text+0xdb): undefined reference to `zlibVersion'
/usr/bin/ld: /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libcurl.a(libcurl_la-version.o): in function `curl_version_info':
(.text+0x12d): undefined reference to `zlibVersion'
/usr/bin/ld: /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libcurl.a(libcurl_la-content_encoding.o): in function `deflate_init_writer':
(.text+0x1e4): undefined reference to `inflateInit_'
/usr/bin/ld: /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libcurl.a(libcurl_la-content_encoding.o): in function `deflate_close_writer':
(.text+0x2a5): undefined reference to `inflateEnd'
/usr/bin/ld: /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libcurl.a(libcurl_la-content_encoding.o): in function `gzip_close_writer':
(.text+0x335): undefined reference to `inflateEnd'
/usr/bin/ld: /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libcurl.a(libcurl_la-content_encoding.o): in function `gzip_init_writer':
(.text+0x3ba): undefined reference to `zlibVersion'
/usr/bin/ld: (.text+0x3ed): undefined reference to `inflateInit2_'
/usr/bin/ld: (.text+0x411): undefined reference to `inflateInit2_'
/usr/bin/ld: /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libcurl.a(libcurl_la-content_encoding.o): in function `inflate_stream':
(.text+0x4ee): undefined reference to `inflate'
/usr/bin/ld: (.text+0x671): undefined reference to `inflateEnd'
/usr/bin/ld: (.text+0x6d4): undefined reference to `inflateEnd'
/usr/bin/ld: (.text+0x704): undefined reference to `inflateEnd'
/usr/bin/ld: (.text+0x71d): undefined reference to `inflateInit2_'
/usr/bin/ld: (.text+0x7b9): undefined reference to `inflateEnd'
/usr/bin/ld: /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libcurl.a(libcurl_la-content_encoding.o): in function `deflate_unencode_write':
(.text+0x896): undefined reference to `inflateEnd'
/usr/bin/ld: (.text+0x8ca): undefined reference to `inflateEnd'
/usr/bin/ld: /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libcurl.a(libcurl_la-content_encoding.o): in function `gzip_unencode_write':
(.text+0x9e0): undefined reference to `inflateEnd'
/usr/bin/ld: (.text+0xaa7): undefined reference to `inflateEnd'
/usr/bin/ld: /root/kiwix-build/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libcurl.a(libcurl_la-content_encoding.o):(.text+0xb04): more undefined references to `inflateEnd' follow
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
Stopping build due to errors
root@b824dc21825c:~/kiwix-build#
native_mixed
is for library only.
native_static
or native_dyn
should work.
My bad ; works 👍
I'm sorry but it's becoming a pain to test. I can't compile on macOS and neither can I on a
debian:bullseye
containerOriginally posted by @rgaudin in https://github.com/kiwix/libkiwix/issues/940#issuecomment-1518730634