librdkafka icon indicating copy to clipboard operation
librdkafka copied to clipboard

WITH_CURL off still tries to include curl.h

Open jerry-123123 opened this issue 3 months ago • 2 comments

#cmakedefine01 (in config.h.in) sets WITH_OAUTHBEARER_OIDC as either 0 (when disabled) or 1 (when enabled). The problem is that #ifdef checks if a symbol is defined, not its value. So #ifdef WITH_OAUTHBEARER_OIDC is always true causing curl.h to always be required.

jerry-123123 avatar Sep 25 '25 19:09 jerry-123123

There is an MR that fixes this already: https://github.com/confluentinc/librdkafka/pull/5182

jerry-123123 avatar Sep 25 '25 19:09 jerry-123123

I would love to get this fixed as well. Either via #5182 or #5136.

tillrohrmann avatar Nov 18 '25 14:11 tillrohrmann