Giter Club home page Giter Club logo

Comments (6)

mgautierfr avatar mgautierfr commented on August 15, 2024

Which version of libzim do you using ?
How do you compile kiwix-tools ?


openzim/libzim#836 is a ABI breakage, not a API. So recompiling should be ok.

from kiwix-tools.

juuz0 avatar juuz0 commented on August 15, 2024

Which version of libzim do you using ?

latest main branch

How do you compile kiwix-tools ?

the usual README way.

meson . build
sudo ninja -C build install

Full error:

[3/7] Linking target src/searcher/kiwix-search
FAILED: src/searcher/kiwix-search 
c++  -o src/searcher/kiwix-search src/searcher/kiwix-search.p/kiwix-search.cpp.o -Wl,--as-needed -Wl,--no-undefined -Wl,-rpath,/usr/local/lib/x86_64-linux-gnu -Wl,-rpath-link,/usr/local/lib/x86_64-linux-gnu -pthread -Wl,--start-group /usr/local/lib/x86_64-linux-gnu/libkiwix.so /usr/local/lib/x86_64-linux-gnu/libzim.so /usr/lib/x86_64-linux-gnu/liblzma.so /usr/lib/x86_64-linux-gnu/libzstd.so /usr/lib/x86_64-linux-gnu/libicui18n.so /usr/lib/x86_64-linux-gnu/libicuuc.so /usr/lib/x86_64-linux-gnu/libicudata.so /usr/lib/x86_64-linux-gnu/libpugixml.so /usr/lib/x86_64-linux-gnu/libcurl.so /usr/lib/x86_64-linux-gnu/libmicrohttpd.so /usr/lib/x86_64-linux-gnu/libxapian.so -Wl,--end-group
/usr/bin/ld: /usr/local/lib/x86_64-linux-gnu/libkiwix.so: undefined reference to `zim::Item::getPath[abi:cxx11]() const'
collect2: error: ld returned 1 exit status
[5/7] Linking target src/manager/kiwix-manage
FAILED: src/manager/kiwix-manage 
c++  -o src/manager/kiwix-manage src/manager/kiwix-manage.p/kiwix-manage.cpp.o -Wl,--as-needed -Wl,--no-undefined -Wl,-rpath,/usr/local/lib/x86_64-linux-gnu -Wl,-rpath-link,/usr/local/lib/x86_64-linux-gnu -pthread -Wl,--start-group /usr/local/lib/x86_64-linux-gnu/libkiwix.so /usr/local/lib/x86_64-linux-gnu/libzim.so /usr/lib/x86_64-linux-gnu/liblzma.so /usr/lib/x86_64-linux-gnu/libzstd.so /usr/lib/x86_64-linux-gnu/libicui18n.so /usr/lib/x86_64-linux-gnu/libicuuc.so /usr/lib/x86_64-linux-gnu/libicudata.so /usr/lib/x86_64-linux-gnu/libpugixml.so /usr/lib/x86_64-linux-gnu/libcurl.so /usr/lib/x86_64-linux-gnu/libmicrohttpd.so /usr/lib/x86_64-linux-gnu/libxapian.so -Wl,--end-group
/usr/bin/ld: /usr/local/lib/x86_64-linux-gnu/libkiwix.so: undefined reference to `zim::Item::getPath[abi:cxx11]() const'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

I suspect that commit/PR because openzim/libzim@2a810ac compiles without any issues.

I'm on Ubuntu 23.10
gcc 13.2.0

from kiwix-tools.

mgautierfr avatar mgautierfr commented on August 15, 2024

Which version of kiwix-tools are you using ?
We have switch to cpp17 so we shouldn't have a [abi:cxx11].

from kiwix-tools.

juuz0 avatar juuz0 commented on August 15, 2024

kiwix-tools is also the latest/main branch, i was compiling it on a new installation. Apologies for the late reply. Let me know if I need to provide other info.

from kiwix-tools.

mgautierfr avatar mgautierfr commented on August 15, 2024

c++ -o src/searcher/kiwix-search src/searcher/kiwix-search.p/kiwix-search.cpp.o -Wl,--as-needed -Wl,--no-undefined -Wl,-rpath,/usr/local/lib/x86_64-linux-gnu -Wl,-rpath-link,/usr/local/lib/x86_64-linux-gnu -pthread -Wl,--start-group /usr/local/lib/x86_64-linux-gnu/libkiwix.so /usr/local/lib/x86_64-linux-gnu/libzim.so /usr/lib/x86_64-linux-gnu/liblzma.so /usr/lib/x86_64-linux-gnu/libzstd.so /usr/lib/x86_64-linux-gnu/libicui18n.so /usr/lib/x86_64-linux-gnu/libicuuc.so /usr/lib/x86_64-linux-gnu/libicudata.so /usr/lib/x86_64-linux-gnu/libpugixml.so /usr/lib/x86_64-linux-gnu/libcurl.so /usr/lib/x86_64-linux-gnu/libmicrohttpd.so /usr/lib/x86_64-linux-gnu/libxapian.so -Wl,--end-group
/usr/bin/ld: /usr/local/lib/x86_64-linux-gnu/libkiwix.so: undefined reference to `zim::Item::getPathabi:cxx11 const'
collect2: error: ld returned 1 exit status

You are linking with a "installed" libkiwix, not the one currently being compiled (and tested here).

You probably have a already (old version) libkiwix installed.

from kiwix-tools.

kelson42 avatar kelson42 commented on August 15, 2024

Yes, compilation/execution works with ubuntu 22.04. This is typically a sympton of linking against the wrong version of the library.

from kiwix-tools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.