Blizzard / Blizzard/node-rdkafka

undefined symbol error while running unit tests using `make test` command

Open
#967 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2.2k
Forks
403
PR merge metrics
No merged PRs in 30d

Description

**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 node-rdkafka@2.13.0`
- `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**

Contributor guide

Open the contributing guide

Research direction

Start with the supplied reproduction commands and the `make test` target, then inspect `build/Release/node-librdkafka.node` and the Linux gcc 6.4.1 environment. Compare the native build with the working macOS setup; done means identifying the undefined-symbol cause and making the unit tests complete successfully on Linux.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, kafka, nodejs
Domain
backend, build-system, testing
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.