From 0bc9eced282454fb165c03d1108d1aeb160f1da1 Mon Sep 17 00:00:00 2001 From: ankitat Date: Fri, 15 May 2026 10:43:56 +0530 Subject: [PATCH] fix(kafka_protocol_adaptor): correct RDKAFKA_INC for apt-installed librdkafka-dev apt install librdkafka-dev (per the adaptor README) lands rdkafka.h at /usr/include/librdkafka/, not /usr/local/include/librdkafka/. Revert RDKAFKA_INC to /usr/include/librdkafka to match the public DS 9.0 Makefile and unbreak `sudo make` in the kafka adaptor directory. Ported from internal GitLab mono-repo MR !92 (commit f4ad051), validated on x86 with librdkafka-dev 2.3.0-1build2 from Ubuntu noble. Co-Authored-By: Claude Opus 4.7 (1M context) Committed-By: ankitat's Claude Agent Codex Review: Approved: --- src/utils/nvds_msgapi/kafka_protocol_adaptor/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/nvds_msgapi/kafka_protocol_adaptor/Makefile b/src/utils/nvds_msgapi/kafka_protocol_adaptor/Makefile index 6bcd2e07..87e96386 100644 --- a/src/utils/nvds_msgapi/kafka_protocol_adaptor/Makefile +++ b/src/utils/nvds_msgapi/kafka_protocol_adaptor/Makefile @@ -34,7 +34,7 @@ LIBS:= $(shell pkg-config --libs $(PKGS)) LDFLAGS:= -shared DS_INC:= ../../../../includes -RDKAFKA_INC:=/usr/local/include/librdkafka +RDKAFKA_INC:=/usr/include/librdkafka INC_PATHS:= -I $(DS_INC) -I $(RDKAFKA_INC) -I/opt/tritonclient/include CFLAGS+= $(INC_PATHS)