librdkafka
librdkafka copied to clipboard
librdkafka v2.11.0 can not build without curl
cmake with -DWITH_CURL=OFF
from file: ./generated/config.h
#define WITH_OAUTHBEARER_OIDC 0
from src/rdkafka_conf.c
#ifdef WITH_OAUTHBEARER_OIDC
#include <curl/curl.h>
#endif
get error:
src/rdkafka_conf.c:60:10: fatal error: 'curl/curl.h' file not found
60 | #include <curl/curl.h>
Hi @calvin2021y thanks for the report! I fixed it in #5136 because it's incorrect and added some more tests with cmake but I couldn't reproduce because cmake installs libcurl on Linux. Which platform are you using? Are you excluding those headers from the import paths?
Thanks for the quick fix.
I use Debian and try build without curl. I skip the system curl include path.
I would love to get this fixed, if possible.