silviucpp / erlkaf

Erlang kafka driver based on librdkafka
MIT License
83 stars 41 forks source link

Compile failure on M1 MacBook Pro #57

Closed reidgraviton closed 1 year ago

reidgraviton commented 1 year ago

MacOS Monterey 12.6.1

I'm trying to use erlkaf in an Elixir project. When I go to compile however it fails, and there are a number of "interesting" entries in the output pointing at why:

Creating static library librdkafka.a ... ld: warning: ignoring file /opt/homebrew/opt/openssl@1.1/lib/libssl.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64 ld: warning: ignoring file /opt/homebrew/opt/openssl@1.1/lib/libcrypto.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64 ld: warning: ignoring file /opt/homebrew/Cellar/lz4/1.9.4/lib/liblz4.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64 cp librdkafka.a librdkafka-dbg.a Undefined symbols for architecture x86_64: ...

And then further down:

WARNING: librdkafka-static.a: No static libraries available/enabled for inclusion in self-contained static library librdkafka-static.a: this library will be identical to librdkafka.a

And:

WARNING: librdkafka-static.a: The following libraries were not available as static libraries and need to be linked dynamically: -llz4 -lm -lcurl -lsasl2 -lssl -lcrypto -lz -ldl -lpthread

And finally:

ld: symbol(s) not found for architecture x86_64 cp librdkafka-static.a librdkafka-static-dbg.a clang: error: linker command failed with exit code 1 (use -v to see invocation) make[2]: [librdkafka.1.dylib] Error 1 make[2]: Waiting for unfinished jobs.... make[1]: [libs] Error 2 error with make make: [get_deps] Error 1 ===> Hook for compile failed!

When I look at the configuration that's generated, indeed I see ARCH x86_64 and I've been unable to determine why it's not set to arm64 as expected. A coworker has a similar setup as mine and his config is set correctly.

Some info:

m1-mbp:payment-processor $ brew info librdkafka ==> librdkafka: stable 1.9.2 (bottled), HEAD Apache Kafka C/C++ library https://github.com/edenhill/librdkafka /opt/homebrew/Cellar/librdkafka/1.9.2 (38 files, 7.6MB) * Poured from bottle on 2023-01-11 at 15:31:59 From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/librdkafka.rb License: BSD-2-Clause ==> Dependencies Build: pkg-config ✔, python@3.11 ✔ Required: lz4 ✔, lzlib ✔, openssl@1.1 ✔, zstd ✔ ==> Options --HEAD Install HEAD version

m1-mbp:payment-processor $ openssl version LibreSSL 2.8.3

I admit that I am a bit out of my element here, however I have spent hours digging through GitHub issues, blog posts, StackOverflow, etc. trying to figure this out and I am out of ideas. I am happy to provide any more info that I can that might be helpful. Thank you

silviucpp commented 1 year ago

The problem is related to the fact that your system has the cpu based on ARM. I don't have a machine with ARM and no idea how to test and fix the compilation error.

I have MacBook Pro 13.1 (ventura) but mine it's from 2019 so based on x86.

silviucpp commented 1 year ago

Can you please post the entire build log ?

Silviu

reidgraviton commented 1 year ago

Thanks for the quick reply Silviu!

reids-m1-mbp:payment-processor $ mix deps.compile erlkaf
repo=https://github.com/edenhill/librdkafka.git rev=9b72ca3aa6c49f8f57eea02f70aadb1453d3ba1f branch=master
~/Projects/x/services/payment-processor/deps/erlkaf/_build/deps ~/Projects/x/services/payment-processor/deps/erlkaf
Cloning into 'librdkafka'...
~/Projects/x/services/payment-processor/deps/erlkaf/_build/deps/librdkafka ~/Projects/x/services/payment-processor/deps/erlkaf/_build/deps ~/Projects/x/services/payment-processor/deps/erlkaf
Note: switching to '9b72ca3aa6c49f8f57eea02f70aadb1453d3ba1f'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at 9b72ca3a Update changelog for 1.9.2
Running `brew update --auto-update`...
==> Auto-updated Homebrew!
Updated 2 taps (homebrew/core and homebrew/cask).
==> New Formulae
aws-sam-cli
cdebug
gokey
grayskull
==> New Casks
oka-unarchiver

You have 7 outdated formulae and 1 outdated cask installed.
You can upgrade them with brew upgrade
or list them with brew outdated.

Warning: openssl@1.1 1.1.1s is already installed and up-to-date.
To reinstall 1.1.1s, run:
  brew reinstall openssl@1.1
Warning: lz4 1.9.4 is already installed and up-to-date.
To reinstall 1.9.4, run:
  brew reinstall lz4
Warning: zstd 1.5.2 is already installed and up-to-date.
To reinstall 1.5.2, run:
  brew reinstall zstd
Warning: curl 7.87.0 is already installed and up-to-date.
To reinstall 7.87.0, run:
  brew reinstall curl
checking for OS or distribution... ok (osx)
checking for C compiler from CC env... failed
checking for gcc (by command)... ok
checking for C++ compiler from CXX env... failed
checking for C++ compiler (g++)... ok
checking executable ld... ok
checking executable nm... ok
checking executable objdump... ok
checking executable strip... ok
checking executable libtool... ok
checking executable ranlib... ok
checking for debug symbols compiler flag (-g...)... ok
checking for pkgconfig (by command)... ok
checking for install (by command)... failed
checking for GNU ar... failed (disable)
checking for PIC (by compile)... ok
checking for GNU-compatible linker options... failed
checking for OSX linker options... ok
checking for GNU linker-script ld flag... failed
checking for Solaris linker-script ld flag... failed (ignore)
checking for __atomic_32 (by compile)... ok
checking for __atomic_64 (by compile)... ok
checking for socket (by compile)... ok
parsing version '0x010902ff'... ok (1.9.2)
checking for librt (by pkg-config)... failed
checking for librt (by compile)... failed
checking for libpthread (by pkg-config)... failed
checking for libpthread (by compile)... ok
checking for c11threads (by pkg-config)... failed
checking for c11threads (by compile)... failed (disable)
checking for libdl (by pkg-config)... failed
checking for libdl (by compile)... ok
checking for zlib (by pkg-config)... ok
checking for libcrypto (by pkg-config)... ok
checking for libssl (by pkg-config)... ok
checking for libsasl2 (by pkg-config)... failed
checking for libsasl2 (by compile)... ok
checking for libzstd (by pkg-config)... failed
checking for libzstd (by compile)... failed (disable)
checking for libcurl (by pkg-config)... ok
checking for libm (by pkg-config)... failed
checking for libm (by compile)... ok
checking for liblz4 (by pkg-config)... ok
checking for syslog (by compile)... ok
checking for rapidjson (by compile)... failed (disable)
checking for crc32chw (by compile)... ok
checking for regex (by compile)... ok
checking for rand_r (by compile)... ok
checking for strndup (by compile)... ok
checking for strlcpy (by compile)... ok
checking for strerror_r (by compile)... ok
checking for strcasestr (by compile)... ok
checking for pthread_setname_gnu (by compile)... failed (disable)
checking for pthread_setname_darwin (by compile)... ok
checking for nm (by env NM)... ok (cached)
checking for getrusage (by compile)... ok
Generated Makefile.config
Generated config.h

Configuration summary:
  prefix                   /usr/local
  MKL_DISTRO               osx
  SOLIB_EXT                .dylib
  ARCH                     x86_64
  CPU                      generic
  GEN_PKG_CONFIG           y
  MKL_APP_NAME             librdkafka
  MKL_APP_DESC_ONELINE     The Apache Kafka C/C++ library
  CC                       gcc
  CXX                      g++
  LD                       ld
  NM                       nm
  OBJDUMP                  objdump
  STRIP                    strip
  LIBTOOL                  libtool
  RANLIB                   ranlib
  CPPFLAGS                 -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align
  LDFLAGS                  -L/opt/homebrew/opt/openssl@1.1/lib
  PKG_CONFIG               pkg-config
  INSTALL                  /usr/bin/install
  HAS_GNU_AR               n
  LIB_LDFLAGS              -shared -dynamiclib -Wl,-install_name,$(DESTDIR)$(libdir)/$(LIBFILENAME)
  RDKAFKA_VERSION_STR      1.9.2
  MKL_APP_VERSION          1.9.2
  LIBS                     -L/opt/homebrew/Cellar/lz4/1.9.4/lib -llz4 -lm -lcurl -lsasl2 -L/opt/homebrew/Cellar/openssl@1.1/1.1.1s/lib -lssl -L/opt/homebrew/Cellar/openssl@1.1/1.1.1s/lib -lcrypto -lz -ldl -lpthread
  MKL_PKGCONFIG_LIBS_PRIVATE -lm -lsasl2 -ldl -lpthread
  MKL_PKGCONFIG_REQUIRES_PRIVATE zlib libcrypto libssl libcurl liblz4
  CFLAGS                   -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include  -I/opt/homebrew/Cellar/lz4/1.9.4/include
  MKL_PKGCONFIG_REQUIRES   zlib libcrypto libssl libcurl liblz4
  CXXFLAGS                 -Wno-non-virtual-dtor
  SYMDUMPER                $(NM) -g
  MKL_DYNAMIC_LIBS         -llz4 -lm -lcurl -lsasl2 -lssl -lcrypto -lz -ldl -lpthread
  exec_prefix              /usr/local
  bindir                   /usr/local/bin
  sbindir                  /usr/local/sbin
  libexecdir               /usr/local/libexec
  datadir                  /usr/local/share
  sysconfdir               /usr/local/etc
  sharedstatedir           /usr/local/com
  localstatedir            /usr/local/var
  runstatedir              /usr/local/var/run
  libdir                   /usr/local/lib
  includedir               /usr/local/include
  infodir                  /usr/local/info
  mandir                   /usr/local/man
  BUILT_WITH               GCC GXX PKGCONFIG OSXLD LIBDL PLUGINS ZLIB SSL SASL_CYRUS CURL HDRHISTOGRAM LZ4_EXT SYSLOG SNAPPY SOCKEM SASL_SCRAM SASL_OAUTHBEARER OAUTHBEARER_OIDC CRC32C_HW
Generated config.cache

Now type 'make' to build
Using ctags to generate TAGS
/Library/Developer/CommandLineTools/usr/bin/ctags: illegal option -- e
usage: ctags [-BFadtuwvx] [-f tagsfile] file ...
cmp: TAGS: No such file or directory
mv: rename TAGS.tmp to TAGS: No such file or directory
gcc -MD -MP -I/opt/homebrew/opt/openssl@1.1/include/ -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"v1.9.2\"" -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include  -I/opt/homebrew/Cellar/lz4/1.9.4/include -c rdkafka.c -o rdkafka.o
gcc -MD -MP -I/opt/homebrew/opt/openssl@1.1/include/ -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"v1.9.2\"" -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include  -I/opt/homebrew/Cellar/lz4/1.9.4/include -c rdkafka_broker.c -o rdkafka_broker.o
gcc -MD -MP -I/opt/homebrew/opt/openssl@1.1/include/ -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"v1.9.2\"" -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include  -I/opt/homebrew/Cellar/lz4/1.9.4/include -c rdkafka_msg.c -o rdkafka_msg.o
gcc -MD -MP -I/opt/homebrew/opt/openssl@1.1/include/ -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"v1.9.2\"" -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include  -I/opt/homebrew/Cellar/lz4/1.9.4/include -c rdkafka_topic.c -o rdkafka_topic.o
gcc -MD -MP -I/opt/homebrew/opt/openssl@1.1/include/ -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"v1.9.2\"" -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include  -I/opt/homebrew/Cellar/lz4/1.9.4/include -c rdkafka_conf.c -o rdkafka_conf.o
gcc -MD -MP -I/opt/homebrew/opt/openssl@1.1/include/ -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"v1.9.2\"" -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include  -I/opt/homebrew/Cellar/lz4/1.9.4/include -c rdkafka_timer.c -o rdkafka_timer.o
gcc -MD -MP -I/opt/homebrew/opt/openssl@1.1/include/ -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"v1.9.2\"" -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include  -I/opt/homebrew/Cellar/lz4/1.9.4/include -c rdkafka_offset.c -o rdkafka_offset.o
gcc -MD -MP -I/opt/homebrew/opt/openssl@1.1/include/ -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"v1.9.2\"" -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include  -I/opt/homebrew/Cellar/lz4/1.9.4/include -c rdkafka_transport.c -o rdkafka_transport.o
gcc -MD -MP -I/opt/homebrew/opt/openssl@1.1/include/ -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"v1.9.2\"" -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include  -I/opt/homebrew/Cellar/lz4/1.9.4/include -c rdkafka_buf.c -o rdkafka_buf.o
gcc -MD -MP -I/opt/homebrew/opt/openssl@1.1/include/ -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"v1.9.2\"" -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include  -I/opt/homebrew/Cellar/lz4/1.9.4/include -c rdkafka_queue.c -o rdkafka_queue.o
gcc -MD -MP -I/opt/homebrew/opt/openssl@1.1/include/ -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"v1.9.2\"" -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include  -I/opt/homebrew/Cellar/lz4/1.9.4/include -c rdkafka_op.c -o rdkafka_op.o
gcc -MD -MP -I/opt/homebrew/opt/openssl@1.1/include/ -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"v1.9.2\"" -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include  -I/opt/homebrew/Cellar/lz4/1.9.4/include -c rdkafka_request.c -o rdkafka_request.o
gcc -MD -MP -I/opt/homebrew/opt/openssl@1.1/include/ -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"v1.9.2\"" -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include  -I/opt/homebrew/Cellar/lz4/1.9.4/include -c rdkafka_cgrp.c -o rdkafka_cgrp.o
gcc -MD -MP -I/opt/homebrew/opt/openssl@1.1/include/ -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"v1.9.2\"" -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include  -I/opt/homebrew/Cellar/lz4/1.9.4/include -c rdkafka_pattern.c -o rdkafka_pattern.o
gcc -MD -MP -I/opt/homebrew/opt/openssl@1.1/include/ -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"v1.9.2\"" -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include  -I/opt/homebrew/Cellar/lz4/1.9.4/include -c rdkafka_partition.c -o rdkafka_partition.o
gcc -MD -MP -I/opt/homebrew/opt/openssl@1.1/include/ -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"v1.9.2\"" -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include  -I/opt/homebrew/Cellar/lz4/1.9.4/include -c rdkafka_subscription.c -o rdkafka_subscription.o
gcc -MD -MP -I/opt/homebrew/opt/openssl@1.1/include/ -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"v1.9.2\"" -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include  -I/opt/homebrew/Cellar/lz4/1.9.4/include -c rdkafka_assignment.c -o rdkafka_assignment.o
gcc -MD -MP -I/opt/homebrew/opt/openssl@1.1/include/ -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"v1.9.2\"" -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include  -I/opt/homebrew/Cellar/lz4/1.9.4/include -c rdkafka_assignor.c -o rdkafka_assignor.o
gcc -MD -MP -I/opt/homebrew/opt/openssl@1.1/include/ -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"v1.9.2\"" -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include  -I/opt/homebrew/Cellar/lz4/1.9.4/include -c rdkafka_range_assignor.c -o rdkafka_range_assignor.o
gcc -MD -MP -I/opt/homebrew/opt/openssl@1.1/include/ -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"v1.9.2\"" -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include  -I/opt/homebrew/Cellar/lz4/1.9.4/include -c rdkafka_roundrobin_assignor.c -o rdkafka_roundrobin_assignor.o
gcc -MD -MP -I/opt/homebrew/opt/openssl@1.1/include/ -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"v1.9.2\"" -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include  -I/opt/homebrew/Cellar/lz4/1.9.4/include -c rdkafka_sticky_assignor.c -o rdkafka_sticky_assignor.o
gcc -MD -MP -I/opt/homebrew/opt/openssl@1.1/include/ -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"v1.9.2\"" -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include  -I/opt/homebrew/Cellar/lz4/1.9.4/include -c rdkafka_feature.c -o rdkafka_feature.o
gcc -MD -MP -I/opt/homebrew/opt/openssl@1.1/include/ -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"v1.9.2\"" -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include  -I/opt/homebrew/Cellar/lz4/1.9.4/include -c rdcrc32.c -o rdcrc32.o
gcc -MD -MP -I/opt/homebrew/opt/openssl@1.1/include/ -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"v1.9.2\"" -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include  -I/opt/homebrew/Cellar/lz4/1.9.4/include -c crc32c.c -o crc32c.o
gcc -MD -MP -I/opt/homebrew/opt/openssl@1.1/include/ -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"v1.9.2\"" -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include  -I/opt/homebrew/Cellar/lz4/1.9.4/include -c rdmurmur2.c -o rdmurmur2.o
gcc -MD -MP -I/opt/homebrew/opt/openssl@1.1/include/ -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"v1.9.2\"" -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include  -I/opt/homebrew/Cellar/lz4/1.9.4/include -c rdfnv1a.c -o rdfnv1a.o
gcc -MD -MP -I/opt/homebrew/opt/openssl@1.1/include/ -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"v1.9.2\"" -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include  -I/opt/homebrew/Cellar/lz4/1.9.4/include -c cJSON.c -o cJSON.o
gcc -MD -MP -I/opt/homebrew/opt/openssl@1.1/include/ -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"v1.9.2\"" -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include  -I/opt/homebrew/Cellar/lz4/1.9.4/include -c rdaddr.c -o rdaddr.o
gcc -MD -MP -I/opt/homebrew/opt/openssl@1.1/include/ -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"v1.9.2\"" -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include  -I/opt/homebrew/Cellar/lz4/1.9.4/include -c rdrand.c -o rdrand.o
gcc -MD -MP -I/opt/homebrew/opt/openssl@1.1/include/ -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"v1.9.2\"" -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include  -I/opt/homebrew/Cellar/lz4/1.9.4/include -c rdlist.c -o rdlist.o
gcc -MD -MP -I/opt/homebrew/opt/openssl@1.1/include/ -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"v1.9.2\"" -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include  -I/opt/homebrew/Cellar/lz4/1.9.4/include -c tinycthread.c -o tinycthread.o
gcc -MD -MP -I/opt/homebrew/opt/openssl@1.1/include/ -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"v1.9.2\"" -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include  -I/opt/homebrew/Cellar/lz4/1.9.4/include -c tinycthread_extra.c -o tinycthread_extra.o
gcc -MD -MP -I/opt/homebrew/opt/openssl@1.1/include/ -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"v1.9.2\"" -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include  -I/opt/homebrew/Cellar/lz4/1.9.4/include -c rdlog.c -o rdlog.o
gcc -MD -MP -I/opt/homebrew/opt/openssl@1.1/include/ -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"v1.9.2\"" -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include  -I/opt/homebrew/Cellar/lz4/1.9.4/include -c rdstring.c -o rdstring.o
gcc -MD -MP -I/opt/homebrew/opt/openssl@1.1/include/ -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"v1.9.2\"" -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include  -I/opt/homebrew/Cellar/lz4/1.9.4/include -c rdkafka_event.c -o rdkafka_event.o
gcc -MD -MP -I/opt/homebrew/opt/openssl@1.1/include/ -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"v1.9.2\"" -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include  -I/opt/homebrew/Cellar/lz4/1.9.4/include -c rdkafka_metadata.c -o rdkafka_metadata.o
gcc -MD -MP -I/opt/homebrew/opt/openssl@1.1/include/ -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"v1.9.2\"" -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include  -I/opt/homebrew/Cellar/lz4/1.9.4/include -c rdregex.c -o rdregex.o
gcc -MD -MP -I/opt/homebrew/opt/openssl@1.1/include/ -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"v1.9.2\"" -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include  -I/opt/homebrew/Cellar/lz4/1.9.4/include -c rdports.c -o rdports.o
gcc -MD -MP -I/opt/homebrew/opt/openssl@1.1/include/ -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"v1.9.2\"" -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include  -I/opt/homebrew/Cellar/lz4/1.9.4/include -c rdkafka_metadata_cache.c -o rdkafka_metadata_cache.o
gcc -MD -MP -I/opt/homebrew/opt/openssl@1.1/include/ -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"v1.9.2\"" -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include  -I/opt/homebrew/Cellar/lz4/1.9.4/include -c rdavl.c -o rdavl.o
gcc -MD -MP -I/opt/homebrew/opt/openssl@1.1/include/ -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"v1.9.2\"" -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include  -I/opt/homebrew/Cellar/lz4/1.9.4/include -c rdkafka_sasl.c -o rdkafka_sasl.o
gcc -MD -MP -I/opt/homebrew/opt/openssl@1.1/include/ -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"v1.9.2\"" -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include  -I/opt/homebrew/Cellar/lz4/1.9.4/include -c rdkafka_sasl_plain.c -o rdkafka_sasl_plain.o
gcc -MD -MP -I/opt/homebrew/opt/openssl@1.1/include/ -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"v1.9.2\"" -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include  -I/opt/homebrew/Cellar/lz4/1.9.4/include -c rdkafka_interceptor.c -o rdkafka_interceptor.o
gcc -MD -MP -I/opt/homebrew/opt/openssl@1.1/include/ -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"v1.9.2\"" -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include  -I/opt/homebrew/Cellar/lz4/1.9.4/include -c rdkafka_msgset_writer.c -o rdkafka_msgset_writer.o
gcc -MD -MP -I/opt/homebrew/opt/openssl@1.1/include/ -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"v1.9.2\"" -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include  -I/opt/homebrew/Cellar/lz4/1.9.4/include -c rdkafka_msgset_reader.c -o rdkafka_msgset_reader.o
gcc -MD -MP -I/opt/homebrew/opt/openssl@1.1/include/ -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"v1.9.2\"" -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include  -I/opt/homebrew/Cellar/lz4/1.9.4/include -c rdkafka_header.c -o rdkafka_header.o
gcc -MD -MP -I/opt/homebrew/opt/openssl@1.1/include/ -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"v1.9.2\"" -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include  -I/opt/homebrew/Cellar/lz4/1.9.4/include -c rdkafka_admin.c -o rdkafka_admin.o
gcc -MD -MP -I/opt/homebrew/opt/openssl@1.1/include/ -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"v1.9.2\"" -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include  -I/opt/homebrew/Cellar/lz4/1.9.4/include -c rdkafka_aux.c -o rdkafka_aux.o
gcc -MD -MP -I/opt/homebrew/opt/openssl@1.1/include/ -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"v1.9.2\"" -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include  -I/opt/homebrew/Cellar/lz4/1.9.4/include -c rdkafka_background.c -o rdkafka_background.o
gcc -MD -MP -I/opt/homebrew/opt/openssl@1.1/include/ -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"v1.9.2\"" -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include  -I/opt/homebrew/Cellar/lz4/1.9.4/include -c rdkafka_idempotence.c -o rdkafka_idempotence.o
gcc -MD -MP -I/opt/homebrew/opt/openssl@1.1/include/ -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"v1.9.2\"" -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include  -I/opt/homebrew/Cellar/lz4/1.9.4/include -c rdkafka_cert.c -o rdkafka_cert.o
gcc -MD -MP -I/opt/homebrew/opt/openssl@1.1/include/ -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"v1.9.2\"" -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include  -I/opt/homebrew/Cellar/lz4/1.9.4/include -c rdkafka_txnmgr.c -o rdkafka_txnmgr.o
gcc -MD -MP -I/opt/homebrew/opt/openssl@1.1/include/ -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"v1.9.2\"" -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include  -I/opt/homebrew/Cellar/lz4/1.9.4/include -c rdkafka_coord.c -o rdkafka_coord.o
gcc -MD -MP -I/opt/homebrew/opt/openssl@1.1/include/ -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"v1.9.2\"" -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include  -I/opt/homebrew/Cellar/lz4/1.9.4/include -c rdvarint.c -o rdvarint.o
gcc -MD -MP -I/opt/homebrew/opt/openssl@1.1/include/ -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"v1.9.2\"" -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include  -I/opt/homebrew/Cellar/lz4/1.9.4/include -c rdbuf.c -o rdbuf.o
gcc -MD -MP -I/opt/homebrew/opt/openssl@1.1/include/ -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"v1.9.2\"" -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include  -I/opt/homebrew/Cellar/lz4/1.9.4/include -c rdmap.c -o rdmap.o
rdbuf.c:908:16: warning: variable 'remains' set but not used [-Wunused-but-set-variable]
        size_t remains = size;
               ^
gcc -MD -MP -I/opt/homebrew/opt/openssl@1.1/include/ -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"v1.9.2\"" -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include  -I/opt/homebrew/Cellar/lz4/1.9.4/include -c rdunittest.c -o rdunittest.o
rdmap.c:482:13: warning: variable 'fails' set but not used [-Wunused-but-set-variable]
        int fails = 0;
            ^
gcc -MD -MP -I/opt/homebrew/opt/openssl@1.1/include/ -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"v1.9.2\"" -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include  -I/opt/homebrew/Cellar/lz4/1.9.4/include -c rdkafka_mock.c -o rdkafka_mock.o
gcc -MD -MP -I/opt/homebrew/opt/openssl@1.1/include/ -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"v1.9.2\"" -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include  -I/opt/homebrew/Cellar/lz4/1.9.4/include -c rdkafka_mock_handlers.c -o rdkafka_mock_handlers.o
gcc -MD -MP -I/opt/homebrew/opt/openssl@1.1/include/ -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"v1.9.2\"" -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include  -I/opt/homebrew/Cellar/lz4/1.9.4/include -c rdkafka_mock_cgrp.c -o rdkafka_mock_cgrp.o
1 warning generated.
gcc -MD -MP -I/opt/homebrew/opt/openssl@1.1/include/ -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"v1.9.2\"" -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include  -I/opt/homebrew/Cellar/lz4/1.9.4/include -c rdkafka_error.c -o rdkafka_error.o
1 warning generated.
gcc -MD -MP -I/opt/homebrew/opt/openssl@1.1/include/ -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"v1.9.2\"" -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include  -I/opt/homebrew/Cellar/lz4/1.9.4/include -c rdkafka_sasl_cyrus.c -o rdkafka_sasl_cyrus.o
gcc -MD -MP -I/opt/homebrew/opt/openssl@1.1/include/ -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"v1.9.2\"" -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include  -I/opt/homebrew/Cellar/lz4/1.9.4/include -c rdkafka_sasl_scram.c -o rdkafka_sasl_scram.o
gcc -MD -MP -I/opt/homebrew/opt/openssl@1.1/include/ -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"v1.9.2\"" -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include  -I/opt/homebrew/Cellar/lz4/1.9.4/include -c rdkafka_sasl_oauthbearer.c -o rdkafka_sasl_oauthbearer.o
gcc -MD -MP -I/opt/homebrew/opt/openssl@1.1/include/ -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"v1.9.2\"" -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include  -I/opt/homebrew/Cellar/lz4/1.9.4/include -c snappy.c -o snappy.o
gcc -MD -MP -I/opt/homebrew/opt/openssl@1.1/include/ -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"v1.9.2\"" -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include  -I/opt/homebrew/Cellar/lz4/1.9.4/include -c rdgz.c -o rdgz.o
gcc -MD -MP -I/opt/homebrew/opt/openssl@1.1/include/ -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"v1.9.2\"" -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include  -I/opt/homebrew/Cellar/lz4/1.9.4/include -c rdhdrhistogram.c -o rdhdrhistogram.o
snappy.c:1440:9: warning: variable 'written' set but not used [-Wunused-but-set-variable]
        size_t written = 0;
               ^
gcc -MD -MP -I/opt/homebrew/opt/openssl@1.1/include/ -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"v1.9.2\"" -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include  -I/opt/homebrew/Cellar/lz4/1.9.4/include -c rdkafka_ssl.c -o rdkafka_ssl.o
gcc -MD -MP -I/opt/homebrew/opt/openssl@1.1/include/ -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"v1.9.2\"" -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include  -I/opt/homebrew/Cellar/lz4/1.9.4/include -c rdhttp.c -o rdhttp.o
gcc -MD -MP -I/opt/homebrew/opt/openssl@1.1/include/ -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"v1.9.2\"" -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include  -I/opt/homebrew/Cellar/lz4/1.9.4/include -c rdkafka_sasl_oauthbearer_oidc.c -o rdkafka_sasl_oauthbearer_oidc.o
1 warning generated.
gcc -MD -MP -I/opt/homebrew/opt/openssl@1.1/include/ -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"v1.9.2\"" -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include  -I/opt/homebrew/Cellar/lz4/1.9.4/include -c rdkafka_lz4.c -o rdkafka_lz4.o
gcc -MD -MP -I/opt/homebrew/opt/openssl@1.1/include/ -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"v1.9.2\"" -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include  -I/opt/homebrew/Cellar/lz4/1.9.4/include -O3 -c rdxxhash.c -o rdxxhash.o
gcc -MD -MP -I/opt/homebrew/opt/openssl@1.1/include/ -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"v1.9.2\"" -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include  -I/opt/homebrew/Cellar/lz4/1.9.4/include -c rddl.c -o rddl.o
gcc -MD -MP -I/opt/homebrew/opt/openssl@1.1/include/ -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/openssl@1.1/include/ -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"v1.9.2\"" -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include -I/opt/homebrew/Cellar/openssl@1.1/1.1.1s/include  -I/opt/homebrew/Cellar/lz4/1.9.4/include -c rdkafka_plugin.c -o rdkafka_plugin.o
Generating pkg-config file rdkafka.pc
Creating shared library librdkafka.1.dylib
gcc -L/opt/homebrew/opt/openssl@1.1/lib -L/opt/homebrew/opt/openssl@1.1/lib -L/opt/homebrew/opt/openssl@1.1/lib -shared -dynamiclib -Wl,-install_name,/usr/local/lib/librdkafka.1.dylib rdkafka.o rdkafka_broker.o rdkafka_msg.o rdkafka_topic.o rdkafka_conf.o rdkafka_timer.o rdkafka_offset.o rdkafka_transport.o rdkafka_buf.o rdkafka_queue.o rdkafka_op.o rdkafka_request.o rdkafka_cgrp.o rdkafka_pattern.o rdkafka_partition.o rdkafka_subscription.o rdkafka_assignment.o rdkafka_assignor.o rdkafka_range_assignor.o rdkafka_roundrobin_assignor.o rdkafka_sticky_assignor.o rdkafka_feature.o rdcrc32.o crc32c.o rdmurmur2.o rdfnv1a.o cJSON.o rdaddr.o rdrand.o rdlist.o tinycthread.o tinycthread_extra.o rdlog.o rdstring.o rdkafka_event.o rdkafka_metadata.o rdregex.o rdports.o rdkafka_metadata_cache.o rdavl.o rdkafka_sasl.o rdkafka_sasl_plain.o rdkafka_interceptor.o rdkafka_msgset_writer.o rdkafka_msgset_reader.o rdkafka_header.o rdkafka_admin.o rdkafka_aux.o rdkafka_background.o rdkafka_idempotence.o rdkafka_cert.o rdkafka_txnmgr.o rdkafka_coord.o rdvarint.o rdbuf.o rdmap.o rdunittest.o rdkafka_mock.o rdkafka_mock_handlers.o rdkafka_mock_cgrp.o rdkafka_error.o rdkafka_sasl_cyrus.o rdkafka_sasl_scram.o rdkafka_sasl_oauthbearer.o snappy.o rdgz.o rdhdrhistogram.o rdkafka_ssl.o rdhttp.o rdkafka_sasl_oauthbearer_oidc.o rdkafka_lz4.o rdxxhash.o rddl.o rdkafka_plugin.o -o librdkafka.1.dylib -L/opt/homebrew/Cellar/lz4/1.9.4/lib -llz4 -lm -lcurl -lsasl2 -L/opt/homebrew/Cellar/openssl@1.1/1.1.1s/lib -lssl -L/opt/homebrew/Cellar/openssl@1.1/1.1.1s/lib -lcrypto -lz -ldl -lpthread
Creating static library librdkafka.a
ar rcs librdkafka.a rdkafka.o rdkafka_broker.o rdkafka_msg.o rdkafka_topic.o rdkafka_conf.o rdkafka_timer.o rdkafka_offset.o rdkafka_transport.o rdkafka_buf.o rdkafka_queue.o rdkafka_op.o rdkafka_request.o rdkafka_cgrp.o rdkafka_pattern.o rdkafka_partition.o rdkafka_subscription.o rdkafka_assignment.o rdkafka_assignor.o rdkafka_range_assignor.o rdkafka_roundrobin_assignor.o rdkafka_sticky_assignor.o rdkafka_feature.o rdcrc32.o crc32c.o rdmurmur2.o rdfnv1a.o cJSON.o rdaddr.o rdrand.o rdlist.o tinycthread.o tinycthread_extra.o rdlog.o rdstring.o rdkafka_event.o rdkafka_metadata.o rdregex.o rdports.o rdkafka_metadata_cache.o rdavl.o rdkafka_sasl.o rdkafka_sasl_plain.o rdkafka_interceptor.o rdkafka_msgset_writer.o rdkafka_msgset_reader.o rdkafka_header.o rdkafka_admin.o rdkafka_aux.o rdkafka_background.o rdkafka_idempotence.o rdkafka_cert.o rdkafka_txnmgr.o rdkafka_coord.o rdvarint.o rdbuf.o rdmap.o rdunittest.o rdkafka_mock.o rdkafka_mock_handlers.o rdkafka_mock_cgrp.o rdkafka_error.o rdkafka_sasl_cyrus.o rdkafka_sasl_scram.o rdkafka_sasl_oauthbearer.o snappy.o rdgz.o rdhdrhistogram.o rdkafka_ssl.o rdhttp.o rdkafka_sasl_oauthbearer_oidc.o rdkafka_lz4.o rdxxhash.o rddl.o rdkafka_plugin.o
ld: warning: ignoring file /opt/homebrew/opt/openssl@1.1/lib/libssl.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
ld: warning: ignoring file /opt/homebrew/opt/openssl@1.1/lib/libcrypto.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
ld: warning: ignoring file /opt/homebrew/Cellar/lz4/1.9.4/lib/liblz4.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
cp librdkafka.a librdkafka-dbg.a
Undefined symbols for architecture x86_64:
  "_BIO_ctrl", referenced from:
      _rd_kafka_conf_set_ssl_cert in rdkafka_cert.o
  "_BIO_free", referenced from:
      _rd_kafka_conf_set_ssl_cert in rdkafka_cert.o
      _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
  "_BIO_new_file", referenced from:
      _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
  "_BIO_new_mem_buf", referenced from:
      _rd_kafka_conf_set_ssl_cert in rdkafka_cert.o
      _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
  "_CRYPTO_free", referenced from:
      _rd_kafka_transport_ssl_cert_verify_cb in rdkafka_ssl.o
  "_ENGINE_by_id", referenced from:
      _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
  "_ENGINE_ctrl_cmd_string", referenced from:
      _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
  "_ENGINE_free", referenced from:
      _rd_kafka_ssl_ctx_term in rdkafka_ssl.o
      _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
  "_ENGINE_init", referenced from:
      _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
  "_ENGINE_load_ssl_client_cert", referenced from:
      _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
  "_ERR_clear_error", referenced from:
      _rd_kafka_conf_set_ssl_cert in rdkafka_cert.o
      _rd_kafka_transport_ssl_send in rdkafka_ssl.o
      _rd_kafka_transport_ssl_recv in rdkafka_ssl.o
      _rd_kafka_transport_ssl_connect in rdkafka_ssl.o
  "_ERR_error_string_n", referenced from:
      _rd_kafka_ssl_error in rdkafka_ssl.o
  "_ERR_func_error_string", referenced from:
      _rd_kafka_ssl_last_error_str in rdkafka_ssl.o
  "_ERR_get_error_line_data", referenced from:
      _rd_kafka_ssl_error in rdkafka_ssl.o
  "_ERR_lib_error_string", referenced from:
      _rd_kafka_ssl_last_error_str in rdkafka_ssl.o
  "_ERR_peek_error", referenced from:
      _rd_kafka_transport_ssl_io_update in rdkafka_ssl.o
  "_ERR_peek_last_error_line_data", referenced from:
      _rd_kafka_ssl_last_error_str in rdkafka_ssl.o
  "_ERR_reason_error_string", referenced from:
      _rd_kafka_ssl_last_error_str in rdkafka_ssl.o
  "_EVP_DecodeBlock", referenced from:
      _rd_kafka_sasl_scram_fsm in rdkafka_sasl_scram.o
      _rd_kafka_oidc_token_refresh_cb in rdkafka_sasl_oauthbearer_oidc.o
  "_EVP_EncodeBlock", referenced from:
      _rd_kafka_sasl_scram_build_client_final_message in rdkafka_sasl_scram.o
      _rd_kafka_oauthbearer_unsecured_token0 in rdkafka_sasl_oauthbearer.o
      _rd_kafka_oidc_token_refresh_cb in rdkafka_sasl_oauthbearer_oidc.o
  "_EVP_PKEY_free", referenced from:
      _rd_kafka_conf_set_ssl_cert in rdkafka_cert.o
      _rd_kafka_cert_destroy in rdkafka_cert.o
      _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
  "_EVP_PKEY_new", referenced from:
      _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
  "_EVP_sha1", referenced from:
      _rd_kafka_sasl_scram_conf_validate in rdkafka_sasl_scram.o
  "_EVP_sha256", referenced from:
      _rd_kafka_sasl_scram_conf_validate in rdkafka_sasl_scram.o
  "_EVP_sha512", referenced from:
      _rd_kafka_sasl_scram_conf_validate in rdkafka_sasl_scram.o
  "_HMAC", referenced from:
      _rd_kafka_sasl_scram_Hi in rdkafka_sasl_scram.o
      _rd_kafka_sasl_scram_HMAC in rdkafka_sasl_scram.o
  "_LZ4F_compressBegin", referenced from:
      _rd_kafka_lz4_compress in rdkafka_lz4.o
  "_LZ4F_compressBound", referenced from:
      _rd_kafka_lz4_compress in rdkafka_lz4.o
  "_LZ4F_compressEnd", referenced from:
      _rd_kafka_lz4_compress in rdkafka_lz4.o
  "_LZ4F_compressUpdate", referenced from:
      _rd_kafka_lz4_compress in rdkafka_lz4.o
  "_LZ4F_createCompressionContext", referenced from:
      _rd_kafka_lz4_compress in rdkafka_lz4.o
  "_LZ4F_createDecompressionContext", referenced from:
      _rd_kafka_lz4_decompress in rdkafka_lz4.o
  "_LZ4F_decompress", referenced from:
      _rd_kafka_lz4_decompress in rdkafka_lz4.o
  "_LZ4F_freeCompressionContext", referenced from:
      _rd_kafka_lz4_compress in rdkafka_lz4.o
  "_LZ4F_freeDecompressionContext", referenced from:
      _rd_kafka_lz4_decompress in rdkafka_lz4.o
  "_LZ4F_getErrorName", referenced from:
      _rd_kafka_lz4_decompress in rdkafka_lz4.o
      _rd_kafka_lz4_compress in rdkafka_lz4.o
  "_LZ4F_getFrameInfo", referenced from:
      _rd_kafka_lz4_decompress in rdkafka_lz4.o
  "_LZ4F_isError", referenced from:
      _rd_kafka_lz4_decompress in rdkafka_lz4.o
      _rd_kafka_lz4_compress in rdkafka_lz4.o
  "_OPENSSL_sk_free", referenced from:
      _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
  "_OPENSSL_sk_new_null", referenced from:
      _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
  "_OPENSSL_sk_num", referenced from:
      _rd_kafka_conf_set_ssl_cert in rdkafka_cert.o
      _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
  "_OPENSSL_sk_pop_free", referenced from:
      _rd_kafka_conf_set_ssl_cert in rdkafka_cert.o
      _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
  "_OPENSSL_sk_push", referenced from:
      _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
  "_OPENSSL_sk_value", referenced from:
      _rd_kafka_conf_set_ssl_cert in rdkafka_cert.o
      _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
  "_OpenSSL_version", referenced from:
      _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
  "_OpenSSL_version_num", referenced from:
      _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
  "_PEM_read_bio_PrivateKey", referenced from:
      _rd_kafka_conf_set_ssl_cert in rdkafka_cert.o
      _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
  "_PEM_read_bio_X509", referenced from:
      _rd_kafka_conf_set_ssl_cert in rdkafka_cert.o
      _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
  "_PKCS12_free", referenced from:
      _rd_kafka_conf_set_ssl_cert in rdkafka_cert.o
      _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
  "_PKCS12_parse", referenced from:
      _rd_kafka_conf_set_ssl_cert in rdkafka_cert.o
      _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
  "_SHA1", referenced from:
      _rd_kafka_sasl_scram_conf_validate in rdkafka_sasl_scram.o
  "_SHA256", referenced from:
      _rd_kafka_sasl_scram_conf_validate in rdkafka_sasl_scram.o
  "_SHA512", referenced from:
      _rd_kafka_sasl_scram_conf_validate in rdkafka_sasl_scram.o
  "_SSL_CTX_check_private_key", referenced from:
      _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
  "_SSL_CTX_ctrl", referenced from:
      _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
  "_SSL_CTX_free", referenced from:
      _rd_kafka_ssl_ctx_term in rdkafka_ssl.o
      _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
  "_SSL_CTX_get_cert_store", referenced from:
      _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
  "_SSL_CTX_load_verify_locations", referenced from:
      _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
  "_SSL_CTX_new", referenced from:
      _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
  "_SSL_CTX_set_cert_store", referenced from:
      _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
  "_SSL_CTX_set_cipher_list", referenced from:
      _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
  "_SSL_CTX_set_default_passwd_cb", referenced from:
      _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
  "_SSL_CTX_set_default_passwd_cb_userdata", referenced from:
      _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
  "_SSL_CTX_set_default_verify_paths", referenced from:
      _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
  "_SSL_CTX_set_options", referenced from:
      _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
  "_SSL_CTX_set_verify", referenced from:
      _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
  "_SSL_CTX_use_PrivateKey", referenced from:
WARNING: librdkafka-static.a: No static libraries available/enabled for inclusion in self-contained static library librdkafka-static.a: this library will be identical to librdkafka.a
      _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
  "_SSL_CTX_use_PrivateKey_file", referenced from:
      _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
  "_SSL_CTX_use_certificate", referenced from:
      _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
  "_SSL_CTX_use_certificate_chain_file", referenced from:
      _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
  "_SSL_connect", referenced from:
      _rd_kafka_transport_ssl_connect in rdkafka_ssl.o
  "_SSL_ctrl", referenced from:
      _rd_kafka_transport_ssl_connect in rdkafka_ssl.o
  "_SSL_do_handshake", referenced from:
      _rd_kafka_transport_ssl_handshake in rdkafka_ssl.o
  "_SSL_free", referenced from:
      _rd_kafka_transport_ssl_close in rdkafka_ssl.o
  "_SSL_get_error", referenced from:
      _rd_kafka_transport_ssl_io_update in rdkafka_ssl.o
  "_SSL_get_peer_certificate", referenced from:
      _rd_kafka_transport_ssl_handshake in rdkafka_ssl.o
  "_SSL_get_verify_result", referenced from:
      _rd_kafka_transport_ssl_handshake in rdkafka_ssl.o
  "_SSL_new", referenced from:
      _rd_kafka_transport_ssl_connect in rdkafka_ssl.o
  "_SSL_read", referenced from:
      _rd_kafka_transport_ssl_recv in rdkafka_ssl.o
  "_SSL_set1_host", referenced from:
      _rd_kafka_transport_ssl_connect in rdkafka_ssl.o
  "_SSL_set_fd", referenced from:
      _rd_kafka_transport_ssl_connect in rdkafka_ssl.o
  "_SSL_shutdown", referenced from:
WARNING: librdkafka-static.a: The following libraries were not available as static libraries and need to be linked dynamically: -llz4 -lm -lcurl -lsasl2 -lssl -lcrypto -lz -ldl -lpthread
      _rd_kafka_transport_ssl_close in rdkafka_ssl.o
  "_SSL_write", referenced from:
cp librdkafka.a librdkafka-static.a
      _rd_kafka_transport_ssl_send in rdkafka_ssl.o
  "_TLS_client_method", referenced from:
      _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
  "_X509_NAME_oneline", referenced from:
      _rd_kafka_transport_ssl_cert_verify_cb in rdkafka_ssl.o
  "_X509_OBJECT_get0_X509", referenced from:
      _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
  "_X509_STORE_CTX_get_current_cert", referenced from:
      _rd_kafka_transport_ssl_cert_verify_cb in rdkafka_ssl.o
  "_X509_STORE_CTX_get_error", referenced from:
      _rd_kafka_transport_ssl_cert_verify_cb in rdkafka_ssl.o
  "_X509_STORE_CTX_get_error_depth", referenced from:
      _rd_kafka_transport_ssl_cert_verify_cb in rdkafka_ssl.o
  "_X509_STORE_CTX_set_error", referenced from:
      _rd_kafka_transport_ssl_cert_verify_cb in rdkafka_ssl.o
  "_X509_STORE_add_cert", referenced from:
      _rd_kafka_conf_set_ssl_cert in rdkafka_cert.o
      _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
  "_X509_STORE_free", referenced from:
      _rd_kafka_cert_destroy in rdkafka_cert.o
  "_X509_STORE_get0_objects", referenced from:
      _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
  "_X509_STORE_new", referenced from:
      _rd_kafka_conf_set_ssl_cert in rdkafka_cert.o
  "_X509_STORE_set_flags", referenced from:
      _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
cp librdkafka-dbg.a librdkafka-static-dbg.a
  "_X509_free", referenced from:
      _rd_kafka_conf_set_ssl_cert in rdkafka_cert.o
      _rd_kafka_cert_destroy in rdkafka_cert.o
      _rd_kafka_transport_ssl_handshake in rdkafka_ssl.o
      _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
  "_X509_get_issuer_name", referenced from:
      _rd_kafka_transport_ssl_cert_verify_cb in rdkafka_ssl.o
  "_X509_get_subject_name", referenced from:
      _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
      _rd_kafka_transport_ssl_cert_verify_cb in rdkafka_ssl.o
  "_X509_new", referenced from:
      _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
  "_X509_verify_cert_error_string", referenced from:
      _rd_kafka_transport_ssl_handshake in rdkafka_ssl.o
  "_d2i_PKCS12_bio", referenced from:
      _rd_kafka_conf_set_ssl_cert in rdkafka_cert.o
      _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
  "_d2i_PrivateKey_bio", referenced from:
      _rd_kafka_conf_set_ssl_cert in rdkafka_cert.o
  "_d2i_X509_bio", referenced from:
      _rd_kafka_conf_set_ssl_cert in rdkafka_cert.o
  "_i2d_X509", referenced from:
      _rd_kafka_transport_ssl_cert_verify_cb in rdkafka_ssl.o
ld: symbol(s) not found for architecture x86_64
cp librdkafka-static.a librdkafka-static-dbg.a
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [librdkafka.1.dylib] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [libs] Error 2
error with make
make: *** [get_deps] Error 1
===> Hook for compile failed!

** (Mix) Could not compile dependency :erlkaf, "/Users//.mix/elixir/1-14/rebar3 bare compile --paths /Users//Projects/x/services/payment-processor/_build/dev/lib/*/ebin" command failed. Errors may have been logged above. You can recompile this dependency with "mix deps.compile erlkaf", update it with "mix deps.update erlkaf" or clean it with "mix deps.clean erlkaf"
silviucpp commented 1 year ago

Hmm yourcpu is x86 or arm based ? Please provide output for sysctl -a | grep cpu

reidgraviton commented 1 year ago

My bad. arm.

reids-m1-mbp:payment-processor $ arch
arm64

...

reids-m1-mbp:payment-processor $ sysctl -a | grep cpu
kern.sched_rt_avoid_cpu0: 0
kern.cpu_checkin_interval: 4000
hw.ncpu: 10
hw.activecpu: 10
hw.perflevel0.physicalcpu: 8
hw.perflevel0.physicalcpu_max: 8
hw.perflevel0.logicalcpu: 8
hw.perflevel0.logicalcpu_max: 8
hw.perflevel0.cpusperl2: 4
hw.perflevel1.physicalcpu: 2
hw.perflevel1.physicalcpu_max: 2
hw.perflevel1.logicalcpu: 2
hw.perflevel1.logicalcpu_max: 2
hw.perflevel1.cpusperl2: 2
hw.physicalcpu: 10
hw.physicalcpu_max: 10
hw.logicalcpu: 10
hw.logicalcpu_max: 10
hw.cputype: 16777228
hw.cpusubtype: 2
hw.cpu64bit_capable: 1
hw.cpufamily: 458787763
hw.cpusubfamily: 4
machdep.cpu.cores_per_package: 10
machdep.cpu.core_count: 10
machdep.cpu.logical_per_package: 10
machdep.cpu.thread_count: 10
machdep.cpu.brand_string: Apple M1 Pro

...

image
reidgraviton commented 1 year ago

In trying to get this working I installed openssl@1.1 via homebrew and am setting env vars that point to it. I'm not sure if this is good/bad but seemed relevant in some of the other github issues i found regarding librdkafka:

reids-m1-mbp:payment-processor $ brew info openssl@1.1
==> openssl@1.1: stable 1.1.1s (bottled) [keg-only]
Cryptography and SSL/TLS Toolkit
https://openssl.org/
/opt/homebrew/Cellar/openssl@1.1/1.1.1s (8,101 files, 18MB)
  Poured from bottle on 2023-01-11 at 15:40:12
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/openssl@1.1.rb
License: OpenSSL
==> Dependencies
Required: ca-certificates ✔

...

reids-m1-mbp:payment-processor $ more ~/.bashrc
export LDFLAGS="-L/opt/homebrew/opt/openssl@1.1/lib"
export CPPFLAGS="-I/opt/homebrew/opt/openssl@1.1/include"
export PKG_CONFIG_PATH="/opt/homebrew/opt/openssl@1.1/lib/pkgconfig"

I do see that those are picked up in the configuration that's generated (shown in the compiler output, above). Again not sure if this is helpful but wanted to point it out.

silviucpp commented 1 year ago

Hello, In build_deps.sh you have how I set the OpenSSL:

brew install openssl@1.1 lz4 zstd curl
OPENSSL_ROOT_DIR=$(brew --prefix openssl@1.1)
export CPPFLAGS=-I$OPENSSL_ROOT_DIR/include/
export LDFLAGS=-L$OPENSSL_ROOT_DIR/lib

So basically the path is the one returned by brew --prefix openssl@1.1

What's strange is that in the build log for librdkafka I see:

Configuration summary:
  prefix                   /usr/local
  MKL_DISTRO               osx
  SOLIB_EXT                .dylib
  ARCH                     x86_64
  CPU                      generic

So it detects that you have X86 cpu and build for it.

Can you change in build_deps.sh (in erlkaf root) the:

LIBRDKAFKA_REV=9b72ca3aa6c49f8f57eea02f70aadb1453d3ba1f

with a newer version like:

LIBRDKAFKA_REV=9b72ca3aa6c49f8f57eea02f70aadb1453d3ba1f

then delete _build and rebuild the project

Silviu

reidgraviton commented 1 year ago

Oops, the two librdkafka versions you listed in your post are the same

reidgraviton commented 1 year ago

It looks like 9b72ca3aa6c49f8f57eea02f70aadb1453d3ba1f (which is what's in build_deps.sh) is v1.9.2, which is the latest unless jumping up to [v2.0.0](https://github.com/confluentinc/librdkafka/commit/6a66f95cabf5370a323cdf2ed575f70a9f1daf02)?

silviucpp commented 1 year ago

Yes I have no clue if it's a bug fixed in librdkafka master or not.

It's hard to say where the problem is librdkafka building wrong on x86 on arm system and then we link with arm . or locations to openssl for x86 are in different location other than the one returned by brew --prefix openssl@1.1

I see here:

https://github.com/confluentinc/librdkafka/pull/3868

So please try to see if you have any openssl@1.1 in /usr/local/opt/ and if yes change in :

In build_deps.sh:

OPENSSL_ROOT_DIR=$(brew --prefix openssl@1.1)

with the location of this one.

OPENSSL_ROOT_DIR=/usr/local/opt/openssl@1.1

Silviu

silviucpp commented 1 year ago

No feedback received. close the ticket