node-gyp icon indicating copy to clipboard operation
node-gyp copied to clipboard

Install node-rdkafka failing on M1 Macs

Open Sher-Chowdhury opened this issue 2 years ago • 3 comments

Disovered I can't install this package after upgrading to macOS Ventura.

  • Node Version: nvm use 16 Now using node v16.18.1 (npm v8.19.2)
  • Platform: M1 MacOS - Ventura 13.0.1
  • Compiler:
  • Module:
Verbose output (from npm or node-gyp):

Here's my error:

$ npm install node-gyp

npm WARN old lockfile
npm WARN old lockfile The package-lock.json file was created with an old version of npm,
npm WARN old lockfile so supplemental metadata must be fetched from the registry.
npm WARN old lockfile
npm WARN old lockfile This is a one-time fix-up, please be patient...
npm WARN old lockfile
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '[email protected]',
npm WARN EBADENGINE   required: { node: '14', npm: '6' },
npm WARN EBADENGINE   current: { node: 'v16.18.1', npm: '8.19.2' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '@ibm-app-connect/[email protected]',
npm WARN EBADENGINE   required: { node: '14', npm: '6' },
npm WARN EBADENGINE   current: { node: 'v16.18.1', npm: '8.19.2' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '[email protected]',
npm WARN EBADENGINE   required: { node: '4.4', npm: '3.x' },
npm WARN EBADENGINE   current: { node: 'v16.18.1', npm: '8.19.2' }
npm WARN EBADENGINE }
npm WARN deprecated [email protected]: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
(##################) ⠸ reify:toolkit-jsdoc: timing reifyNode:node_modules/node-rdkafk(##################) ⠸ reify:toolkit-jsdoc: timing reifyNode:node_modules/node-rdkafk(##################) ⠸ reify:toolkit-jsdoc: timing reifyNode:node_modules/node-rdkafk(##################) ⠸ reify:toolkit-jsdoc: timing reifyNode:node_modules/node-rdkafk(##################) ⠸ reify:toolkit-jsdoc: timing reifyNode:node_modules/node-rdkafk(##################) ⠸ reify:toolkit-jsdoc: timing reifyNode:node_modules/node-rdkafk(##################) ⠸ reify:toolkit-jsdoc: timing reifyNode:node_modules/node-rdkafk
npm ERR! code 1
npm ERR! path /Users/sher/github/firefly-ui/node_modules/node-rdkafka
npm ERR! command failed
npm ERR! command sh -c -- node-gyp rebuild
npm ERR! ACTION deps_librdkafka_gyp_librdkafka_target_configure deps/librdkafka/config.h
npm ERR! checking for OS or distribution... ok (osx)
npm ERR! checking for C compiler from CC env... failed
npm ERR! checking for gcc (by command)... ok
npm ERR! checking for C++ compiler from CXX env... failed
npm ERR! checking for C++ compiler (g++)... ok
npm ERR! checking executable ld... ok
npm ERR! checking executable nm... ok
npm ERR! checking executable objdump... ok
npm ERR! checking executable strip... ok
npm ERR! checking executable libtool... ok
npm ERR! checking executable ranlib... ok
npm ERR! checking for debug symbols compiler flag (-g...)... ok
npm ERR! checking for pkgconfig (by command)... ok
npm ERR! checking for install (by command)... failed
npm ERR! checking for GNU ar... failed (disable)
npm ERR! checking for PIC (by compile)... ok
npm ERR! checking for GNU-compatible linker options... failed
npm ERR! checking for OSX linker options... ok
npm ERR! checking for GNU linker-script ld flag... failed
npm ERR! checking for Solaris linker-script ld flag... failed (ignore)
npm ERR! checking for __atomic_32 (by compile)... ok
npm ERR! checking for __atomic_64 (by compile)... ok
npm ERR! checking for socket (by compile)... ok
npm ERR! parsing version '0x010902ff'... ok (1.9.2)
npm ERR! checking for librt (by pkg-config)... failed
npm ERR! checking for librt (by compile)... failed
npm ERR! checking for libpthread (by pkg-config)... failed
npm ERR! checking for libpthread (by compile)... ok
npm ERR! checking for c11threads (by pkg-config)... failed
npm ERR! checking for c11threads (by compile)... failed (disable)
npm ERR! checking for libdl (by pkg-config)... failed
npm ERR! checking for libdl (by compile)... ok
npm ERR! checking for zlib (by pkg-config)... ok
npm ERR! checking for libcrypto (by pkg-config)... ok
npm ERR! checking for libssl (by pkg-config)... ok
npm ERR! checking for libsasl2 (by pkg-config)... failed
npm ERR! checking for libsasl2 (by compile)... ok
npm ERR! checking for libzstd (by pkg-config)... failed
npm ERR! checking for libzstd (by compile)... failed (disable)
npm ERR! checking for libcurl (by pkg-config)... ok
npm ERR! checking for libm (by pkg-config)... failed
npm ERR! checking for libm (by compile)... ok
npm ERR! checking for liblz4 (by pkg-config)... failed
npm ERR! checking for liblz4 (by compile)... failed (disable)
npm ERR! checking for syslog (by compile)... ok
npm ERR! checking for rapidjson (by compile)... failed (disable)
npm ERR! checking for crc32chw (by compile)... ok
npm ERR! checking for regex (by compile)... ok
npm ERR! checking for rand_r (by compile)... ok
npm ERR! checking for strndup (by compile)... ok
npm ERR! checking for strlcpy (by compile)... ok
npm ERR! checking for strerror_r (by compile)... ok
npm ERR! checking for strcasestr (by compile)... ok
npm ERR! checking for pthread_setname_gnu (by compile)... failed (disable)
npm ERR! checking for pthread_setname_darwin (by compile)... ok
npm ERR! checking for nm (by env NM)... ok (cached)
npm ERR! checking for getrusage (by compile)... ok
npm ERR! Generated Makefile.config
npm ERR! Generated config.h
npm ERR!
npm ERR! Configuration summary:
npm ERR!   prefix                   /Users/sher/github/firefly-ui/node_modules/node-rdkafka/build/deps
npm ERR!   MKL_DISTRO               osx
npm ERR!   SOLIB_EXT                .dylib
npm ERR!   ARCH                     x86_64
npm ERR!   CPU                      generic
npm ERR!   GEN_PKG_CONFIG           y
npm ERR!   libdir                   /Users/sher/github/firefly-ui/node_modules/node-rdkafka/build/deps
npm ERR!   MKL_APP_NAME             librdkafka
npm ERR!   MKL_APP_DESC_ONELINE     The Apache Kafka C/C++ library
npm ERR!   LDFLAGS                  -L/Users/sher/github/firefly-ui/node_modules/node-rdkafka/build/deps
npm ERR!   CC                       gcc
npm ERR!   CXX                      g++
npm ERR!   LD                       ld
npm ERR!   NM                       nm
npm ERR!   OBJDUMP                  objdump
npm ERR!   STRIP                    strip
npm ERR!   LIBTOOL                  libtool
npm ERR!   RANLIB                   ranlib
npm ERR!   CPPFLAGS                 -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align
npm ERR!   PKG_CONFIG               pkg-config
npm ERR!   INSTALL                  /usr/bin/install
npm ERR!   HAS_GNU_AR               n
npm ERR!   LIB_LDFLAGS              -shared -dynamiclib -Wl,-install_name,$(DESTDIR)$(libdir)/$(LIBFILENAME)
npm ERR!   RDKAFKA_VERSION_STR      1.9.2
npm ERR!   MKL_APP_VERSION          1.9.2
npm ERR!   LIBS                     -lm -lcurl -lsasl2 -L/opt/homebrew/Cellar/openssl@3/3.0.5/lib -lssl -L/opt/homebrew/Cellar/openssl@3/3.0.5/lib -lcrypto -lz -ldl -lpthread
npm ERR!   MKL_PKGCONFIG_LIBS_PRIVATE -lm -lsasl2 -ldl -lpthread
npm ERR!   MKL_PKGCONFIG_REQUIRES_PRIVATE zlib libcrypto libssl libcurl
npm ERR!   CFLAGS                   -I/opt/homebrew/Cellar/openssl@3/3.0.5/include -I/opt/homebrew/Cellar/openssl@3/3.0.5/include
npm ERR!   MKL_PKGCONFIG_REQUIRES   zlib libcrypto libssl libcurl
npm ERR!   CXXFLAGS                 -Wno-non-virtual-dtor
npm ERR!   SYMDUMPER                $(NM) -g
npm ERR!   MKL_DYNAMIC_LIBS         -lm -lcurl -lsasl2 -lssl -lcrypto -lz -ldl -lpthread
npm ERR!   exec_prefix              /Users/sher/github/firefly-ui/node_modules/node-rdkafka/build/deps
npm ERR!   bindir                   /Users/sher/github/firefly-ui/node_modules/node-rdkafka/build/deps/bin
npm ERR!   sbindir                  /Users/sher/github/firefly-ui/node_modules/node-rdkafka/build/deps/sbin
npm ERR!   libexecdir               /Users/sher/github/firefly-ui/node_modules/node-rdkafka/build/deps/libexec
npm ERR!   datadir                  /Users/sher/github/firefly-ui/node_modules/node-rdkafka/build/deps/share
npm ERR!   sysconfdir               /Users/sher/github/firefly-ui/node_modules/node-rdkafka/build/deps/etc
npm ERR!   sharedstatedir           /Users/sher/github/firefly-ui/node_modules/node-rdkafka/build/deps/com
npm ERR!   localstatedir            /Users/sher/github/firefly-ui/node_modules/node-rdkafka/build/deps/var
npm ERR!   runstatedir              /Users/sher/github/firefly-ui/node_modules/node-rdkafka/build/deps/var/run
npm ERR!   includedir               /Users/sher/github/firefly-ui/node_modules/node-rdkafka/build/deps/include
npm ERR!   infodir                  /Users/sher/github/firefly-ui/node_modules/node-rdkafka/build/deps/info
npm ERR!   mandir                   /Users/sher/github/firefly-ui/node_modules/node-rdkafka/build/deps/man
npm ERR!   BUILT_WITH               GCC GXX PKGCONFIG OSXLD LIBDL PLUGINS ZLIB SSL SASL_CYRUS CURL HDRHISTOGRAM SYSLOG SNAPPY SOCKEM SASL_SCRAM SASL_OAUTHBEARER OAUTHBEARER_OIDC CRC32C_HW
npm ERR! Generated config.cache
npm ERR!
npm ERR! Now type 'make' to build
npm ERR!   TOUCH 11a9e3388a67e1ca5c31c1d8da49cb6d2714eb41.intermediate
npm ERR!   ACTION deps_librdkafka_gyp_librdkafka_target_build_dependencies 11a9e3388a67e1ca5c31c1d8da49cb6d2714eb41.intermediate
npm ERR! gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/Cellar/openssl@3/3.0.5/include -I/opt/homebrew/Cellar/openssl@3/3.0.5/include  -c rdkafka.c -o rdkafka.o
npm ERR! gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/Cellar/openssl@3/3.0.5/include -I/opt/homebrew/Cellar/openssl@3/3.0.5/include  -c rdkafka_broker.c -o rdkafka_broker.o
npm ERR! gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/Cellar/openssl@3/3.0.5/include -I/opt/homebrew/Cellar/openssl@3/3.0.5/include  -c rdkafka_msg.c -o rdkafka_msg.o
npm ERR! gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/Cellar/openssl@3/3.0.5/include -I/opt/homebrew/Cellar/openssl@3/3.0.5/include  -c rdkafka_topic.c -o rdkafka_topic.o
npm ERR! gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/Cellar/openssl@3/3.0.5/include -I/opt/homebrew/Cellar/openssl@3/3.0.5/include  -c rdkafka_conf.c -o rdkafka_conf.o
npm ERR! gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/Cellar/openssl@3/3.0.5/include -I/opt/homebrew/Cellar/openssl@3/3.0.5/include  -c rdkafka_timer.c -o rdkafka_timer.o
npm ERR! gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/Cellar/openssl@3/3.0.5/include -I/opt/homebrew/Cellar/openssl@3/3.0.5/include  -c rdkafka_offset.c -o rdkafka_offset.o
npm ERR! gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/Cellar/openssl@3/3.0.5/include -I/opt/homebrew/Cellar/openssl@3/3.0.5/include  -c rdkafka_transport.c -o rdkafka_transport.o
npm ERR! gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/Cellar/openssl@3/3.0.5/include -I/opt/homebrew/Cellar/openssl@3/3.0.5/include  -c rdkafka_buf.c -o rdkafka_buf.o
npm ERR! gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/Cellar/openssl@3/3.0.5/include -I/opt/homebrew/Cellar/openssl@3/3.0.5/include  -c rdkafka_queue.c -o rdkafka_queue.o
npm ERR! gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/Cellar/openssl@3/3.0.5/include -I/opt/homebrew/Cellar/openssl@3/3.0.5/include  -c rdkafka_op.c -o rdkafka_op.o
npm ERR! gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/Cellar/openssl@3/3.0.5/include -I/opt/homebrew/Cellar/openssl@3/3.0.5/include  -c rdkafka_request.c -o rdkafka_request.o
npm ERR! gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/Cellar/openssl@3/3.0.5/include -I/opt/homebrew/Cellar/openssl@3/3.0.5/include  -c rdkafka_cgrp.c -o rdkafka_cgrp.o
npm ERR! gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/Cellar/openssl@3/3.0.5/include -I/opt/homebrew/Cellar/openssl@3/3.0.5/include  -c rdkafka_pattern.c -o rdkafka_pattern.o
npm ERR! gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/Cellar/openssl@3/3.0.5/include -I/opt/homebrew/Cellar/openssl@3/3.0.5/include  -c rdkafka_partition.c -o rdkafka_partition.o
npm ERR! gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/Cellar/openssl@3/3.0.5/include -I/opt/homebrew/Cellar/openssl@3/3.0.5/include  -c rdkafka_subscription.c -o rdkafka_subscription.o
npm ERR! gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/Cellar/openssl@3/3.0.5/include -I/opt/homebrew/Cellar/openssl@3/3.0.5/include  -c rdkafka_assignment.c -o rdkafka_assignment.o
npm ERR! gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/Cellar/openssl@3/3.0.5/include -I/opt/homebrew/Cellar/openssl@3/3.0.5/include  -c rdkafka_assignor.c -o rdkafka_assignor.o
npm ERR! gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/Cellar/openssl@3/3.0.5/include -I/opt/homebrew/Cellar/openssl@3/3.0.5/include  -c rdkafka_range_assignor.c -o rdkafka_range_assignor.o
npm ERR! gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/Cellar/openssl@3/3.0.5/include -I/opt/homebrew/Cellar/openssl@3/3.0.5/include  -c rdkafka_roundrobin_assignor.c -o rdkafka_roundrobin_assignor.o
npm ERR! gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/Cellar/openssl@3/3.0.5/include -I/opt/homebrew/Cellar/openssl@3/3.0.5/include  -c rdkafka_sticky_assignor.c -o rdkafka_sticky_assignor.o
npm ERR! gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/Cellar/openssl@3/3.0.5/include -I/opt/homebrew/Cellar/openssl@3/3.0.5/include  -c rdkafka_feature.c -o rdkafka_feature.o
npm ERR! gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/Cellar/openssl@3/3.0.5/include -I/opt/homebrew/Cellar/openssl@3/3.0.5/include  -c rdcrc32.c -o rdcrc32.o
npm ERR! gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/Cellar/openssl@3/3.0.5/include -I/opt/homebrew/Cellar/openssl@3/3.0.5/include  -c crc32c.c -o crc32c.o
npm ERR! gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/Cellar/openssl@3/3.0.5/include -I/opt/homebrew/Cellar/openssl@3/3.0.5/include  -c rdmurmur2.c -o rdmurmur2.o
npm ERR! gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/Cellar/openssl@3/3.0.5/include -I/opt/homebrew/Cellar/openssl@3/3.0.5/include  -c rdfnv1a.c -o rdfnv1a.o
npm ERR! gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/Cellar/openssl@3/3.0.5/include -I/opt/homebrew/Cellar/openssl@3/3.0.5/include  -c cJSON.c -o cJSON.o
npm ERR! gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/Cellar/openssl@3/3.0.5/include -I/opt/homebrew/Cellar/openssl@3/3.0.5/include  -c rdaddr.c -o rdaddr.o
npm ERR! gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/Cellar/openssl@3/3.0.5/include -I/opt/homebrew/Cellar/openssl@3/3.0.5/include  -c rdrand.c -o rdrand.o
npm ERR! gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/Cellar/openssl@3/3.0.5/include -I/opt/homebrew/Cellar/openssl@3/3.0.5/include  -c rdlist.c -o rdlist.o
npm ERR! gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/Cellar/openssl@3/3.0.5/include -I/opt/homebrew/Cellar/openssl@3/3.0.5/include  -c tinycthread.c -o tinycthread.o
npm ERR! gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/Cellar/openssl@3/3.0.5/include -I/opt/homebrew/Cellar/openssl@3/3.0.5/include  -c tinycthread_extra.c -o tinycthread_extra.o
npm ERR! gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/Cellar/openssl@3/3.0.5/include -I/opt/homebrew/Cellar/openssl@3/3.0.5/include  -c rdlog.c -o rdlog.o
npm ERR! gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/Cellar/openssl@3/3.0.5/include -I/opt/homebrew/Cellar/openssl@3/3.0.5/include  -c rdstring.c -o rdstring.o
npm ERR! gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/Cellar/openssl@3/3.0.5/include -I/opt/homebrew/Cellar/openssl@3/3.0.5/include  -c rdkafka_event.c -o rdkafka_event.o
npm ERR! gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/Cellar/openssl@3/3.0.5/include -I/opt/homebrew/Cellar/openssl@3/3.0.5/include  -c rdkafka_metadata.c -o rdkafka_metadata.o
npm ERR! gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/Cellar/openssl@3/3.0.5/include -I/opt/homebrew/Cellar/openssl@3/3.0.5/include  -c rdregex.c -o rdregex.o
npm ERR! gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/Cellar/openssl@3/3.0.5/include -I/opt/homebrew/Cellar/openssl@3/3.0.5/include  -c rdports.c -o rdports.o
npm ERR! gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/Cellar/openssl@3/3.0.5/include -I/opt/homebrew/Cellar/openssl@3/3.0.5/include  -c rdkafka_metadata_cache.c -o rdkafka_metadata_cache.o
npm ERR! gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/Cellar/openssl@3/3.0.5/include -I/opt/homebrew/Cellar/openssl@3/3.0.5/include  -c rdavl.c -o rdavl.o
npm ERR! gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/Cellar/openssl@3/3.0.5/include -I/opt/homebrew/Cellar/openssl@3/3.0.5/include  -c rdkafka_sasl.c -o rdkafka_sasl.o
npm ERR! gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/Cellar/openssl@3/3.0.5/include -I/opt/homebrew/Cellar/openssl@3/3.0.5/include  -c rdkafka_sasl_plain.c -o rdkafka_sasl_plain.o
npm ERR! gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/Cellar/openssl@3/3.0.5/include -I/opt/homebrew/Cellar/openssl@3/3.0.5/include  -c rdkafka_interceptor.c -o rdkafka_interceptor.o
npm ERR! gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/Cellar/openssl@3/3.0.5/include -I/opt/homebrew/Cellar/openssl@3/3.0.5/include  -c rdkafka_msgset_writer.c -o rdkafka_msgset_writer.o
npm ERR! gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/Cellar/openssl@3/3.0.5/include -I/opt/homebrew/Cellar/openssl@3/3.0.5/include  -c rdkafka_msgset_reader.c -o rdkafka_msgset_reader.o
npm ERR! gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/Cellar/openssl@3/3.0.5/include -I/opt/homebrew/Cellar/openssl@3/3.0.5/include  -c rdkafka_header.c -o rdkafka_header.o
npm ERR! gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/Cellar/openssl@3/3.0.5/include -I/opt/homebrew/Cellar/openssl@3/3.0.5/include  -c rdkafka_admin.c -o rdkafka_admin.o
npm ERR! gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/Cellar/openssl@3/3.0.5/include -I/opt/homebrew/Cellar/openssl@3/3.0.5/include  -c rdkafka_aux.c -o rdkafka_aux.o
npm ERR! gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/Cellar/openssl@3/3.0.5/include -I/opt/homebrew/Cellar/openssl@3/3.0.5/include  -c rdkafka_background.c -o rdkafka_background.o
npm ERR! gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/Cellar/openssl@3/3.0.5/include -I/opt/homebrew/Cellar/openssl@3/3.0.5/include  -c rdkafka_idempotence.c -o rdkafka_idempotence.o
npm ERR! gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/Cellar/openssl@3/3.0.5/include -I/opt/homebrew/Cellar/openssl@3/3.0.5/include  -c rdkafka_cert.c -o rdkafka_cert.o
npm ERR! gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/Cellar/openssl@3/3.0.5/include -I/opt/homebrew/Cellar/openssl@3/3.0.5/include  -c rdkafka_txnmgr.c -o rdkafka_txnmgr.o
npm ERR! gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/Cellar/openssl@3/3.0.5/include -I/opt/homebrew/Cellar/openssl@3/3.0.5/include  -c rdkafka_coord.c -o rdkafka_coord.o
npm ERR! gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/Cellar/openssl@3/3.0.5/include -I/opt/homebrew/Cellar/openssl@3/3.0.5/include  -c rdvarint.c -o rdvarint.o
npm ERR! gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/Cellar/openssl@3/3.0.5/include -I/opt/homebrew/Cellar/openssl@3/3.0.5/include  -c rdbuf.c -o rdbuf.o
npm ERR! gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/Cellar/openssl@3/3.0.5/include -I/opt/homebrew/Cellar/openssl@3/3.0.5/include  -c rdmap.c -o rdmap.o
npm ERR! gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/Cellar/openssl@3/3.0.5/include -I/opt/homebrew/Cellar/openssl@3/3.0.5/include  -c rdunittest.c -o rdunittest.o
npm ERR! gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/Cellar/openssl@3/3.0.5/include -I/opt/homebrew/Cellar/openssl@3/3.0.5/include  -c rdkafka_mock.c -o rdkafka_mock.o
npm ERR! gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/Cellar/openssl@3/3.0.5/include -I/opt/homebrew/Cellar/openssl@3/3.0.5/include  -c rdkafka_mock_handlers.c -o rdkafka_mock_handlers.o
npm ERR! gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/Cellar/openssl@3/3.0.5/include -I/opt/homebrew/Cellar/openssl@3/3.0.5/include  -c rdkafka_mock_cgrp.c -o rdkafka_mock_cgrp.o
npm ERR! gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/Cellar/openssl@3/3.0.5/include -I/opt/homebrew/Cellar/openssl@3/3.0.5/include  -c rdkafka_error.c -o rdkafka_error.o
npm ERR! gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/Cellar/openssl@3/3.0.5/include -I/opt/homebrew/Cellar/openssl@3/3.0.5/include  -c rdkafka_sasl_cyrus.c -o rdkafka_sasl_cyrus.o
npm ERR! gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/Cellar/openssl@3/3.0.5/include -I/opt/homebrew/Cellar/openssl@3/3.0.5/include  -c rdkafka_sasl_scram.c -o rdkafka_sasl_scram.o
npm ERR! gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/Cellar/openssl@3/3.0.5/include -I/opt/homebrew/Cellar/openssl@3/3.0.5/include  -c rdkafka_sasl_oauthbearer.c -o rdkafka_sasl_oauthbearer.o
npm ERR! gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/Cellar/openssl@3/3.0.5/include -I/opt/homebrew/Cellar/openssl@3/3.0.5/include  -c snappy.c -o snappy.o
npm ERR! gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/Cellar/openssl@3/3.0.5/include -I/opt/homebrew/Cellar/openssl@3/3.0.5/include  -c rdgz.c -o rdgz.o
npm ERR! gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/Cellar/openssl@3/3.0.5/include -I/opt/homebrew/Cellar/openssl@3/3.0.5/include  -c rdhdrhistogram.c -o rdhdrhistogram.o
npm ERR! gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/Cellar/openssl@3/3.0.5/include -I/opt/homebrew/Cellar/openssl@3/3.0.5/include  -c rdkafka_ssl.c -o rdkafka_ssl.o
npm ERR! gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/Cellar/openssl@3/3.0.5/include -I/opt/homebrew/Cellar/openssl@3/3.0.5/include  -c rdhttp.c -o rdhttp.o
npm ERR! gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/Cellar/openssl@3/3.0.5/include -I/opt/homebrew/Cellar/openssl@3/3.0.5/include  -c rdkafka_sasl_oauthbearer_oidc.c -o rdkafka_sasl_oauthbearer_oidc.o
npm ERR! gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/Cellar/openssl@3/3.0.5/include -I/opt/homebrew/Cellar/openssl@3/3.0.5/include  -c rdkafka_lz4.c -o rdkafka_lz4.o
npm ERR! gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/Cellar/openssl@3/3.0.5/include -I/opt/homebrew/Cellar/openssl@3/3.0.5/include  -O3 -c rdxxhash.c -o rdxxhash.o
npm ERR! gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/Cellar/openssl@3/3.0.5/include -I/opt/homebrew/Cellar/openssl@3/3.0.5/include  -O3 -c lz4.c -o lz4.o
npm ERR! gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/Cellar/openssl@3/3.0.5/include -I/opt/homebrew/Cellar/openssl@3/3.0.5/include  -O3 -c lz4frame.c -o lz4frame.o
npm ERR! gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/Cellar/openssl@3/3.0.5/include -I/opt/homebrew/Cellar/openssl@3/3.0.5/include  -O3 -c lz4hc.c -o lz4hc.o
npm ERR! gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/Cellar/openssl@3/3.0.5/include -I/opt/homebrew/Cellar/openssl@3/3.0.5/include  -c rddl.c -o rddl.o
npm ERR! gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/Cellar/openssl@3/3.0.5/include -I/opt/homebrew/Cellar/openssl@3/3.0.5/include  -c rdkafka_plugin.c -o rdkafka_plugin.o
npm ERR! Creating shared library librdkafka.1.dylib
npm ERR! gcc -L/Users/sher/github/firefly-ui/node_modules/node-rdkafka/build/deps -shared -dynamiclib -Wl,-install_name,/Users/sher/github/firefly-ui/node_modules/node-rdkafka/build/deps/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 lz4.o lz4frame.o lz4hc.o rddl.o rdkafka_plugin.o -o librdkafka.1.dylib -lm -lcurl -lsasl2 -L/opt/homebrew/Cellar/openssl@3/3.0.5/lib -lssl -L/opt/homebrew/Cellar/openssl@3/3.0.5/lib -lcrypto -lz -ldl -lpthread
npm ERR! rm 11a9e3388a67e1ca5c31c1d8da49cb6d2714eb41.intermediate
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | darwin | x64
npm ERR! gyp info find Python using Python version 3.10.7 found at "/Users/sher/.pyenv/versions/3.10.7/bin/python3"
npm ERR! gyp info spawn /Users/sher/.pyenv/versions/3.10.7/bin/python3
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args   '/Users/sher/github/firefly-ui/node_modules/node-rdkafka/node_modules/node-gyp/gyp/gyp_main.py',
npm ERR! gyp info spawn args   'binding.gyp',
npm ERR! gyp info spawn args   '-f',
npm ERR! gyp info spawn args   'make',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/Users/sher/github/firefly-ui/node_modules/node-rdkafka/build/config.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/Users/sher/github/firefly-ui/node_modules/node-rdkafka/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/Users/sher/Library/Caches/node-gyp/16.18.1/include/node/common.gypi',
npm ERR! gyp info spawn args   '-Dlibrary=shared_library',
npm ERR! gyp info spawn args   '-Dvisibility=default',
npm ERR! gyp info spawn args   '-Dnode_root_dir=/Users/sher/Library/Caches/node-gyp/16.18.1',
npm ERR! gyp info spawn args   '-Dnode_gyp_dir=/Users/sher/github/firefly-ui/node_modules/node-rdkafka/node_modules/node-gyp',
npm ERR! gyp info spawn args   '-Dnode_lib_file=/Users/sher/Library/Caches/node-gyp/16.18.1/<(target_arch)/node.lib',
npm ERR! gyp info spawn args   '-Dmodule_root_dir=/Users/sher/github/firefly-ui/node_modules/node-rdkafka',
npm ERR! gyp info spawn args   '-Dnode_engine=v8',
npm ERR! gyp info spawn args   '--depth=.',
npm ERR! gyp info spawn args   '--no-parallel',
npm ERR! gyp info spawn args   '--generator-output',
npm ERR! gyp info spawn args   'build',
npm ERR! gyp info spawn args   '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! gyp info spawn make
npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm ERR! rdkafka_cert.c:106:21: warning: 'ERR_get_error_line_data' is deprecated [-Wdeprecated-declarations]
npm ERR!         while ((l = ERR_get_error_line_data(&file, &line, &data, &flags)) !=
npm ERR!                     ^
npm ERR! /opt/homebrew/Cellar/openssl@3/3.0.5/include/openssl/err.h:412:1: note: 'ERR_get_error_line_data' has been explicitly marked deprecated here
npm ERR! OSSL_DEPRECATEDIN_3_0
npm ERR! ^
npm ERR! /opt/homebrew/Cellar/openssl@3/3.0.5/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
npm ERR! #   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
npm ERR!                                                 ^
npm ERR! /opt/homebrew/Cellar/openssl@3/3.0.5/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
npm ERR! #     define OSSL_DEPRECATED(since) __attribute__((deprecated))
npm ERR!                                                    ^
npm ERR! rdkafka_cert.c:115:49: warning: 'ERR_func_error_string' is deprecated [-Wdeprecated-declarations]
npm ERR!                        ERR_lib_error_string(l), ERR_func_error_string(l), file,
npm ERR!                                                 ^
npm ERR! /opt/homebrew/Cellar/openssl@3/3.0.5/include/openssl/err.h:447:1: note: 'ERR_func_error_string' has been explicitly marked deprecated here
npm ERR! OSSL_DEPRECATEDIN_3_0 const char *ERR_func_error_string(unsigned long e);
npm ERR! ^
npm ERR! /opt/homebrew/Cellar/openssl@3/3.0.5/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
npm ERR! #   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
npm ERR!                                                 ^
npm ERR! /opt/homebrew/Cellar/openssl@3/3.0.5/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
npm ERR! #     define OSSL_DEPRECATED(since) __attribute__((deprecated))
npm ERR!                                                    ^
npm ERR! 2 warnings generated.
npm ERR! rdbuf.c:908:16: warning: variable 'remains' set but not used [-Wunused-but-set-variable]
npm ERR!         size_t remains = size;
npm ERR!                ^
npm ERR! 1 warning generated.
npm ERR! rdmap.c:482:13: warning: variable 'fails' set but not used [-Wunused-but-set-variable]
npm ERR!         int fails = 0;
npm ERR!             ^
npm ERR! 1 warning generated.
npm ERR! snappy.c:1440:9: warning: variable 'written' set but not used [-Wunused-but-set-variable]
npm ERR!         size_t written = 0;
npm ERR!                ^
npm ERR! 1 warning generated.
npm ERR! rdkafka_ssl.c:108:13: warning: 'ERR_peek_last_error_line_data' is deprecated [-Wdeprecated-declarations]
npm ERR!         l = ERR_peek_last_error_line_data(&file, &line, &data, &flags);
npm ERR!             ^
npm ERR! /opt/homebrew/Cellar/openssl@3/3.0.5/include/openssl/err.h:436:1: note: 'ERR_peek_last_error_line_data' has been explicitly marked deprecated here
npm ERR! OSSL_DEPRECATEDIN_3_0
npm ERR! ^
npm ERR! /opt/homebrew/Cellar/openssl@3/3.0.5/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
npm ERR! #   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
npm ERR!                                                 ^
npm ERR! /opt/homebrew/Cellar/openssl@3/3.0.5/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
npm ERR! #     define OSSL_DEPRECATED(since) __attribute__((deprecated))
npm ERR!                                                    ^
npm ERR! rdkafka_ssl.c:113:46: warning: 'ERR_func_error_string' is deprecated [-Wdeprecated-declarations]
npm ERR!                     ERR_lib_error_string(l), ERR_func_error_string(l), file,
npm ERR!                                              ^
npm ERR! /opt/homebrew/Cellar/openssl@3/3.0.5/include/openssl/err.h:447:1: note: 'ERR_func_error_string' has been explicitly marked deprecated here
npm ERR! OSSL_DEPRECATEDIN_3_0 const char *ERR_func_error_string(unsigned long e);
npm ERR! ^
npm ERR! /opt/homebrew/Cellar/openssl@3/3.0.5/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
npm ERR! #   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
npm ERR!                                                 ^
npm ERR! /opt/homebrew/Cellar/openssl@3/3.0.5/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
npm ERR! #     define OSSL_DEPRECATED(since) __attribute__((deprecated))
npm ERR!                                                    ^
npm ERR! rdkafka_ssl.c:143:21: warning: 'ERR_get_error_line_data' is deprecated [-Wdeprecated-declarations]
npm ERR!         while ((l = ERR_get_error_line_data(&file, &line, &data, &flags)) !=
npm ERR!                     ^
npm ERR! /opt/homebrew/Cellar/openssl@3/3.0.5/include/openssl/err.h:412:1: note: 'ERR_get_error_line_data' has been explicitly marked deprecated here
npm ERR! OSSL_DEPRECATEDIN_3_0
npm ERR! ^
npm ERR! /opt/homebrew/Cellar/openssl@3/3.0.5/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
npm ERR! #   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
npm ERR!                                                 ^
npm ERR! /opt/homebrew/Cellar/openssl@3/3.0.5/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
npm ERR! #     define OSSL_DEPRECATED(since) __attribute__((deprecated))
npm ERR!                                                    ^
npm ERR! rdkafka_ssl.c:1337:24: warning: 'ENGINE_load_ssl_client_cert' is deprecated [-Wdeprecated-declarations]
npm ERR!                 r    = ENGINE_load_ssl_client_cert(
npm ERR!                        ^
npm ERR! /opt/homebrew/Cellar/openssl@3/3.0.5/include/openssl/engine.h:643:1: note: 'ENGINE_load_ssl_client_cert' has been explicitly marked deprecated here
npm ERR! OSSL_DEPRECATEDIN_3_0
npm ERR! ^
npm ERR! /opt/homebrew/Cellar/openssl@3/3.0.5/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
npm ERR! #   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
npm ERR!                                                 ^
npm ERR! /opt/homebrew/Cellar/openssl@3/3.0.5/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
npm ERR! #     define OSSL_DEPRECATED(since) __attribute__((deprecated))
npm ERR!                                                    ^
npm ERR! rdkafka_ssl.c:1407:44: warning: 'ENGINE_free' is deprecated [-Wdeprecated-declarations]
npm ERR!         RD_IF_FREE(rk->rk_conf.ssl.engine, ENGINE_free);
npm ERR!                                            ^
npm ERR! /opt/homebrew/Cellar/openssl@3/3.0.5/include/openssl/engine.h:493:1: note: 'ENGINE_free' has been explicitly marked deprecated here
npm ERR! OSSL_DEPRECATEDIN_3_0 int ENGINE_free(ENGINE *e);
npm ERR! ^
npm ERR! /opt/homebrew/Cellar/openssl@3/3.0.5/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
npm ERR! #   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
npm ERR!                                                 ^
npm ERR! /opt/homebrew/Cellar/openssl@3/3.0.5/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
npm ERR! #     define OSSL_DEPRECATED(since) __attribute__((deprecated))
npm ERR!                                                    ^
npm ERR! rdkafka_ssl.c:1427:18: warning: 'ENGINE_by_id' is deprecated [-Wdeprecated-declarations]
npm ERR!         engine = ENGINE_by_id(rk->rk_conf.ssl.engine_id);
npm ERR!                  ^
npm ERR! /opt/homebrew/Cellar/openssl@3/3.0.5/include/openssl/engine.h:336:1: note: 'ENGINE_by_id' has been explicitly marked deprecated here
npm ERR! OSSL_DEPRECATEDIN_3_0 ENGINE *ENGINE_by_id(const char *id);
npm ERR! ^
npm ERR! /opt/homebrew/Cellar/openssl@3/3.0.5/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
npm ERR! #   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
npm ERR!                                                 ^
npm ERR! /opt/homebrew/Cellar/openssl@3/3.0.5/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
npm ERR! #     define OSSL_DEPRECATED(since) __attribute__((deprecated))
npm ERR!                                                    ^
npm ERR! rdkafka_ssl.c:1429:26: warning: 'ENGINE_by_id' is deprecated [-Wdeprecated-declarations]
npm ERR!                 engine = ENGINE_by_id("dynamic");
npm ERR!                          ^
npm ERR! /opt/homebrew/Cellar/openssl@3/3.0.5/include/openssl/engine.h:336:1: note: 'ENGINE_by_id' has been explicitly marked deprecated here
npm ERR! OSSL_DEPRECATEDIN_3_0 ENGINE *ENGINE_by_id(const char *id);
npm ERR! ^
npm ERR! /opt/homebrew/Cellar/openssl@3/3.0.5/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
npm ERR! #   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
npm ERR!                                                 ^
npm ERR! /opt/homebrew/Cellar/openssl@3/3.0.5/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
npm ERR! #     define OSSL_DEPRECATED(since) __attribute__((deprecated))
npm ERR!                                                    ^
npm ERR! rdkafka_ssl.c:1438:14: warning: 'ENGINE_ctrl_cmd_string' is deprecated [-Wdeprecated-declarations]
npm ERR!         if (!ENGINE_ctrl_cmd_string(engine, "SO_PATH",
npm ERR!              ^
npm ERR! /opt/homebrew/Cellar/openssl@3/3.0.5/include/openssl/engine.h:478:1: note: 'ENGINE_ctrl_cmd_string' has been explicitly marked deprecated here
npm ERR! OSSL_DEPRECATEDIN_3_0
npm ERR! ^
npm ERR! /opt/homebrew/Cellar/openssl@3/3.0.5/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
npm ERR! #   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
npm ERR!                                                 ^
npm ERR! /opt/homebrew/Cellar/openssl@3/3.0.5/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
npm ERR! #     define OSSL_DEPRECATED(since) __attribute__((deprecated))
npm ERR!                                                    ^
npm ERR! rdkafka_ssl.c:1440:17: warning: 'ENGINE_free' is deprecated [-Wdeprecated-declarations]
npm ERR!                 ENGINE_free(engine);
npm ERR!                 ^
npm ERR! /opt/homebrew/Cellar/openssl@3/3.0.5/include/openssl/engine.h:493:1: note: 'ENGINE_free' has been explicitly marked deprecated here
npm ERR! OSSL_DEPRECATEDIN_3_0 int ENGINE_free(ENGINE *e);
npm ERR! ^
npm ERR! /opt/homebrew/Cellar/openssl@3/3.0.5/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
npm ERR! #   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
npm ERR!                                                 ^
npm ERR! /opt/homebrew/Cellar/openssl@3/3.0.5/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
npm ERR! #     define OSSL_DEPRECATED(since) __attribute__((deprecated))
npm ERR!                                                    ^
npm ERR! rdkafka_ssl.c:1447:14: warning: 'ENGINE_ctrl_cmd_string' is deprecated [-Wdeprecated-declarations]
npm ERR!         if (!ENGINE_ctrl_cmd_string(engine, "LIST_ADD", "1", 0)) {
npm ERR!              ^
npm ERR! /opt/homebrew/Cellar/openssl@3/3.0.5/include/openssl/engine.h:478:1: note: 'ENGINE_ctrl_cmd_string' has been explicitly marked deprecated here
npm ERR! OSSL_DEPRECATEDIN_3_0
npm ERR! ^
npm ERR! /opt/homebrew/Cellar/openssl@3/3.0.5/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
npm ERR! #   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
npm ERR!                                                 ^
npm ERR! /opt/homebrew/Cellar/openssl@3/3.0.5/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
npm ERR! #     define OSSL_DEPRECATED(since) __attribute__((deprecated))
npm ERR!                                                    ^
npm ERR! rdkafka_ssl.c:1448:17: warning: 'ENGINE_free' is deprecated [-Wdeprecated-declarations]
npm ERR!                 ENGINE_free(engine);
npm ERR!                 ^
npm ERR! /opt/homebrew/Cellar/openssl@3/3.0.5/include/openssl/engine.h:493:1: note: 'ENGINE_free' has been explicitly marked deprecated here
npm ERR! OSSL_DEPRECATEDIN_3_0 int ENGINE_free(ENGINE *e);
npm ERR! ^
npm ERR! /opt/homebrew/Cellar/openssl@3/3.0.5/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
npm ERR! #   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
npm ERR!                                                 ^
npm ERR! /opt/homebrew/Cellar/openssl@3/3.0.5/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
npm ERR! #     define OSSL_DEPRECATED(since) __attribute__((deprecated))
npm ERR!                                                    ^
npm ERR! rdkafka_ssl.c:1455:14: warning: 'ENGINE_ctrl_cmd_string' is deprecated [-Wdeprecated-declarations]
npm ERR!         if (!ENGINE_ctrl_cmd_string(engine, "LOAD", NULL, 0)) {
npm ERR!              ^
npm ERR! /opt/homebrew/Cellar/openssl@3/3.0.5/include/openssl/engine.h:478:1: note: 'ENGINE_ctrl_cmd_string' has been explicitly marked deprecated here
npm ERR! OSSL_DEPRECATEDIN_3_0
npm ERR! ^
npm ERR! /opt/homebrew/Cellar/openssl@3/3.0.5/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
npm ERR! #   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
npm ERR!                                                 ^
npm ERR! /opt/homebrew/Cellar/openssl@3/3.0.5/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
npm ERR! #     define OSSL_DEPRECATED(since) __attribute__((deprecated))
npm ERR!                                                    ^
npm ERR! rdkafka_ssl.c:1456:17: warning: 'ENGINE_free' is deprecated [-Wdeprecated-declarations]
npm ERR!                 ENGINE_free(engine);
npm ERR!                 ^
npm ERR! /opt/homebrew/Cellar/openssl@3/3.0.5/include/openssl/engine.h:493:1: note: 'ENGINE_free' has been explicitly marked deprecated here
npm ERR! OSSL_DEPRECATEDIN_3_0 int ENGINE_free(ENGINE *e);
npm ERR! ^
npm ERR! /opt/homebrew/Cellar/openssl@3/3.0.5/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
npm ERR! #   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
npm ERR!                                                 ^
npm ERR! /opt/homebrew/Cellar/openssl@3/3.0.5/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
npm ERR! #     define OSSL_DEPRECATED(since) __attribute__((deprecated))
npm ERR!                                                    ^
npm ERR! rdkafka_ssl.c:1463:14: warning: 'ENGINE_init' is deprecated [-Wdeprecated-declarations]
npm ERR!         if (!ENGINE_init(engine)) {
npm ERR!              ^
npm ERR! /opt/homebrew/Cellar/openssl@3/3.0.5/include/openssl/engine.h:620:1: note: 'ENGINE_init' has been explicitly marked deprecated here
npm ERR! OSSL_DEPRECATEDIN_3_0 int ENGINE_init(ENGINE *e);
npm ERR! ^
npm ERR! /opt/homebrew/Cellar/openssl@3/3.0.5/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
npm ERR! #   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
npm ERR!                                                 ^
npm ERR! /opt/homebrew/Cellar/openssl@3/3.0.5/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
npm ERR! #     define OSSL_DEPRECATED(since) __attribute__((deprecated))
npm ERR!                                                    ^
npm ERR! rdkafka_ssl.c:1464:17: warning: 'ENGINE_free' is deprecated [-Wdeprecated-declarations]
npm ERR!                 ENGINE_free(engine);
npm ERR!                 ^
npm ERR! /opt/homebrew/Cellar/openssl@3/3.0.5/include/openssl/engine.h:493:1: note: 'ENGINE_free' has been explicitly marked deprecated here
npm ERR! OSSL_DEPRECATEDIN_3_0 int ENGINE_free(ENGINE *e);
npm ERR! ^
npm ERR! /opt/homebrew/Cellar/openssl@3/3.0.5/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
npm ERR! #   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
npm ERR!                                                 ^
npm ERR! /opt/homebrew/Cellar/openssl@3/3.0.5/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
npm ERR! #     define OSSL_DEPRECATED(since) __attribute__((deprecated))
npm ERR!                                                    ^
npm ERR! rdkafka_ssl.c:1607:44: warning: 'ENGINE_free' is deprecated [-Wdeprecated-declarations]
npm ERR!         RD_IF_FREE(rk->rk_conf.ssl.engine, ENGINE_free);
npm ERR!                                            ^
npm ERR! /opt/homebrew/Cellar/openssl@3/3.0.5/include/openssl/engine.h:493:1: note: 'ENGINE_free' has been explicitly marked deprecated here
npm ERR! OSSL_DEPRECATEDIN_3_0 int ENGINE_free(ENGINE *e);
npm ERR! ^
npm ERR! /opt/homebrew/Cellar/openssl@3/3.0.5/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
npm ERR! #   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
npm ERR!                                                 ^
npm ERR! /opt/homebrew/Cellar/openssl@3/3.0.5/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
npm ERR! #     define OSSL_DEPRECATED(since) __attribute__((deprecated))
npm ERR!                                                    ^
npm ERR! 16 warnings generated.
npm ERR! ld: warning: ignoring file /opt/homebrew/Cellar/openssl@3/3.0.5/lib/libcrypto.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
npm ERR! ld: warning: ignoring file /opt/homebrew/Cellar/openssl@3/3.0.5/lib/libssl.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
npm ERR! Undefined symbols for architecture x86_64:
npm ERR!   "_BIO_ctrl", referenced from:
npm ERR!       _rd_kafka_conf_set_ssl_cert in rdkafka_cert.o
npm ERR!   "_BIO_free", referenced from:
npm ERR!       _rd_kafka_conf_set_ssl_cert in rdkafka_cert.o
npm ERR!       _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
npm ERR!   "_BIO_new_file", referenced from:
npm ERR!       _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
npm ERR!   "_BIO_new_mem_buf", referenced from:
npm ERR!       _rd_kafka_conf_set_ssl_cert in rdkafka_cert.o
npm ERR!       _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
npm ERR!   "_CRYPTO_free", referenced from:
npm ERR!       _rd_kafka_transport_ssl_cert_verify_cb in rdkafka_ssl.o
npm ERR!   "_ENGINE_by_id", referenced from:
npm ERR!       _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
npm ERR!   "_ENGINE_ctrl_cmd_string", referenced from:
npm ERR!       _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
npm ERR!   "_ENGINE_free", referenced from:
npm ERR!       _rd_kafka_ssl_ctx_term in rdkafka_ssl.o
npm ERR!       _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
npm ERR!   "_ENGINE_init", referenced from:
npm ERR!       _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
npm ERR!   "_ENGINE_load_ssl_client_cert", referenced from:
npm ERR!       _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
npm ERR!   "_ERR_clear_error", referenced from:
npm ERR!       _rd_kafka_conf_set_ssl_cert in rdkafka_cert.o
npm ERR!       _rd_kafka_transport_ssl_send in rdkafka_ssl.o
npm ERR!       _rd_kafka_transport_ssl_recv in rdkafka_ssl.o
npm ERR!       _rd_kafka_transport_ssl_connect in rdkafka_ssl.o
npm ERR!   "_ERR_error_string_n", referenced from:
npm ERR!       _rd_kafka_ssl_error in rdkafka_ssl.o
npm ERR!   "_ERR_func_error_string", referenced from:
npm ERR!       _rd_kafka_ssl_last_error_str in rdkafka_ssl.o
npm ERR!   "_ERR_get_error_line_data", referenced from:
npm ERR!       _rd_kafka_ssl_error in rdkafka_ssl.o
npm ERR!   "_ERR_lib_error_string", referenced from:
npm ERR!       _rd_kafka_ssl_last_error_str in rdkafka_ssl.o
npm ERR!   "_ERR_peek_error", referenced from:
npm ERR!       _rd_kafka_transport_ssl_io_update in rdkafka_ssl.o
npm ERR!   "_ERR_peek_last_error_line_data", referenced from:
npm ERR!       _rd_kafka_ssl_last_error_str in rdkafka_ssl.o
npm ERR!   "_ERR_reason_error_string", referenced from:
npm ERR!       _rd_kafka_ssl_last_error_str in rdkafka_ssl.o
npm ERR!   "_EVP_DecodeBlock", referenced from:
npm ERR!       _rd_kafka_sasl_scram_fsm in rdkafka_sasl_scram.o
npm ERR!       _rd_kafka_oidc_token_refresh_cb in rdkafka_sasl_oauthbearer_oidc.o
npm ERR!   "_EVP_EncodeBlock", referenced from:
npm ERR!       _rd_kafka_sasl_scram_build_client_final_message in rdkafka_sasl_scram.o
npm ERR!       _rd_kafka_oauthbearer_unsecured_token0 in rdkafka_sasl_oauthbearer.o
npm ERR!       _rd_kafka_oidc_token_refresh_cb in rdkafka_sasl_oauthbearer_oidc.o
npm ERR!   "_EVP_PKEY_free", referenced from:
npm ERR!       _rd_kafka_conf_set_ssl_cert in rdkafka_cert.o
npm ERR!       _rd_kafka_cert_destroy in rdkafka_cert.o
npm ERR!       _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
npm ERR!   "_EVP_PKEY_new", referenced from:
npm ERR!       _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
npm ERR!   "_EVP_sha1", referenced from:
npm ERR!       _rd_kafka_sasl_scram_conf_validate in rdkafka_sasl_scram.o
npm ERR!   "_EVP_sha256", referenced from:
npm ERR!       _rd_kafka_sasl_scram_conf_validate in rdkafka_sasl_scram.o
npm ERR!   "_EVP_sha512", referenced from:
npm ERR!       _rd_kafka_sasl_scram_conf_validate in rdkafka_sasl_scram.o
npm ERR!   "_HMAC", referenced from:
npm ERR!       _rd_kafka_sasl_scram_Hi in rdkafka_sasl_scram.o
npm ERR!       _rd_kafka_sasl_scram_HMAC in rdkafka_sasl_scram.o
npm ERR!   "_OPENSSL_sk_free", referenced from:
npm ERR!       _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
npm ERR!   "_OPENSSL_sk_new_null", referenced from:
npm ERR!       _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
npm ERR!   "_OPENSSL_sk_num", referenced from:
npm ERR!       _rd_kafka_conf_set_ssl_cert in rdkafka_cert.o
npm ERR!       _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
npm ERR!   "_OPENSSL_sk_pop_free", referenced from:
npm ERR!       _rd_kafka_conf_set_ssl_cert in rdkafka_cert.o
npm ERR!       _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
npm ERR!   "_OPENSSL_sk_push", referenced from:
npm ERR!       _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
npm ERR!   "_OPENSSL_sk_value", referenced from:
npm ERR!       _rd_kafka_conf_set_ssl_cert in rdkafka_cert.o
npm ERR!       _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
npm ERR!   "_OpenSSL_version", referenced from:
npm ERR!       _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
npm ERR!   "_OpenSSL_version_num", referenced from:
npm ERR!       _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
npm ERR!   "_PEM_read_bio_PrivateKey", referenced from:
npm ERR!       _rd_kafka_conf_set_ssl_cert in rdkafka_cert.o
npm ERR!       _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
npm ERR!   "_PEM_read_bio_X509", referenced from:
npm ERR!       _rd_kafka_conf_set_ssl_cert in rdkafka_cert.o
npm ERR!       _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
npm ERR!   "_PKCS12_free", referenced from:
npm ERR!       _rd_kafka_conf_set_ssl_cert in rdkafka_cert.o
npm ERR!       _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
npm ERR!   "_PKCS12_parse", referenced from:
npm ERR!       _rd_kafka_conf_set_ssl_cert in rdkafka_cert.o
npm ERR!       _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
npm ERR!   "_SHA1", referenced from:
npm ERR!       _rd_kafka_sasl_scram_conf_validate in rdkafka_sasl_scram.o
npm ERR!   "_SHA256", referenced from:
npm ERR!       _rd_kafka_sasl_scram_conf_validate in rdkafka_sasl_scram.o
npm ERR!   "_SHA512", referenced from:
npm ERR!       _rd_kafka_sasl_scram_conf_validate in rdkafka_sasl_scram.o
npm ERR!   "_SSL_CTX_check_private_key", referenced from:
npm ERR!       _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
npm ERR!   "_SSL_CTX_ctrl", referenced from:
npm ERR!       _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
npm ERR!   "_SSL_CTX_free", referenced from:
npm ERR!       _rd_kafka_ssl_ctx_term in rdkafka_ssl.o
npm ERR!       _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
npm ERR!   "_SSL_CTX_get_cert_store", referenced from:
npm ERR!       _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
npm ERR!   "_SSL_CTX_load_verify_locations", referenced from:
npm ERR!       _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
npm ERR!   "_SSL_CTX_new", referenced from:
npm ERR!       _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
npm ERR!   "_SSL_CTX_set_cert_store", referenced from:
npm ERR!       _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
npm ERR!   "_SSL_CTX_set_cipher_list", referenced from:
npm ERR!       _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
npm ERR!   "_SSL_CTX_set_default_passwd_cb", referenced from:
npm ERR!       _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
npm ERR!   "_SSL_CTX_set_default_passwd_cb_userdata", referenced from:
npm ERR!       _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
npm ERR!   "_SSL_CTX_set_default_verify_paths", referenced from:
npm ERR!       _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
npm ERR!   "_SSL_CTX_set_options", referenced from:
npm ERR!       _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
npm ERR!   "_SSL_CTX_set_verify", referenced from:
npm ERR!       _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
npm ERR!   "_SSL_CTX_use_PrivateKey", referenced from:
npm ERR!       _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
npm ERR!   "_SSL_CTX_use_PrivateKey_file", referenced from:
npm ERR!       _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
npm ERR!   "_SSL_CTX_use_certificate", referenced from:
npm ERR!       _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
npm ERR!   "_SSL_CTX_use_certificate_chain_file", referenced from:
npm ERR!       _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
npm ERR!   "_SSL_connect", referenced from:
npm ERR!       _rd_kafka_transport_ssl_connect in rdkafka_ssl.o
npm ERR!   "_SSL_ctrl", referenced from:
npm ERR!       _rd_kafka_transport_ssl_connect in rdkafka_ssl.o
npm ERR!   "_SSL_do_handshake", referenced from:
npm ERR!       _rd_kafka_transport_ssl_handshake in rdkafka_ssl.o
npm ERR!   "_SSL_free", referenced from:
npm ERR!       _rd_kafka_transport_ssl_close in rdkafka_ssl.o
npm ERR!   "_SSL_get1_peer_certificate", referenced from:
npm ERR!       _rd_kafka_transport_ssl_handshake in rdkafka_ssl.o
npm ERR!   "_SSL_get_error", referenced from:
npm ERR!       _rd_kafka_transport_ssl_io_update in rdkafka_ssl.o
npm ERR!   "_SSL_get_verify_result", referenced from:
npm ERR!       _rd_kafka_transport_ssl_handshake in rdkafka_ssl.o
npm ERR!   "_SSL_new", referenced from:
npm ERR!       _rd_kafka_transport_ssl_connect in rdkafka_ssl.o
npm ERR!   "_SSL_read", referenced from:
npm ERR!       _rd_kafka_transport_ssl_recv in rdkafka_ssl.o
npm ERR!   "_SSL_set1_host", referenced from:
npm ERR!       _rd_kafka_transport_ssl_connect in rdkafka_ssl.o
npm ERR!   "_SSL_set_fd", referenced from:
npm ERR!       _rd_kafka_transport_ssl_connect in rdkafka_ssl.o
npm ERR!   "_SSL_shutdown", referenced from:
npm ERR!       _rd_kafka_transport_ssl_close in rdkafka_ssl.o
npm ERR!   "_SSL_write", referenced from:
npm ERR!       _rd_kafka_transport_ssl_send in rdkafka_ssl.o
npm ERR!   "_TLS_client_method", referenced from:
npm ERR!       _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
npm ERR!   "_X509_NAME_oneline", referenced from:
npm ERR!       _rd_kafka_transport_ssl_cert_verify_cb in rdkafka_ssl.o
npm ERR!   "_X509_OBJECT_get0_X509", referenced from:
npm ERR!       _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
npm ERR!   "_X509_STORE_CTX_get_current_cert", referenced from:
npm ERR!       _rd_kafka_transport_ssl_cert_verify_cb in rdkafka_ssl.o
npm ERR!   "_X509_STORE_CTX_get_error", referenced from:
npm ERR!       _rd_kafka_transport_ssl_cert_verify_cb in rdkafka_ssl.o
npm ERR!   "_X509_STORE_CTX_get_error_depth", referenced from:
npm ERR!       _rd_kafka_transport_ssl_cert_verify_cb in rdkafka_ssl.o
npm ERR!   "_X509_STORE_CTX_set_error", referenced from:
npm ERR!       _rd_kafka_transport_ssl_cert_verify_cb in rdkafka_ssl.o
npm ERR!   "_X509_STORE_add_cert", referenced from:
npm ERR!       _rd_kafka_conf_set_ssl_cert in rdkafka_cert.o
npm ERR!       _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
npm ERR!   "_X509_STORE_free", referenced from:
npm ERR!       _rd_kafka_cert_destroy in rdkafka_cert.o
npm ERR!   "_X509_STORE_get0_objects", referenced from:
npm ERR!       _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
npm ERR!   "_X509_STORE_new", referenced from:
npm ERR!       _rd_kafka_conf_set_ssl_cert in rdkafka_cert.o
npm ERR!   "_X509_STORE_set_flags", referenced from:
npm ERR!       _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
npm ERR!   "_X509_free", referenced from:
npm ERR!       _rd_kafka_conf_set_ssl_cert in rdkafka_cert.o
npm ERR!       _rd_kafka_cert_destroy in rdkafka_cert.o
npm ERR!       _rd_kafka_transport_ssl_handshake in rdkafka_ssl.o
npm ERR!       _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
npm ERR!   "_X509_get_issuer_name", referenced from:
npm ERR!       _rd_kafka_transport_ssl_cert_verify_cb in rdkafka_ssl.o
npm ERR!   "_X509_get_subject_name", referenced from:
npm ERR!       _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
npm ERR!       _rd_kafka_transport_ssl_cert_verify_cb in rdkafka_ssl.o
npm ERR!   "_X509_new", referenced from:
npm ERR!       _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
npm ERR!   "_X509_verify_cert_error_string", referenced from:
npm ERR!       _rd_kafka_transport_ssl_handshake in rdkafka_ssl.o
npm ERR!   "_d2i_PKCS12_bio", referenced from:
npm ERR!       _rd_kafka_conf_set_ssl_cert in rdkafka_cert.o
npm ERR!       _rd_kafka_ssl_ctx_init in rdkafka_ssl.o
npm ERR!   "_d2i_PrivateKey_bio", referenced from:
npm ERR!       _rd_kafka_conf_set_ssl_cert in rdkafka_cert.o
npm ERR!   "_d2i_X509_bio", referenced from:
npm ERR!       _rd_kafka_conf_set_ssl_cert in rdkafka_cert.o
npm ERR!   "_i2d_X509", referenced from:
npm ERR!       _rd_kafka_transport_ssl_cert_verify_cb in rdkafka_ssl.o
npm ERR! ld: symbol(s) not found for architecture x86_64
npm ERR! clang: error: linker command failed with exit code 1 (use -v to see invocation)
npm ERR! make[2]: *** [librdkafka.1.dylib] Error 1
npm ERR! make[1]: *** [libs] Error 2
npm ERR! make: *** [11a9e3388a67e1ca5c31c1d8da49cb6d2714eb41.intermediate] Error 2
npm ERR! gyp ERR! build error
npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2
npm ERR! gyp ERR! stack     at ChildProcess.onExit (/Users/sher/github/firefly-ui/node_modules/node-rdkafka/node_modules/node-gyp/lib/build.js:194:23)
npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:513:28)
npm ERR! gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:293:12)
npm ERR! gyp ERR! System Darwin 22.1.0
npm ERR! gyp ERR! command "/Users/sher/.nvm/versions/node/v16.18.1/bin/node" "/Users/sher/github/firefly-ui/node_modules/node-rdkafka/node_modules/.bin/node-gyp" "rebuild"
npm ERR! gyp ERR! cwd /Users/sher/github/firefly-ui/node_modules/node-rdkafka
npm ERR! gyp ERR! node -v v16.18.1
npm ERR! gyp ERR! node-gyp -v v8.4.1
npm ERR! gyp ERR! not ok

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/sher/.npm/_logs/2022-12-01T14_59_29_223Z-debug-0.log
Paste your log here, between the backticks. It can be:
  - npm --verbose output,
  - or contents of npm-debug.log,
  - or output of node-gyp rebuild --verbose.
Include the command you were trying to run.

This should look like this:

>npm --verbose
npm info it worked if it ends with ok
npm verb cli [
npm verb cli   'C:\\...\\node\\13.9.0\\x64\\node.exe',
npm verb cli   'C:\\...\\node\\13.9.0\\x64\\node_modules\\npm\\bin\\npm-cli.js',
npm verb cli   '--verbose'
npm verb cli ]
npm info using [email protected]
npm info using [email protected]

Usage: npm <command>
(...)

Sher-Chowdhury avatar Dec 01 '22 15:12 Sher-Chowdhury

I think this error might be linked to how I installed Python, which I've done using pyenv.

I tried doing npm config set python /Users/xxxx/.pyenv/shims/python, then restarted my terminal. I was then able to install node-gyp for node 14, but still failing on node 16.

Sher-Chowdhury avatar Dec 01 '22 15:12 Sher-Chowdhury

Check this https://harsh-patel.medium.com/node-gyp-error-gyp-failed-with-exit-code-1-macos-npm-5aeaf75996d4

dileep006 avatar Dec 21 '22 23:12 dileep006

Check this https://harsh-patel.medium.com/node-gyp-error-gyp-failed-with-exit-code-1-macos-npm-5aeaf75996d4

This link is broken

gcobr avatar Jan 27 '23 02:01 gcobr