All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package/librdkafka: fix build with LibreSSL
@ 2026-11-24 17:24 Giulio Benetti
  2026-11-24 22:44 ` Thomas Petazzoni via buildroot
  0 siblings, 1 reply; 2+ messages in thread
From: Giulio Benetti @ 2026-11-24 17:24 UTC (permalink / raw)
  To: buildroot; +Cc: Thomas Devoogdt, Giulio Benetti

librdkafka doesn't support LibreSSL, since it uses OpenSSL functions that
LibreSSL doesn't provide, so the build fails with:

src/rdrand.c:81:23: error: implicit declaration of function 'RAND_priv_bytes'; did you mean 'RAND_pseudo_bytes'? [-Wimplicit-function-declaration]
src/rdkafka_ssl.c:1269:9: error: implicit declaration of function 'SSL_certs_clear' [-Wimplicit-function-declaration]
src/rdkafka_ssl.c:1679:21: error: implicit declaration of function 'SSL_CTX_use_cert_and_key'; did you mean 'SSL_CTX_use_certificate'? [-Wimplicit-function-declaration]
src/rdkafka_ssl.c:1773:9: error: implicit declaration of function 'SSL_CTX_set_cert_cb'; did you mean 'SSL_CTX_set_verify'? [-Wimplicit-function-declaration]

So let's enable SSL support only when BR2_PACKAGE_LIBOPENSSL is selected.

Fixes:
https://autobuild.buildroot.org/results/fb7/fb71058572ec270c46ff5de542c186c73bc06ceb/

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
---
 package/librdkafka/librdkafka.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/librdkafka/librdkafka.mk b/package/librdkafka/librdkafka.mk
index 636765b3f5..a68f5e9523 100644
--- a/package/librdkafka/librdkafka.mk
+++ b/package/librdkafka/librdkafka.mk
@@ -41,7 +41,7 @@ else
 LIBRDKAFKA_CONF_OPTS += -DWITH_ZSTD=OFF
 endif
 
-ifeq ($(BR2_PACKAGE_OPENSSL),y)
+ifeq ($(BR2_PACKAGE_LIBOPENSSL),y)
 LIBRDKAFKA_CONF_OPTS += -DWITH_SSL=ON
 LIBRDKAFKA_DEPENDENCIES += openssl
 else
-- 
2.47.3

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-11-24 22:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-24 17:24 [Buildroot] [PATCH] package/librdkafka: fix build with LibreSSL Giulio Benetti
2026-11-24 22:44 ` Thomas Petazzoni via buildroot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.