Skip to content

libzim.so.9.4.0 is missing zim::validate symbol in archive on openzim.org #1016

@kelvinhammond

Description

@kelvinhammond

Release on openzim is missing zim::validate
Url: https://download.openzim.org/release/libzim/libzim_linux-x86_64-9.4.0.tar.gz

When trying to build node-libzim (this is issue is related to this projects release on openzim) I get the following error.

node: symbol lookup error: ./node-libzim/build/Debug/zim_binding.node: undefined symbol: _ZN3zim8validateERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6bitsetILm7EE

I've validated the library I get is the one from openzim
I tried it with another binary and it still fails.

./test-validate: symbol lookup error: ./test-validate: undefined symbol: _ZN3zim8validateERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6bitsetILm7EE

Code to reproduce

#include <iostream>
#include <string>
#include "zim/archive.h"

int main() {
  std::string path = "./test-read.zim";
  zim::IntegrityCheckList checksToRun;
  checksToRun.set(static_cast<size_t>(zim::IntegrityCheck::CHECKSUM));
  std::cout << "Running checks: " << zim::validate(path, checksToRun)
            << std::endl;
  return 0;
}

Compile with g++ -o test-validate -I./download/include/ ./download/lib/x86_64-linux-gnu/libzim.so.9.4.0 ./test.cc

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions