Skip to content
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

Cannot install on Mac: error: unknown type name 'rd_kafka_broker_t' #1093

Closed
volodymyrwalkme opened this issue Sep 16, 2024 · 0 comments
Closed

Comments

@volodymyrwalkme
Copy link

I am trying to install node-rdkafka 3.1.0 on my Mac. And I get an error:

npm error ./rdkafka_op.h:696:25: error: unknown type name 'rd_kafka_broker_t'
npm error                         rd_kafka_broker_t *rkb;
npm error                         ^
npm error rdkafka.c:5188:47: warning: cast from 'unsigned char *' to 'uint64_t *' (aka 'unsigned long long *') increases required alignment from 1 to 8 [-Wcast-align]
npm error         uint64_t *rand_values_uint64        = (uint64_t *)rand_values_bytes;
npm error                                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error 1 warning and 1 error generated.
npm error make[2]: *** [rdkafka.o] Error 1
npm error make[1]: *** [libs] Error 2
npm error make: *** [11a9e3388a67e1ca5c31c1d8da49cb6d2714eb41.intermediate] Error 2
npm error gyp ERR! build error 
npm error gyp ERR! stack Error: `make` failed with exit code: 2
npm error gyp ERR! stack at ChildProcess.<anonymous> (/opt/homebrew/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:216:23)
npm error gyp ERR! System Darwin 23.6.0
npm error gyp ERR! command "/usr/local/bin/node" "/opt/homebrew/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"

what's wrong and how can I fix this?

ElfoLiNk added a commit to ElfoLiNk/node-rdkafka that referenced this issue Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant