librdkafka icon indicating copy to clipboard operation
librdkafka copied to clipboard

librdkafka v2.11.0 can not build without curl

Open calvin2021y opened this issue 5 months ago • 3 comments

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>

calvin2021y avatar Jul 04 '25 07:07 calvin2021y

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?

emasab avatar Jul 04 '25 13:07 emasab

Thanks for the quick fix.

I use Debian and try build without curl. I skip the system curl include path.

calvin2021y avatar Jul 05 '25 04:07 calvin2021y

I would love to get this fixed, if possible.

tillrohrmann avatar Nov 18 '25 14:11 tillrohrmann