Skip to content

Commit 433c7fc

Browse files
committed
Error out build on outdated librdkafka versions (confluentinc#230)
1 parent dcc0a91 commit 433c7fc

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

confluent_kafka/src/confluent_kafka.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,14 @@
2020

2121
#include <librdkafka/rdkafka.h>
2222

23+
#if RD_KAFKA_VERSION < 0x0090100
24+
#ifdef __APPLE__
25+
#error "confluent-kafka-python requires librdkafka v0.9.1 or later. Install the latest version of librdkafka from Homebrew by running `brew install librdkafka` or `brew upgrade librdkafka`"
26+
#else
27+
#error "confluent-kafka-python requires librdkafka v0.9.1 or later. Install the latest version of librdkafka from the Confluent repositories, see http://docs.confluent.io/current/installation.html"
28+
#endif
29+
#endif
30+
2331
#if PY_MAJOR_VERSION >= 3
2432
#define PY3
2533
#include <bytesobject.h>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy