[Bug 293465] sysutils/rsyslog8: does not build with KAFKA option

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 26 Feb 2026 12:59:00 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=293465

            Bug ID: 293465
           Summary: sysutils/rsyslog8: does not build with KAFKA option
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: matthew@FreeBSD.org
          Reporter: girgen@FreeBSD.org
          Assignee: matthew@FreeBSD.org
             Flags: maintainer-feedback?(matthew@FreeBSD.org)

When building with KAFKA option turned on, it fails:

strict-aliasing -I/usr/local/include/libfastjson  -W -Wall -Wformat-security
-Wshadow -Wcast-align -Wpointer-arith -Wmissing-format-attribute
-Werror=implicit-function-declaration -g -pthread -I/usr/local/include  -O2
-pipe  -I/usr/local/include -I/usr/local/include -fstack-protector-strong
-fno-strict-aliasing  -W -Wall -Wformat-security -Wshadow -Wcast-align
-Wpointer-arith -Wmissing-format-attribute -g -MT imkafka_la-imkafka.lo -MD -MP
-MF .deps/imkafka_la-imkafka.Tpo -c -o imkafka_la-imkafka.lo `test -f
'imkafka.c' || echo './'`imkafka.c
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../runtime
-I../.. -I../../grammar -O2 -pipe -I/usr/local/include -I/usr/local/include
-fstack-protector-strong -fno-strict-aliasing -I/usr/local/include/libfastjson
-W -Wall -Wformat-security -Wshadow -Wcast-align -Wpointer-arith
-Wmissing-format-attribute -Werror=implicit-function-declaration -g -pthread
-I/usr/local/include -O2 -pipe -I/usr/local/include -I/usr/local/include
-fstack-protector-strong -fno-strict-aliasing -W -Wall -Wformat-security
-Wshadow -Wcast-align -Wpointer-arith -Wmissing-format-attribute -g -MT
imkafka_la-imkafka.lo -MD -MP -MF .deps/imkafka_la-imkafka.Tpo -c imkafka.c 
-fPIC -DPIC -o .libs/imkafka_la-imkafka.o
In file included from imkafka.c:42:
/usr/local/include/librdkafka/rdkafka.h:8404:1: warning: 'const' type qualifier
on return type has no effect [-Wignored-qualifiers]
 8404 | const int rd_kafka_TopicPartitionInfo_partition(
      | ^~~~~
In file included from imkafka.c:54:
In file included from ../../runtime/ruleset.h:28:
In file included from ../../runtime/rsconf.h:28:
../../runtime/lookup.h:126:1: error: unknown type name 'uint'
  126 | uint lookupPendingReloadCount(void);
      | ^
In file included from imkafka.c:59:
../../runtime/datetime.h:58:82: error: unknown type name 'uint'
   58 |     int (*formatUnixTimeFromTime_t)(time_t time, const char *format,
char *pBuf, uint pBufMax);
      |                                                                        
         ^
imkafka.c:373:16: error: call to undeclared function 'timegm'; ISO C99 and
later do not support implicit function declarations
[-Werror,-Wimplicit-function-declaration]
  373 |         return timegm(&tm);
      |                ^
imkafka.c:373:16: note: did you mean 'time'?
/usr/include/time.h:129:8: note: 'time' declared here
  129 | time_t time(time_t *);
      |        ^
1 warning and 3 errors generated.
*** [imkafka_la-imkafka.lo] Error code 1

make[2]: stopped making "all" in
/wrkdirs/usr/ports/sysutils/rsyslog8/work/rsyslog-8.2602.0/plugins/imkafka
make[2]: 1 error

make[2]: stopped making "all" in
/wrkdirs/usr/ports/sysutils/rsyslog8/work/rsyslog-8.2602.0/plugins/imkafka

make[1]: stopped making "all-recursive" in
/wrkdirs/usr/ports/sysutils/rsyslog8/work/rsyslog-8.2602.0

make: stopped making "all" in
/wrkdirs/usr/ports/sysutils/rsyslog8/work/rsyslog-8.2602.0
===> Compilation failed unexpectedly.

-- 
You are receiving this mail because:
You are the assignee for the bug.