kiwix / kiwix-build

Kiwix & openZIM build engine
GNU General Public License v3.0
83 stars 43 forks source link

Update xapian version #599

Closed mgautierfr closed 1 year ago

mgautierfr commented 1 year ago

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 container

[4/102] ccache c++ -Itest/library.p -Iinclude -I../../SOURCE/libkiwix/include -I/kiwix-build/./BUILD_native_static/INSTALL/include -I/kiwix-build/BUILD_native_static/INSTALL/include -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -std=c++11 -O0 -g -DCURL_STATICLIB -pthread -isystem../../SOURCE/libkiwix/subprojects/googletest-release-1.8.1/googletest -isystemsubprojects/googletest-release-1.8.1/googletest -isystem../../SOURCE/libkiwix/subprojects/googletest-release-1.8.1/googletest/include -MD -MQ test/library.p/.._subprojects_googletest-release-1.8.1_googletest_src_gtest_main.cc.o -MF test/library.p/.._subprojects_googletest-release-1.8.1_googletest_src_gtest_main.cc.o.d -o test/library.p/.._subprojects_googletest-release-1.8.1_googletest_src_gtest_main.cc.o -c ../../SOURCE/libkiwix/subprojects/googletest-release-1.8.1/googletest/src/gtest_main.cc
[5/102] ccache c++ -Itest/regex.p -Iinclude -I../../SOURCE/libkiwix/include -I/kiwix-build/./BUILD_native_static/INSTALL/include -I/kiwix-build/BUILD_native_static/INSTALL/include -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -std=c++11 -O0 -g -DCURL_STATICLIB -pthread -isystem../../SOURCE/libkiwix/subprojects/googletest-release-1.8.1/googletest -isystemsubprojects/googletest-release-1.8.1/googletest -isystem../../SOURCE/libkiwix/subprojects/googletest-release-1.8.1/googletest/include -MD -MQ test/regex.p/regex.cpp.o -MF test/regex.p/regex.cpp.o.d -o test/regex.p/regex.cpp.o -c ../../SOURCE/libkiwix/test/regex.cpp
[6/102] ccache c++ -Isrc/libkiwix.a.p -Isrc -I../../SOURCE/libkiwix/src -Iinclude -I../../SOURCE/libkiwix/include -Istatic -I/kiwix-build/./BUILD_native_static/INSTALL/include -I/kiwix-build/BUILD_native_static/INSTALL/include -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -std=c++11 -O0 -g -fPIC -DCURL_STATICLIB -pthread -MD -MQ src/libkiwix.a.p/meson-generated_.._.._static_libkiwix-resources.cpp.o -MF src/libkiwix.a.p/meson-generated_.._.._static_libkiwix-resources.cpp.o.d -o src/libkiwix.a.p/meson-generated_.._.._static_libkiwix-resources.cpp.o -c static/libkiwix-resources.cpp
[7/102] ccache c++ -Isrc/libkiwix.a.p -Isrc -I../../SOURCE/libkiwix/src -Iinclude -I../../SOURCE/libkiwix/include -Istatic -I/kiwix-build/./BUILD_native_static/INSTALL/include -I/kiwix-build/BUILD_native_static/INSTALL/include -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -std=c++11 -O0 -g -fPIC -DCURL_STATICLIB -pthread -MD -MQ src/libkiwix.a.p/meson-generated_.._.._static_libkiwix-i18n-resources.cpp.o -MF src/libkiwix.a.p/meson-generated_.._.._static_libkiwix-i18n-resources.cpp.o.d -o src/libkiwix.a.p/meson-generated_.._.._static_libkiwix-i18n-resources.cpp.o -c static/libkiwix-i18n-resources.cpp
[8/102] ccache c++ -Isrc/libkiwix.a.p -Isrc -I../../SOURCE/libkiwix/src -Iinclude -I../../SOURCE/libkiwix/include -Istatic -I/kiwix-build/./BUILD_native_static/INSTALL/include -I/kiwix-build/BUILD_native_static/INSTALL/include -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -std=c++11 -O0 -g -fPIC -DCURL_STATICLIB -pthread -MD -MQ src/libkiwix.a.p/bookmark.cpp.o -MF src/libkiwix.a.p/bookmark.cpp.o.d -o src/libkiwix.a.p/bookmark.cpp.o -c ../../SOURCE/libkiwix/src/bookmark.cpp
[9/102] ccache c++ -Itest/library.p -Iinclude -I../../SOURCE/libkiwix/include -I/kiwix-build/./BUILD_native_static/INSTALL/include -I/kiwix-build/BUILD_native_static/INSTALL/include -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -std=c++11 -O0 -g -DCURL_STATICLIB -pthread -isystem../../SOURCE/libkiwix/subprojects/googletest-release-1.8.1/googletest -isystemsubprojects/googletest-release-1.8.1/googletest -isystem../../SOURCE/libkiwix/subprojects/googletest-release-1.8.1/googletest/include -MD -MQ test/library.p/library.cpp.o -MF test/library.p/library.cpp.o.d -o test/library.p/library.cpp.o -c ../../SOURCE/libkiwix/test/library.cpp
[10/102] ccache c++ -Isrc/libkiwix.a.p -Isrc -I../../SOURCE/libkiwix/src -Iinclude -I../../SOURCE/libkiwix/include -Istatic -I/kiwix-build/./BUILD_native_static/INSTALL/include -I/kiwix-build/BUILD_native_static/INSTALL/include -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -std=c++11 -O0 -g -fPIC -DCURL_STATICLIB -pthread -MD -MQ src/libkiwix.a.p/book.cpp.o -MF src/libkiwix.a.p/book.cpp.o.d -o src/libkiwix.a.p/book.cpp.o -c ../../SOURCE/libkiwix/src/book.cpp
[11/102] ccache c++ -Isrc/libkiwix.a.p -Isrc -I../../SOURCE/libkiwix/src -Iinclude -I../../SOURCE/libkiwix/include -Istatic -I/kiwix-build/./BUILD_native_static/INSTALL/include -I/kiwix-build/BUILD_native_static/INSTALL/include -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -std=c++11 -O0 -g -fPIC -DCURL_STATICLIB -pthread -MD -MQ src/libkiwix.a.p/manager.cpp.o -MF src/libkiwix.a.p/manager.cpp.o.d -o src/libkiwix.a.p/manager.cpp.o -c ../../SOURCE/libkiwix/src/manager.cpp
[12/102] ccache c++ -Itest/library.p -Iinclude -I../../SOURCE/libkiwix/include -I/kiwix-build/./BUILD_native_static/INSTALL/include -I/kiwix-build/BUILD_native_static/INSTALL/include -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -std=c++11 -O0 -g -DCURL_STATICLIB -pthread -isystem../../SOURCE/libkiwix/subprojects/googletest-release-1.8.1/googletest -isystemsubprojects/googletest-release-1.8.1/googletest -isystem../../SOURCE/libkiwix/subprojects/googletest-release-1.8.1/googletest/include -MD -MQ test/library.p/.._subprojects_googletest-release-1.8.1_googletest_src_gtest-all.cc.o -MF test/library.p/.._subprojects_googletest-release-1.8.1_googletest_src_gtest-all.cc.o.d -o test/library.p/.._subprojects_googletest-release-1.8.1_googletest_src_gtest-all.cc.o -c ../../SOURCE/libkiwix/subprojects/googletest-release-1.8.1/googletest/src/gtest-all.cc
[13/102] ccache c++ -Isrc/libkiwix.a.p -Isrc -I../../SOURCE/libkiwix/src -Iinclude -I../../SOURCE/libkiwix/include -Istatic -I/kiwix-build/./BUILD_native_static/INSTALL/include -I/kiwix-build/BUILD_native_static/INSTALL/include -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -std=c++11 -O0 -g -fPIC -DCURL_STATICLIB -pthread -MD -MQ src/libkiwix.a.p/libxml_dumper.cpp.o -MF src/libkiwix.a.p/libxml_dumper.cpp.o.d -o src/libkiwix.a.p/libxml_dumper.cpp.o -c ../../SOURCE/libkiwix/src/libxml_dumper.cpp
[14/102] ccache c++ -Isrc/libkiwix.a.p -Isrc -I../../SOURCE/libkiwix/src -Iinclude -I../../SOURCE/libkiwix/include -Istatic -I/kiwix-build/./BUILD_native_static/INSTALL/include -I/kiwix-build/BUILD_native_static/INSTALL/include -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -std=c++11 -O0 -g -fPIC -DCURL_STATICLIB -pthread -MD -MQ src/libkiwix.a.p/opds_dumper.cpp.o -MF src/libkiwix.a.p/opds_dumper.cpp.o.d -o src/libkiwix.a.p/opds_dumper.cpp.o -c ../../SOURCE/libkiwix/src/opds_dumper.cpp
[15/102] ccache c++ -Isrc/libkiwix.a.p -Isrc -I../../SOURCE/libkiwix/src -Iinclude -I../../SOURCE/libkiwix/include -Istatic -I/kiwix-build/./BUILD_native_static/INSTALL/include -I/kiwix-build/BUILD_native_static/INSTALL/include -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -std=c++11 -O0 -g -fPIC -DCURL_STATICLIB -pthread -MD -MQ src/libkiwix.a.p/downloader.cpp.o -MF src/libkiwix.a.p/downloader.cpp.o.d -o src/libkiwix.a.p/downloader.cpp.o -c ../../SOURCE/libkiwix/src/downloader.cpp
[16/102] ccache c++ -Isrc/libkiwix.a.p -Isrc -I../../SOURCE/libkiwix/src -Iinclude -I../../SOURCE/libkiwix/include -Istatic -I/kiwix-build/./BUILD_native_static/INSTALL/include -I/kiwix-build/BUILD_native_static/INSTALL/include -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -std=c++11 -O0 -g -fPIC -DCURL_STATICLIB -pthread -MD -MQ src/libkiwix.a.p/library_dumper.cpp.o -MF src/libkiwix.a.p/library_dumper.cpp.o.d -o src/libkiwix.a.p/library_dumper.cpp.o -c ../../SOURCE/libkiwix/src/library_dumper.cpp
[17/102] ccache c++ -Isrc/libkiwix.a.p -Isrc -I../../SOURCE/libkiwix/src -Iinclude -I../../SOURCE/libkiwix/include -Istatic -I/kiwix-build/./BUILD_native_static/INSTALL/include -I/kiwix-build/BUILD_native_static/INSTALL/include -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -std=c++11 -O0 -g -fPIC -DCURL_STATICLIB -pthread -MD -MQ src/libkiwix.a.p/html_dumper.cpp.o -MF src/libkiwix.a.p/html_dumper.cpp.o.d -o src/libkiwix.a.p/html_dumper.cpp.o -c ../../SOURCE/libkiwix/src/html_dumper.cpp
[18/102] ccache c++ -Isrc/libkiwix.a.p -Isrc -I../../SOURCE/libkiwix/src -Iinclude -I../../SOURCE/libkiwix/include -Istatic -I/kiwix-build/./BUILD_native_static/INSTALL/include -I/kiwix-build/BUILD_native_static/INSTALL/include -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -std=c++11 -O0 -g -fPIC -DCURL_STATICLIB -pthread -MD -MQ src/libkiwix.a.p/subprocess.cpp.o -MF src/libkiwix.a.p/subprocess.cpp.o.d -o src/libkiwix.a.p/subprocess.cpp.o -c ../../SOURCE/libkiwix/src/subprocess.cpp
[19/102] ccache c++ -Isrc/libkiwix.a.p -Isrc -I../../SOURCE/libkiwix/src -Iinclude -I../../SOURCE/libkiwix/include -Istatic -I/kiwix-build/./BUILD_native_static/INSTALL/include -I/kiwix-build/BUILD_native_static/INSTALL/include -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -std=c++11 -O0 -g -fPIC -DCURL_STATICLIB -pthread -MD -MQ src/libkiwix.a.p/server.cpp.o -MF src/libkiwix.a.p/server.cpp.o.d -o src/libkiwix.a.p/server.cpp.o -c ../../SOURCE/libkiwix/src/server.cpp
[20/102] ccache c++ -Isrc/libkiwix.a.p -Isrc -I../../SOURCE/libkiwix/src -Iinclude -I../../SOURCE/libkiwix/include -Istatic -I/kiwix-build/./BUILD_native_static/INSTALL/include -I/kiwix-build/BUILD_native_static/INSTALL/include -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -std=c++11 -O0 -g -fPIC -DCURL_STATICLIB -pthread -MD -MQ src/libkiwix.a.p/tools_base64.cpp.o -MF src/libkiwix.a.p/tools_base64.cpp.o.d -o src/libkiwix.a.p/tools_base64.cpp.o -c ../../SOURCE/libkiwix/src/tools/base64.cpp
[21/102] ccache c++ -Isrc/libkiwix.a.p -Isrc -I../../SOURCE/libkiwix/src -Iinclude -I../../SOURCE/libkiwix/include -Istatic -I/kiwix-build/./BUILD_native_static/INSTALL/include -I/kiwix-build/BUILD_native_static/INSTALL/include -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -std=c++11 -O0 -g -fPIC -DCURL_STATICLIB -pthread -MD -MQ src/libkiwix.a.p/aria2.cpp.o -MF src/libkiwix.a.p/aria2.cpp.o.d -o src/libkiwix.a.p/aria2.cpp.o -c ../../SOURCE/libkiwix/src/aria2.cpp
[22/102] ccache c++ -Isrc/libkiwix.a.p -Isrc -I../../SOURCE/libkiwix/src -Iinclude -I../../SOURCE/libkiwix/include -Istatic -I/kiwix-build/./BUILD_native_static/INSTALL/include -I/kiwix-build/BUILD_native_static/INSTALL/include -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -std=c++11 -O0 -g -fPIC -DCURL_STATICLIB -pthread -MD -MQ src/libkiwix.a.p/library.cpp.o -MF src/libkiwix.a.p/library.cpp.o.d -o src/libkiwix.a.p/library.cpp.o -c ../../SOURCE/libkiwix/src/library.cpp
FAILED: src/libkiwix.a.p/library.cpp.o
ccache c++ -Isrc/libkiwix.a.p -Isrc -I../../SOURCE/libkiwix/src -Iinclude -I../../SOURCE/libkiwix/include -Istatic -I/kiwix-build/./BUILD_native_static/INSTALL/include -I/kiwix-build/BUILD_native_static/INSTALL/include -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -std=c++11 -O0 -g -fPIC -DCURL_STATICLIB -pthread -MD -MQ src/libkiwix.a.p/library.cpp.o -MF src/libkiwix.a.p/library.cpp.o.d -o src/libkiwix.a.p/library.cpp.o -c ../../SOURCE/libkiwix/src/library.cpp
In file included from /kiwix-build/./BUILD_native_static/INSTALL/include/xapian.h:80,
                 from ../../SOURCE/libkiwix/src/library.cpp:37:
/kiwix-build/./BUILD_native_static/INSTALL/include/xapian/queryparser.h: In member function ‘void Xapian::QueryParser::add_valuerangeprocessor(Xapian::ValueRangeProcessor*)’:
/kiwix-build/./BUILD_native_static/INSTALL/include/xapian/queryparser.h:1266:26: error: ‘void Xapian::QueryParser::add_valuerangeprocessor(Xapian::ValueRangeProcessor*)’ is deprecated [-Werror=deprecated-declarations]
 1266 |  add_rangeprocessor((new ShimRangeProcessor(vrproc))->release());
      |                          ^~~~~~~~~~~~~~~~~~
In file included from /kiwix-build/./BUILD_native_static/INSTALL/include/xapian/types.h:28,
                 from /kiwix-build/./BUILD_native_static/INSTALL/include/xapian.h:47,
                 from ../../SOURCE/libkiwix/src/library.cpp:37:
/kiwix-build/./BUILD_native_static/INSTALL/include/xapian/queryparser.h:1246:28: note: declared here
 1246 |     XAPIAN_DEPRECATED(void add_valuerangeprocessor(Xapian::ValueRangeProcessor * vrproc)) {
      |                            ^~~~~~~~~~~~~~~~~~~~~~~
/kiwix-build/./BUILD_native_static/INSTALL/include/xapian/deprecated.h:50:32: note: in definition of macro ‘XAPIAN_DEPRECATED’
   50 | #  define XAPIAN_DEPRECATED(D) D __attribute__((__deprecated__))
      |                                ^
cc1plus: all warnings being treated as errors
[23/102] ccache c++ -Isrc/libkiwix.a.p -Isrc -I../../SOURCE/libkiwix/src -Iinclude -I../../SOURCE/libkiwix/include -Istatic -I/kiwix-build/./BUILD_native_static/INSTALL/include -I/kiwix-build/BUILD_native_static/INSTALL/include -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -std=c++11 -O0 -g -fPIC -DCURL_STATICLIB -pthread -MD -MQ src/libkiwix.a.p/tools_regexTools.cpp.o -MF src/libkiwix.a.p/tools_regexTools.cpp.o.d -o src/libkiwix.a.p/tools_regexTools.cpp.o -c ../../SOURCE/libkiwix/src/tools/regexTools.cpp
[24/102] ccache c++ -Isrc/libkiwix.a.p -Isrc -I../../SOURCE/libkiwix/src -Iinclude -I../../SOURCE/libkiwix/include -Istatic -I/kiwix-build/./BUILD_native_static/INSTALL/include -I/kiwix-build/BUILD_native_static/INSTALL/include -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -std=c++11 -O0 -g -fPIC -DCURL_STATICLIB -pthread -MD -MQ src/libkiwix.a.p/tools_pathTools.cpp.o -MF src/libkiwix.a.p/tools_pathTools.cpp.o.d -o src/libkiwix.a.p/tools_pathTools.cpp.o -c ../../SOURCE/libkiwix/src/tools/pathTools.cpp
[25/102] ccache c++ -Isrc/libkiwix.a.p -Isrc -I../../SOURCE/libkiwix/src -Iinclude -I../../SOURCE/libkiwix/include -Istatic -I/kiwix-build/./BUILD_native_static/INSTALL/include -I/kiwix-build/BUILD_native_static/INSTALL/include -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -std=c++11 -O0 -g -fPIC -DCURL_STATICLIB -pthread -MD -MQ src/libkiwix.a.p/tools_stringTools.cpp.o -MF src/libkiwix.a.p/tools_stringTools.cpp.o.d -o src/libkiwix.a.p/tools_stringTools.cpp.o -c ../../SOURCE/libkiwix/src/tools/stringTools.cpp
[26/102] ccache c++ -Isrc/libkiwix.a.p -Isrc -I../../SOURCE/libkiwix/src -Iinclude -I../../SOURCE/libkiwix/include -Istatic -I/kiwix-build/./BUILD_native_static/INSTALL/include -I/kiwix-build/BUILD_native_static/INSTALL/include -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -std=c++11 -O0 -g -fPIC -DCURL_STATICLIB -pthread -MD -MQ src/libkiwix.a.p/search_renderer.cpp.o -MF src/libkiwix.a.p/search_renderer.cpp.o.d -o src/libkiwix.a.p/search_renderer.cpp.o -c ../../SOURCE/libkiwix/src/search_renderer.cpp
ninja: build stopped: subcommand failed.

Originally posted by @rgaudin in https://github.com/kiwix/libkiwix/issues/940#issuecomment-1518730634

mgautierfr commented 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

kelson42 commented 1 year ago

@mgautierfr so lets upgrade xapian, should be straight.

rgaudin commented 1 year ago

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#
mgautierfr commented 1 year ago

native_mixed is for library only. native_static or native_dyn should work.

rgaudin commented 1 year ago

My bad ; works 👍