node-rdkafka
node-rdkafka copied to clipboard
undefined symbol error while running unit tests using `make test` command
Environment Information
- OS [e.g. Mac, Arch, Windows 10]: linux 4.4.14
- Node Version [e.g. 8.2.1]: v16.16.0
- NPM Version [e.g. 5.4.2]: 8.11.0
- C++ Toolchain [e.g. Visual Studio, llvm, g++]: gcc (GCC) 6.4.1 20170727 (Red Hat 6.4.1-1)
- node-rdkafka version [e.g. 2.3.3]: 2.13.0
Steps to Reproduce
-
npm install [email protected] -
cd node_modules/node-rdkafka -
git submodule init -
git submodule update -
make test
And we received the following error, saying: /bin/node: symbol lookup error: /u/username/src/project/node_modules/node-rdkafka/build/Release/node-librdkafka.node: undefined symbol: _ZN7RdKafka11version_strB5cxx11Ev make: *** [test] Error 127
However, the unit test is able to run and pass on the mac with the exactly same project.
Any help would be greatly appreciated.
node-rdkafka Configuration Settings None
Additional context