-
Notifications
You must be signed in to change notification settings - Fork 397
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fails to build librdkafka 2.5 in the latest node-rdkafka 3.1.0 #1087
Comments
Is that only happening on Mac? I tried updating the test runner to macos 14 in #1088 but the build & test passed. |
Same error here on Ubuntu 22.04, node 20.14.0, node-gyp 10.2.0 rdkafka_op.h:696:25: error: unknown type name ‘rd_kafka_broker_t’ |
Looks like the error comes directly from librdkafka (I opened an issue). |
librdkafka maintainer confirmed v2.5.0 isn't working without OpenSSL configured, and apparently they can't release a fix now (confluentinc/librdkafka#4793 (comment)) @GaryWilber you could maybe revert librdkafka to v2.4.0 as a temporary fix, WDYT? Otherwise, what would be the other options? |
Hello! Looks like the fix on librdkafka was merged (confluentinc/librdkafka@d72576a). Probably using the version 2.5.0-2 would fix the compilation problems. |
Hello! Any updates on this issue? I encounter this as well. |
I use this method to install without a problem: brew install openssl
CPPFLAGS="-I/usr/local/opt/openssl/include" LDFLAGS="-L/usr/local/opt/openssl/lib" npm i node-rdkafka Mac OSX 14.6.1 |
this is not working on my Mac :(
this is not working on my Mac, the same error :( |
@ricochenft what's your openssl version? Also cannot seem to install dependencies, node-rdkafka 3.1.1 / Node 20.18 / OSX 15 |
Environment Information
More specifically:
checking for C compiler from CC env... failed
checking for gcc (by command)... ok
checking for C++ compiler from CXX env... failed
checking for C++ compiler (g++)... ok
Steps to Reproduce
npm install [email protected]
I get the following:
3.0.1 installs just fine so I believe it has to do with the latest librdkafka update
The text was updated successfully, but these errors were encountered: