Information: Forum is in read-only mode
For details and other support options see https://www.adiscon.com/news/support-forum-set-to-read-only-mode/

Compiling omkafka on ARM

Everything related with getting rsyslog up and running (but not beyond that point ;))

Moderator: alorbach

Google Ads


Compiling omkafka on ARM

Postby pfworks » Tue Jun 06, 2017 2:15 am

I am getting the following compilation error:
omkafka.c: In function 'getPartition':
omkafka.c:165:16: error: 'instanceData' has no member named 'mutCurrPartition'
&pData->mutCurrPartition) % pData->nPartitions
^


It seems that in all of the source, including external libs, mutCurrPartition is only mentioned once, here at line 165. I can compile this under x86_64. Where does this definition come from? What am I missing here?
pfworks
New
 
Posts: 3
Joined: Tue Jun 06, 2017 2:12 am

Urgent Question?

  • Pulling out your Hair?
  • Wasting Time and Money?
  • Deadline Approaching?

Re: Compiling omkafka on ARM

Postby pfworks » Tue Jun 06, 2017 10:33 pm

The following patch allows me to compile. I haven't tried running it yet, as I don't have the config files done, or a backend to send to yet.

diff -Naur rsyslog-8.27.0-orig/plugins/omkafka/Makefile.am rsyslog-8.27.0-new/plugins/omkafka/Makefile.am
--- rsyslog-8.27.0-orig/plugins/omkafka/Makefile.am 2017-04-28 00:04:53.000000000 -0700
+++ rsyslog-8.27.0-new/plugins/omkafka/Makefile.am 2017-06-05 16:42:34.989789000 -0700
@@ -1,7 +1,7 @@
pkglib_LTLIBRARIES = omkafka.la

omkafka_la_SOURCES = omkafka.c
-omkafka_la_CPPFLAGS = $(RSRT_CFLAGS) $(PTHREADS_CFLAGS)
+omkafka_la_CPPFLAGS = $(RSRT_CFLAGS) $(PTHREADS_CFLAGS) $(LIBRDKAFKA_CFLAGS)
omkafka_la_LDFLAGS = -module -avoid-version $(LIBRDKAFKA_LIBS)
omkafka_la_LIBADD =

diff -Naur rsyslog-8.27.0-orig/plugins/omkafka/Makefile.in rsyslog-8.27.0-new/plugins/omkafka/Makefile.in
--- rsyslog-8.27.0-orig/plugins/omkafka/Makefile.in 2017-05-15 02:42:06.000000000 -0700
+++ rsyslog-8.27.0-new/plugins/omkafka/Makefile.in 2017-06-05 16:42:55.650644000 -0700
@@ -414,7 +414,7 @@
top_srcdir = @top_srcdir@
pkglib_LTLIBRARIES = omkafka.la
omkafka_la_SOURCES = omkafka.c
-omkafka_la_CPPFLAGS = $(RSRT_CFLAGS) $(PTHREADS_CFLAGS)
+omkafka_la_CPPFLAGS = $(RSRT_CFLAGS) $(PTHREADS_CFLAGS) $(LIBRDKAFKA_CFLAGS)
omkafka_la_LDFLAGS = -module -avoid-version $(LIBRDKAFKA_LIBS)
omkafka_la_LIBADD =
EXTRA_DIST =
diff -Naur rsyslog-8.27.0-orig/plugins/omkafka/omkafka.c rsyslog-8.27.0-new/plugins/omkafka/omkafka.c
--- rsyslog-8.27.0-orig/plugins/omkafka/omkafka.c 2017-05-15 02:41:19.000000000 -0700
+++ rsyslog-8.27.0-new/plugins/omkafka/omkafka.c 2017-06-06 14:19:56.244167000 -0700
@@ -113,6 +113,7 @@
sbool autoPartition;
int fixedPartition;
int nPartitions;
+ uint32_t mutCurrPartition;
uint32_t currPartition;
int nConfParams;
struct kafka_params *confParams;
pfworks
New
 
Posts: 3
Joined: Tue Jun 06, 2017 2:12 am

Google Ads



Return to Installation

Who is online

Users browsing this forum: No registered users and 0 guests

cron