Comments (6)
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.
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.
Which version of kiwix-tools are you using ?
We have switch to cpp17 so we shouldn't have a [abi:cxx11]
.
from kiwix-tools.
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.
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.
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)
- Improve initial landing page - format of tiles HOT 1
- Improve initial landing page - layout of tiles HOT 3
- [Regression]Search and Auto Suggestion Broken for Chinese in 3.6.0 Release HOT 3
- kiwix-serve: start even when one ZIM is damaged HOT 13
- GUI webserver interface development HOT 2
- wrong pictures in askubuntu.com_en_all_2023-11 HOT 3
- ZIM name vs Book name confusion in documentation
- Release 3.7.0
- lcl host until zimit 2.0 upgrade HOT 1
- Unable to read PDF files from Kiwix-serve HOT 3
- [Regression]Search and Auto Suggestion Broken for Chinese in 3.7.0 Release HOT 1
- Kiwix Server suggestion can not really handle longer titles
- No stemming for language 'zh' HOT 3
- Fulltextsearch seems broken under certain conditions HOT 1
- GLIBC Not found, Docker kiwix-serve HOT 9
- Handling of `target="_blank"` links in kiwix-serve is not working properly inside the viewer
- `mailto:` links are blocked on Chrome HOT 15
- ZIM homepage is not properly redirected HOT 2
- Unable to open PDF files on Chrome HOT 5
- Simple HTTPS workaround
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kiwix-tools.