Closed hackmad closed 6 years ago
Can you check if libcrypto
is installed? It should be provided in the openssl
library.
I used homebrew to install openssl. libcrypto
does exist and seems to be linked correctly:
$ brew list openssl
/usr/local/Cellar/openssl/1.0.2n/.bottle/etc/ (8 files)
/usr/local/Cellar/openssl/1.0.2n/bin/c_rehash
/usr/local/Cellar/openssl/1.0.2n/bin/openssl
/usr/local/Cellar/openssl/1.0.2n/include/openssl/ (75 files)
/usr/local/Cellar/openssl/1.0.2n/lib/libcrypto.1.0.0.dylib
/usr/local/Cellar/openssl/1.0.2n/lib/libssl.1.0.0.dylib
/usr/local/Cellar/openssl/1.0.2n/lib/engines/ (12 files)
/usr/local/Cellar/openssl/1.0.2n/lib/pkgconfig/ (3 files)
/usr/local/Cellar/openssl/1.0.2n/lib/ (4 other files)
/usr/local/Cellar/openssl/1.0.2n/share/man/ (1680 files)
$ ls -la /usr/local/opt/openssl/lib/libcrypto*
-r--r--r-- 1 akabani admin 1991944 12 Mar 10:26 /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib
-r--r--r-- 1 akabani admin 3329680 7 Dec 08:19 /usr/local/opt/openssl/lib/libcrypto.a
lrwxr-xr-x 1 akabani admin 21 7 Dec 08:19 /usr/local/opt/openssl/lib/libcrypto.dylib -> libcrypto.1.0.0.dylib
$ ls -la /usr/local/lib/libcrypto*
lrwxr-xr-x 1 akabani staff 48 16 May 2017 /usr/local/lib/libcrypto.1.0.0.dylib -> /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib
When re-installing openssl I get this notice:
For compilers to find this software you may need to set:
LDFLAGS: -L/usr/local/opt/openssl/lib
CPPFLAGS: -I/usr/local/opt/openssl/include
For pkg-config to find this software you may need to set:
PKG_CONFIG_PATH: /usr/local/opt/openssl/lib/pkgconfig
So if I do this, our project can then install and compile the dependencies.
CPPFLAGS=-I/usr/local/opt/openssl/include LDFLAGS=-L/usr/local/opt/openssl/lib npm install
I get this problem when I try to run a producer:
Error: dlopen(/Users/akabani/Documents/source/git/node-rdkafka-demo/node_modules/node-rdkafka/build/Release/node-librdkafka.node, 1): Library not loaded: /usr/local/lib/librdkafka++.1.dylib
Referenced from: /Users/akabani/Documents/source/git/node-rdkafka-demo/node_modules/node-rdkafka/build/Release/node-librdkafka.node
Reason: image not found
at Object.Module._extensions..node (module.js:691:18)
at Module.load (module.js:575:32)
at tryModuleLoad (module.js:515:12)
at Function.Module._load (module.js:507:3)
at Module.require (module.js:606:17)
at require (internal/module.js:11:18)
at bindings (/Users/akabani/Documents/source/git/node-rdkafka-demo/node_modules/bindings/bindings.js:81:44)
at Object.<anonymous> (/Users/akabani/Documents/source/git/node-rdkafka-demo/node_modules/node-rdkafka/librdkafka.js:10:32)
at Module._compile (module.js:662:30)
at Object.Module._extensions..js (module.js:673:10)
I have to manually copy it from the Release folder to /usr/local/lib/:
cp ./node_modules/node-rdkafka/build/Release/librdkafka* /usr/local/lib/
I have exactly the same problem.
I have the same problem. And I observe the same behaviour as @hackmad when running libcrypto
diagnosis. I'm running MacOS High Sierra (10.13.3) and Node v9.7.1
I am having the same issue.
same issue as above - image not found error. Error occurs on version 2.3.0 and 2.0.0
Experiencing the same issue.
If the environment DYLD_LIBRARY_PATH
is set to the directory containing the compiled library, then the application should load without any issues. Here is how the scripts section of my app's package.json looks likes
"scripts": {
"start": "export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:`pwd`/node_modules/node-rdkafka/build/Release && node index.js"
}
That is a way to solve it but it shouldn't be required. I believe the runpath is not being set correctly and am working on a fix.
@rajkiranrbala thank you I will test this out soon. @webmakersteve thanks for getting a fix in place.
Can you try 2.3.1? Just made a change to the build script and added OSX to the travis build to just ensure compilation succeeded.
So I still have to add the CPPFLAGS and LDFLAGS when running npm install with 2.3.1. I'm also still getting the "image not found" error. However, it is looking for the libraries in a folder called node_modules/.staging/node-rdkafka-68ac5f73/build/Release
.
/Users/akabani/Documents/source/git/node-rdkafka-demo/node_modules/bindings/bindings.js:88
throw e
^
Error: dlopen(/Users/akabani/Documents/source/git/node-rdkafka-demo/node_modules/node-rdkafka/build/Release/node-librdkafka.node, 1): Library not loaded: /Users/akabani/Documents/source/git/node-rdkafka-demo/node_modules/.staging/node-rdkafka-68ac5f73/build/Release/librdkafka++.1.dylib
Referenced from: /Users/akabani/Documents/source/git/node-rdkafka-demo/node_modules/node-rdkafka/build/Release/node-librdkafka.node
Reason: image not found
at Object.Module._extensions..node (module.js:691:18)
at Module.load (module.js:575:32)
at tryModuleLoad (module.js:515:12)
at Function.Module._load (module.js:507:3)
at Module.require (module.js:606:17)
at require (internal/module.js:11:18)
at bindings (/Users/akabani/Documents/source/git/node-rdkafka-demo/node_modules/bindings/bindings.js:81:44)
at Object.<anonymous> (/Users/akabani/Documents/source/git/node-rdkafka-demo/node_modules/node-rdkafka/librdkafka.js:10:32)
at Module._compile (module.js:662:30)
at Object.Module._extensions..js (module.js:673:10)
That should be the correct place. What files are in that directory? Can you use otool -L
and otool -l
on node-librdkafka.node
and send me the output?
For what it's worth, this build is working on the new Travis mac builder. But that isn't to say the build is accommodating for every possible situation 😛
At some point during npm install
, node_modules/.staging
contains folders but during the build it is cleaned out and after its done the folder is removed.
$ otool -L node_modules/node-rdkafka/build/Release/node-librdkafka.node
node_modules/node-rdkafka/build/Release/node-librdkafka.node:
/Users/akabani/Documents/source/git/node-rdkafka-demo/node_modules/.staging/node-rdkafka-68ac5f73/build/Release/librdkafka++.1.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 400.9.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1252.0.0)
$ otool -l node_modules/node-rdkafka/build/Release/node-librdkafka.node
node_modules/node-rdkafka/build/Release/node-librdkafka.node:
Mach header
magic cputype cpusubtype caps filetype ncmds sizeofcmds flags
0xfeedfacf 16777223 3 0x00 8 14 1760 0x00018085
Load command 0
cmd LC_SEGMENT_64
cmdsize 552
segname __TEXT
vmaddr 0x0000000000000000
vmsize 0x000000000001a000
fileoff 0
filesize 106496
maxprot 0x00000007
initprot 0x00000005
nsects 6
flags 0x0
Section
sectname __text
segname __TEXT
addr 0x000000000000163c
size 0x0000000000015fd9
offset 5692
align 2^2 (4)
reloff 0
nreloc 0
flags 0x80000400
reserved1 0
reserved2 0
Section
sectname __stubs
segname __TEXT
addr 0x0000000000017616
size 0x0000000000000342
offset 95766
align 2^1 (2)
reloff 0
nreloc 0
flags 0x80000408
reserved1 0 (index into indirect symbol table)
reserved2 6 (size of stubs)
Section
sectname __stub_helper
segname __TEXT
addr 0x0000000000017958
size 0x0000000000000556
offset 96600
align 2^2 (4)
reloff 0
nreloc 0
flags 0x80000400
reserved1 0
reserved2 0
Section
sectname __const
segname __TEXT
addr 0x0000000000017eb0
size 0x0000000000000918
offset 97968
align 2^4 (16)
reloff 0
nreloc 0
flags 0x00000000
reserved1 0
reserved2 0
Section
sectname __cstring
segname __TEXT
addr 0x00000000000187c8
size 0x000000000000134c
offset 100296
align 2^0 (1)
reloff 0
nreloc 0
flags 0x00000002
reserved1 0
reserved2 0
Section
sectname __unwind_info
segname __TEXT
addr 0x0000000000019b14
size 0x00000000000004e8
offset 105236
align 2^2 (4)
reloff 0
nreloc 0
flags 0x00000000
reserved1 0
reserved2 0
Load command 1
cmd LC_SEGMENT_64
cmdsize 632
segname __DATA
vmaddr 0x000000000001a000
vmsize 0x0000000000002000
fileoff 106496
filesize 8192
maxprot 0x00000007
initprot 0x00000003
nsects 7
flags 0x0
Section
sectname __nl_symbol_ptr
segname __DATA
addr 0x000000000001a000
size 0x0000000000000010
offset 106496
align 2^3 (8)
reloff 0
nreloc 0
flags 0x00000006
reserved1 139 (index into indirect symbol table)
reserved2 0
Section
sectname __got
segname __DATA
addr 0x000000000001a010
size 0x00000000000000b8
offset 106512
align 2^3 (8)
reloff 0
nreloc 0
flags 0x00000006
reserved1 141 (index into indirect symbol table)
reserved2 0
Section
sectname __la_symbol_ptr
segname __DATA
addr 0x000000000001a0c8
size 0x0000000000000458
offset 106696
align 2^3 (8)
reloff 0
nreloc 0
flags 0x00000007
reserved1 164 (index into indirect symbol table)
reserved2 0
Section
sectname __mod_init_func
segname __DATA
addr 0x000000000001a520
size 0x0000000000000008
offset 107808
align 2^3 (8)
reloff 0
nreloc 0
flags 0x00000009
reserved1 0
reserved2 0
Section
sectname __const
segname __DATA
addr 0x000000000001a530
size 0x0000000000000a08
offset 107824
align 2^4 (16)
reloff 0
nreloc 0
flags 0x00000000
reserved1 0
reserved2 0
Section
sectname __data
segname __DATA
addr 0x000000000001af40
size 0x00000000000002b0
offset 110400
align 2^4 (16)
reloff 0
nreloc 0
flags 0x00000000
reserved1 0
reserved2 0
Section
sectname __common
segname __DATA
addr 0x000000000001b1f0
size 0x0000000000000018
offset 0
align 2^3 (8)
reloff 0
nreloc 0
flags 0x00000001
reserved1 0
reserved2 0
Load command 2
cmd LC_SEGMENT_64
cmdsize 72
segname __LINKEDIT
vmaddr 0x000000000001c000
vmsize 0x0000000000025000
fileoff 114688
filesize 150052
maxprot 0x00000007
initprot 0x00000001
nsects 0
flags 0x0
Load command 3
cmd LC_DYLD_INFO_ONLY
cmdsize 48
rebase_off 114688
rebase_size 168
bind_off 114856
bind_size 656
weak_bind_off 115512
weak_bind_size 1608
lazy_bind_off 117120
lazy_bind_size 7048
export_off 124168
export_size 17672
Load command 4
cmd LC_SYMTAB
cmdsize 24
symoff 142472
nsyms 2589
stroff 185108
strsize 79632
Load command 5
cmd LC_DYSYMTAB
cmdsize 80
ilocalsym 0
nlocalsym 1988
iextdefsym 1988
nextdefsym 448
iundefsym 2436
nundefsym 153
tocoff 0
ntoc 0
modtaboff 0
nmodtab 0
extrefsymoff 0
nextrefsyms 0
indirectsymoff 183896
nindirectsyms 303
extreloff 0
nextrel 0
locreloff 0
nlocrel 0
Load command 6
cmd LC_UUID
cmdsize 24
uuid F7010423-05F5-392E-924E-39D591357C72
Load command 7
cmd LC_VERSION_MIN_MACOSX
cmdsize 16
version 10.11
sdk 10.13
Load command 8
cmd LC_SOURCE_VERSION
cmdsize 16
version 0.0
Load command 9
cmd LC_LOAD_DYLIB
cmdsize 160
name /Users/akabani/Documents/source/git/node-rdkafka-demo/node_modules/.staging/node-rdkafka-68ac5f73/build/Release/librdkafka++.1.dylib (offset 24)
time stamp 2 Wed Dec 31 19:00:02 1969
current version 0.0.0
compatibility version 0.0.0
Load command 10
cmd LC_LOAD_DYLIB
cmdsize 48
name /usr/lib/libc++.1.dylib (offset 24)
time stamp 2 Wed Dec 31 19:00:02 1969
current version 400.9.0
compatibility version 1.0.0
Load command 11
cmd LC_LOAD_DYLIB
cmdsize 56
name /usr/lib/libSystem.B.dylib (offset 24)
time stamp 2 Wed Dec 31 19:00:02 1969
current version 1252.0.0
compatibility version 1.0.0
Load command 12
cmd LC_FUNCTION_STARTS
cmdsize 16
dataoff 141840
datasize 616
Load command 13
cmd LC_DATA_IN_CODE
cmdsize 16
dataoff 142456
datasize 16
Ok. I was running Node v9.7.1. I switched to node v8.5.0 and everything worked correctly.
And strangely enough, switching back to v9.7.1 has fixed the issue!
I did clean out node_modules in each case and made sure to remove the libraries I manually copied to /usr/local/lib/
. Seems to be working properly.
Thanks.
I'm having the same issue.
/workspace/kafkaDemo/node_modules/bindings/bindings.js:88 throw e ^
Error: dlopen(/workspace/kafkaDemo/node_modules/node-rdkafka/build/Release/node-librdkafka.node, 1): Library not loaded: /workspace/kafkaDemo/node_modules/.staging/node-rdkafka-236c455d/build/Release/librdkafka++.1.dylib
Referenced from: /workspace/kafkaDemo/node_modules/node-rdkafka/build/Release/node-librdkafka.node
Reason: image not found
at Error (native)
at Object.Module._extensions..node (module.js:597:18)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at bindings (/workspace/kafkaDemo/node_modules/bindings/bindings.js:81:44)
at Object.
It says the library should be loaded from /workspace/kafkaDemo/node_modules/.staging/node-rdkafka-236c455d/build/Release/librdkafka++.1.dylib
. But this path doesn't exist.
I'm using node v6.10.0.
That file should get copied over in the librdkafka.gyp
release script. I'm going to play with some modifications so I can avoid needing to make that copy - or at least relying on it.
Can you try this again using master? Now leveraging make install
instead.
Hi, I still get this issue. I cannot do make install
. So when you talk about master, you mean the master branch? I tried make
in the folder node-rdkafka
, it throw a bunch of errors like
src/binding.h:10: #ifndef header guard has wrong style, please use: KAFKA_NODEJS_CONSOLE_SAMPLE_NODE_MODULES_NODE_RDKAFKA_SRC_BINDINGH [build/header_guard] [5] src/binding.h:24: #endif line should be "#endif // KAFKA_NODEJS_CONSOLE_SAMPLE_NODE_MODULES_NODE_RDKAFKA_SRC_BINDINGH" [build/header_guard] [5] Done processing src/binding.h src/callbacks.h:9: #ifndef header guard has wrong style, please use: KAFKA_NODEJS_CONSOLE_SAMPLE_NODE_MODULES_NODE_RDKAFKA_SRC_CALLBACKSH [build/header_guard] [5] src/callbacks.h:269: #endif line should be "#endif // KAFKA_NODEJS_CONSOLE_SAMPLE_NODE_MODULES_NODE_RDKAFKA_SRC_CALLBACKSH" [build/header_guard] [5] Done processing src/callbacks.h src/common.h:10: #ifndef header guard has wrong style, please use: KAFKA_NODEJS_CONSOLE_SAMPLE_NODE_MODULES_NODE_RDKAFKA_SRC_COMMONH [build/header_guard] [5] src/common.h:122: #endif line should be "#endif // KAFKA_NODEJS_CONSOLE_SAMPLE_NODE_MODULES_NODE_RDKAFKA_SRC_COMMONH" [build/header_guard] [5] Done processing src/common.h src/config.h:10: #ifndef header guard has wrong style, please use: KAFKA_NODEJS_CONSOLE_SAMPLE_NODE_MODULES_NODE_RDKAFKA_SRC_CONFIGH [build/header_guard] [5] src/config.h:41: #endif line should be "#endif // KAFKA_NODEJS_CONSOLE_SAMPLE_NODE_MODULES_NODE_RDKAFKA_SRC_CONFIGH" [build/header_guard] [5] Done processing src/config.h src/connection.h:10: #ifndef header guard has wrong style, please use: KAFKA_NODEJS_CONSOLE_SAMPLE_NODE_MODULES_NODE_RDKAFKA_SRC_CONNECTIONH [build/header_guard] [5] src/connection.h:95: #endif line should be "#endif // KAFKA_NODEJS_CONSOLE_SAMPLE_NODE_MODULES_NODE_RDKAFKA_SRC_CONNECTIONH" [build/header_guard] [5] Done processing src/connection.h src/errors.h:10: #ifndef header guard has wrong style, please use: KAFKA_NODEJS_CONSOLE_SAMPLE_NODE_MODULES_NODE_RDKAFKA_SRC_ERRORSH [build/header_guard] [5] src/errors.h:48: #endif line should be "#endif // KAFKA_NODEJS_CONSOLE_SAMPLE_NODE_MODULES_NODE_RDKAFKA_SRC_ERRORSH" [build/header_guard] [5] Done processing src/errors.h src/kafka-consumer.h:10: #ifndef header guard has wrong style, please use: KAFKA_NODEJS_CONSOLE_SAMPLE_NODE_MODULES_NODE_RDKAFKA_SRC_KAFKA_CONSUMERH [build/header_guard] [5] src/kafka-consumer.h:125: #endif line should be "#endif // KAFKA_NODEJS_CONSOLE_SAMPLE_NODE_MODULES_NODE_RDKAFKA_SRC_KAFKA_CONSUMERH" [build/header_guard] [5] Done processing src/kafka-consumer.h src/producer.h:10: #ifndef header guard has wrong style, please use: KAFKA_NODEJS_CONSOLE_SAMPLE_NODE_MODULES_NODE_RDKAFKA_SRC_PRODUCERH [build/header_guard] [5] src/producer.h:105: #endif line should be "#endif // KAFKA_NODEJS_CONSOLE_SAMPLE_NODE_MODULES_NODE_RDKAFKA_SRC_PRODUCERH" [build/header_guard] [5] Done processing src/producer.h src/topic.h:10: #ifndef header guard has wrong style, please use: KAFKA_NODEJS_CONSOLE_SAMPLE_NODE_MODULES_NODE_RDKAFKA_SRC_TOPICH [build/header_guard] [5] src/topic.h:54: #endif line should be "#endif // KAFKA_NODEJS_CONSOLE_SAMPLE_NODE_MODULES_NODE_RDKAFKA_SRC_TOPICH" [build/header_guard] [5] Done processing src/topic.h src/workers.h:10: #ifndef header guard has wrong style, please use: KAFKA_NODEJS_CONSOLE_SAMPLE_NODE_MODULES_NODE_RDKAFKA_SRC_WORKERSH [build/header_guard] [5] src/workers.h:356: #endif line should be "#endif // KAFKA_NODEJS_CONSOLE_SAMPLE_NODE_MODULES_NODE_RDKAFKA_SRC_WORKERSH" [build/header_guard] [5] Done processing src/workers.h
same issue on MacOS, any update ?
Does this work on 2.3.3? A coworker was having a similar problem and the adjustment I made to the gypfile fixed it for him.
Does not work for me for 2.2.3
Fred
Le 19 mai 2018 à 23:19, Stephen Parente notifications@github.com a écrit :
Does this work on 2.3.3? A coworker was having a similar problem and the adjustment I made to the gypfile fixed it for him.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Blizzard/node-rdkafka/issues/373#issuecomment-390433403, or mute the thread https://github.com/notifications/unsubscribe-auth/AAJYT2Fj_gfgs9MvjalTXMO5ePuAljbyks5t0IxmgaJpZM4Sm7oc.
Sorry, maybe it was a typo. Did you mean 2.3.3?
oups yes it is a typo 2.3.3
Le 19 mai 2018 à 23:31, Stephen Parente notifications@github.com a écrit :
Sorry, maybe it was a typo. Did you mean 2.3.3?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Blizzard/node-rdkafka/issues/373#issuecomment-390433982, or mute the thread https://github.com/notifications/unsubscribe-auth/AAJYT3WEYYIGGqohr5upPoDpkYAPDdyMks5t0I8igaJpZM4Sm7oc.
@fvisticot can you send me:
Information i can give you I’m running nodeJS 10
Do I need to install native version first ? (librdkafka)
_rd_kafka_transport_ssl_ctx_init in rdkafka_transport.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: [librdkafka.1.dylib] Error 1
make[1]: [libs] Error 2
make: *** [modules_node_rdkafka_deps_librdkafka_gyp_librdkafka_target_build_dependencies.intermediate] Error 2
rm __node_rdkafka_deps_librdkafka_gyp_librdkafka_target_build_dependencies.intermediate
gyp ERR! build error
gyp ERR! stack Error: make
failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack at ChildProcess.emit (events.js:182:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:225:12)
gyp ERR! System Darwin 17.5.0
gyp ERR! command "/usr/local/Cellar/node/9.3.0_1/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /node_modules/node-rdkafka
gyp ERR! node -v v10.0.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm WARN xxx@1.0.0 No description
npm WARN xxx@1.0.0 No repository field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-rdkafka@2.3.3 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-rdkafka@2.3.3 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
gyp ERR! build error
gyp ERR! stack Error: make
failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack at ChildProcess.emit (events.js:182:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:225:12)
gyp ERR! System Darwin 17.5.0
gyp ERR! command "/usr/local/Cellar/node/9.3.0_1/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /xxx/node_modules/node-rdkafka
gyp ERR! node -v v10.0.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
Le 19 mai 2018 à 23:35, Stephen Parente notifications@github.com a écrit :
@fvisticot https://github.com/fvisticot can you send me:
Contents of deps/librdkafka/config.h output of the npm install Contents of build/deps librdkafka config The code you are running that throws the error NPM version Node version OS Version — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Blizzard/node-rdkafka/issues/373#issuecomment-390434176, or mute the thread https://github.com/notifications/unsubscribe-auth/AAJYT6viUMd4WsmmZueEaH7EBMkhIupGks5t0JAPgaJpZM4Sm7oc.
_rd_kafka_transport_ssl_ctx_init
. It may be to do with this, but I need the lines before what you sent.
node-rdkafka@2.3.3 install /Users/fvisticot/Documents/2.GIT-OAB-REPO/gamification-wellness-server/node_modules/node-rdkafka node-gyp rebuild
ACTION _Users_fvisticot_Documents_2_GIT_OAB_REPO_gamification_wellness_server_node_modules_node_rdkafka_deps_librdkafka_gyp_librdkafka_target_configure /Users/fvisticot/Documents/2.GIT-OAB-REPO/gamification-wellness-server/node_modules/node-rdkafka/deps/librdkafka/config.h 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 for debug symbols compiler flag (-g...)... ok checking for pkgconfig (by command)... ok checking for install (by command)... failed 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 '0x000b04ff'... ok (0.11.4) 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 libdl (by pkg-config)... failed checking for libdl (by compile)... ok checking for zlib (by pkg-config)... ok checking for zlib (by compile)... ok (cached) checking for libcrypto (by pkg-config)... failed checking for libcrypto (by compile)... failed (disable) checking for liblz4 (by pkg-config)... failed checking for liblz4 (by compile)... failed (disable) checking for libssl (by pkg-config)... ok checking for libssl (by compile)... ok (cached) checking for libsasl2 (by pkg-config)... failed checking for libsasl2 (by compile)... ok checking for crc32chw (by compile)... ok checking for regex (by compile)... ok checking for strndup (by compile)... ok checking for strerror_r (by compile)... ok checking for pthread_setname_gnu (by compile)... failed (disable) checking for nm (by env NM)... ok (cached) Generated Makefile.config Generated config.h
Configuration summary: prefix /Users/fvisticot/Documents/2.GIT-OAB-REPO/gamification-wellness-server/node_modules/node-rdkafka/build/deps ARCH x86_64 CPU generic GEN_PKG_CONFIG y ENABLE_DEVEL n ENABLE_VALGRIND n ENABLE_REFCNT_DEBUG n ENABLE_SHAREDPTR_DEBUG n ENABLE_LZ4_EXT y ENABLE_SSL y ENABLE_SASL y libdir /Users/fvisticot/Documents/2.GIT-OAB-REPO/gamification-wellness-server/node_modules/node-rdkafka/build/deps MKL_APP_NAME librdkafka MKL_APP_DESC_ONELINE The Apache Kafka C/C++ library LDFLAGS -L/Users/fvisticot/Documents/2.GIT-OAB-REPO/gamification-wellness-server/node_modules/node-rdkafka/build/deps MKL_DISTRO osx SOLIB_EXT .dylib CC gcc CXX g++ LD ld NM nm OBJDUMP objdump STRIP strip CPPFLAGS -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align PKG_CONFIG pkg-config INSTALL install LIB_LDFLAGS -shared -dynamiclib -Wl,-install_name,$(DESTDIR)$(libdir)/$(LIBFILENAME) RDKAFKA_VERSION_STR 0.11.4 MKL_APP_VERSION 0.11.4 LIBS -lsasl2 -L/usr/local/Cellar/openssl/1.0.2o_1/lib -lssl -lz -ldl -lpthread CFLAGS -I/usr/local/Cellar/openssl/1.0.2o_1/include CXXFLAGS -Wno-non-virtual-dtor SYMDUMPER $(NM) -g exec_prefix /Users/fvisticot/Documents/2.GIT-OAB-REPO/gamification-wellness-server/node_modules/node-rdkafka/build/deps bindir /Users/fvisticot/Documents/2.GIT-OAB-REPO/gamification-wellness-server/node_modules/node-rdkafka/build/deps/bin sbindir /Users/fvisticot/Documents/2.GIT-OAB-REPO/gamification-wellness-server/node_modules/node-rdkafka/build/deps/sbin libexecdir /Users/fvisticot/Documents/2.GIT-OAB-REPO/gamification-wellness-server/node_modules/node-rdkafka/build/deps/libexec datadir /Users/fvisticot/Documents/2.GIT-OAB-REPO/gamification-wellness-server/node_modules/node-rdkafka/build/deps/share sysconfdir /Users/fvisticot/Documents/2.GIT-OAB-REPO/gamification-wellness-server/node_modules/node-rdkafka/build/deps/etc sharedstatedir /Users/fvisticot/Documents/2.GIT-OAB-REPO/gamification-wellness-server/node_modules/node-rdkafka/build/deps/com localstatedir /Users/fvisticot/Documents/2.GIT-OAB-REPO/gamification-wellness-server/node_modules/node-rdkafka/build/deps/var includedir /Users/fvisticot/Documents/2.GIT-OAB-REPO/gamification-wellness-server/node_modules/node-rdkafka/build/deps/include infodir /Users/fvisticot/Documents/2.GIT-OAB-REPO/gamification-wellness-server/node_modules/node-rdkafka/build/deps/info mandir /Users/fvisticot/Documents/2.GIT-OAB-REPO/gamification-wellness-server/node_modules/node-rdkafka/build/deps/man Generated config.cache
Now type 'make' to build
TOUCH _Users_fvisticot_Documents_2_GIT_OAB_REPO_gamification_wellness_server_node_modules_node_rdkafka_deps_librdkafka_gyp_librdkafka_target_build_dependencies.intermediate
ACTION _Users_fvisticot_Documents_2_GIT_OAB_REPO_gamification_wellness_server_node_modules_node_rdkafka_deps_librdkafka_gyp_librdkafka_target_build_dependencies _Users_fvisticot_Documents_2_GIT_OAB_REPO_gamification_wellness_server_node_modules_node_rdkafka_deps_librdkafka_gyp_librdkafka_target_build_dependencies.intermediate
gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\"" -I/usr/local/Cellar/openssl/1.0.2o_1/include -c rdkafka.c -o rdkafka.o
gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\"" -I/usr/local/Cellar/openssl/1.0.2o_1/include -c rdkafka_broker.c -o rdkafka_broker.o
gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\"" -I/usr/local/Cellar/openssl/1.0.2o_1/include -c rdkafka_msg.c -o rdkafka_msg.o
gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\"" -I/usr/local/Cellar/openssl/1.0.2o_1/include -c rdkafka_topic.c -o rdkafka_topic.o
gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\"" -I/usr/local/Cellar/openssl/1.0.2o_1/include -c rdkafka_conf.c -o rdkafka_conf.o
gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\"" -I/usr/local/Cellar/openssl/1.0.2o_1/include -c rdkafka_timer.c -o rdkafka_timer.o
gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\"" -I/usr/local/Cellar/openssl/1.0.2o_1/include -c rdkafka_offset.c -o rdkafka_offset.o
gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\"" -I/usr/local/Cellar/openssl/1.0.2o_1/include -c rdkafka_transport.c -o rdkafka_transport.o
gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\"" -I/usr/local/Cellar/openssl/1.0.2o_1/include -c rdkafka_buf.c -o rdkafka_buf.o
gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\"" -I/usr/local/Cellar/openssl/1.0.2o_1/include -c rdkafka_queue.c -o rdkafka_queue.o
gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\"" -I/usr/local/Cellar/openssl/1.0.2o_1/include -c rdkafka_op.c -o rdkafka_op.o
gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\"" -I/usr/local/Cellar/openssl/1.0.2o_1/include -c rdkafka_request.c -o rdkafka_request.o
gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\"" -I/usr/local/Cellar/openssl/1.0.2o_1/include -c rdkafka_cgrp.c -o rdkafka_cgrp.o
gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\"" -I/usr/local/Cellar/openssl/1.0.2o_1/include -c rdkafka_pattern.c -o rdkafka_pattern.o
gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\"" -I/usr/local/Cellar/openssl/1.0.2o_1/include -c rdkafka_partition.c -o rdkafka_partition.o
gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\"" -I/usr/local/Cellar/openssl/1.0.2o_1/include -c rdkafka_subscription.c -o rdkafka_subscription.o
gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\"" -I/usr/local/Cellar/openssl/1.0.2o_1/include -c rdkafka_assignor.c -o rdkafka_assignor.o
gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\"" -I/usr/local/Cellar/openssl/1.0.2o_1/include -c rdkafka_range_assignor.c -o rdkafka_range_assignor.o
gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\"" -I/usr/local/Cellar/openssl/1.0.2o_1/include -c rdkafka_roundrobin_assignor.c -o rdkafka_roundrobin_assignor.o
gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\"" -I/usr/local/Cellar/openssl/1.0.2o_1/include -c rdkafka_feature.c -o rdkafka_feature.o
gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\"" -I/usr/local/Cellar/openssl/1.0.2o_1/include -c rdcrc32.c -o rdcrc32.o
gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\"" -I/usr/local/Cellar/openssl/1.0.2o_1/include -c crc32c.c -o crc32c.o
gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\"" -I/usr/local/Cellar/openssl/1.0.2o_1/include -c rdmurmur2.c -o rdmurmur2.o
gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\"" -I/usr/local/Cellar/openssl/1.0.2o_1/include -c rdaddr.c -o rdaddr.o
gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\"" -I/usr/local/Cellar/openssl/1.0.2o_1/include -c rdrand.c -o rdrand.o
gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\"" -I/usr/local/Cellar/openssl/1.0.2o_1/include -c rdlist.c -o rdlist.o
gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\"" -I/usr/local/Cellar/openssl/1.0.2o_1/include -c tinycthread.c -o tinycthread.o
gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\"" -I/usr/local/Cellar/openssl/1.0.2o_1/include -c rdlog.c -o rdlog.o
gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\"" -I/usr/local/Cellar/openssl/1.0.2o_1/include -c rdstring.c -o rdstring.o
gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\"" -I/usr/local/Cellar/openssl/1.0.2o_1/include -c rdkafka_event.c -o rdkafka_event.o
gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\"" -I/usr/local/Cellar/openssl/1.0.2o_1/include -c rdkafka_metadata.c -o rdkafka_metadata.o
gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\"" -I/usr/local/Cellar/openssl/1.0.2o_1/include -c rdregex.c -o rdregex.o
gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\"" -I/usr/local/Cellar/openssl/1.0.2o_1/include -c rdports.c -o rdports.o
gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\"" -I/usr/local/Cellar/openssl/1.0.2o_1/include -c rdkafka_metadata_cache.c -o rdkafka_metadata_cache.o
gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\"" -I/usr/local/Cellar/openssl/1.0.2o_1/include -c rdavl.c -o rdavl.o
gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\"" -I/usr/local/Cellar/openssl/1.0.2o_1/include -c rdkafka_sasl.c -o rdkafka_sasl.o
gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\"" -I/usr/local/Cellar/openssl/1.0.2o_1/include -c rdkafka_sasl_plain.c -o rdkafka_sasl_plain.o
gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\"" -I/usr/local/Cellar/openssl/1.0.2o_1/include -c rdkafka_interceptor.c -o rdkafka_interceptor.o
gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\"" -I/usr/local/Cellar/openssl/1.0.2o_1/include -c rdkafka_msgset_writer.c -o rdkafka_msgset_writer.o
gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\"" -I/usr/local/Cellar/openssl/1.0.2o_1/include -c rdkafka_msgset_reader.c -o rdkafka_msgset_reader.o
gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\"" -I/usr/local/Cellar/openssl/1.0.2o_1/include -c rdkafka_header.c -o rdkafka_header.o
gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\"" -I/usr/local/Cellar/openssl/1.0.2o_1/include -c rdvarint.c -o rdvarint.o
gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\"" -I/usr/local/Cellar/openssl/1.0.2o_1/include -c rdbuf.c -o rdbuf.o
gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\"" -I/usr/local/Cellar/openssl/1.0.2o_1/include -c rdunittest.c -o rdunittest.o
gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\"" -I/usr/local/Cellar/openssl/1.0.2o_1/include -c rdkafka_sasl_cyrus.c -o rdkafka_sasl_cyrus.o
gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\"" -I/usr/local/Cellar/openssl/1.0.2o_1/include -c rdkafka_sasl_scram.c -o rdkafka_sasl_scram.o
gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\"" -I/usr/local/Cellar/openssl/1.0.2o_1/include -c snappy.c -o snappy.o
gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\"" -I/usr/local/Cellar/openssl/1.0.2o_1/include -c rdgz.c -o rdgz.o
gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\"" -I/usr/local/Cellar/openssl/1.0.2o_1/include -c rdkafka_lz4.c -o rdkafka_lz4.o
gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\"" -I/usr/local/Cellar/openssl/1.0.2o_1/include -O3 -c xxhash.c -o xxhash.o
gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\"" -I/usr/local/Cellar/openssl/1.0.2o_1/include -O3 -c lz4.c -o lz4.o
gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\"" -I/usr/local/Cellar/openssl/1.0.2o_1/include -O3 -c lz4frame.c -o lz4frame.o
gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\"" -I/usr/local/Cellar/openssl/1.0.2o_1/include -O3 -c lz4hc.c -o lz4hc.o
gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\"" -I/usr/local/Cellar/openssl/1.0.2o_1/include -c rddl.c -o rddl.o
gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\"" -I/usr/local/Cellar/openssl/1.0.2o_1/include -c rdkafka_plugin.c -o rdkafka_plugin.o
Creating shared library librdkafka.1.dylib
gcc -L/Users/fvisticot/Documents/2.GIT-OAB-REPO/gamification-wellness-server/node_modules/node-rdkafka/build/deps -shared -dynamiclib -Wl,-install_name,/Users/fvisticot/Documents/2.GIT-OAB-REPO/gamification-wellness-server/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_assignor.o rdkafka_range_assignor.o rdkafka_roundrobin_assignor.o rdkafka_feature.o rdcrc32.o crc32c.o rdmurmur2.o rdaddr.o rdrand.o rdlist.o tinycthread.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 rdvarint.o rdbuf.o rdunittest.o rdkafka_sasl_cyrus.o rdkafka_sasl_scram.o snappy.o rdgz.o rdkafka_lz4.o xxhash.o lz4.o lz4frame.o lz4hc.o rddl.o rdkafka_plugin.o -o librdkafka.1.dylib -lsasl2 -L/usr/local/Cellar/openssl/1.0.2o_1/lib -lssl -lz -ldl -lpthread
Undefined symbols for architecture x86_64:
"_BIO_ctrl", referenced from:
_rd_base64_encode in rdkafka_sasl_scram.o
"_BIO_f_base64", referenced from:
_rd_kafka_sasl_scram_fsm in rdkafka_sasl_scram.o
_rd_base64_encode in rdkafka_sasl_scram.o
"_BIO_free_all", referenced from:
_rd_kafka_sasl_scram_fsm in rdkafka_sasl_scram.o
_rd_base64_encode in rdkafka_sasl_scram.o
"_BIO_new", referenced from:
_rd_kafka_sasl_scram_fsm in rdkafka_sasl_scram.o
_rd_base64_encode in rdkafka_sasl_scram.o
"_BIO_new_mem_buf", referenced from:
_rd_kafka_sasl_scram_fsm in rdkafka_sasl_scram.o
"_BIO_push", referenced from:
_rd_kafka_sasl_scram_fsm in rdkafka_sasl_scram.o
_rd_base64_encode in rdkafka_sasl_scram.o
"_BIO_read", referenced from:
_rd_kafka_sasl_scram_fsm in rdkafka_sasl_scram.o
"_BIO_s_mem", referenced from:
_rd_base64_encode in rdkafka_sasl_scram.o
"_BIO_set_flags", referenced from:
_rd_kafka_sasl_scram_fsm in rdkafka_sasl_scram.o
_rd_base64_encode in rdkafka_sasl_scram.o
"_BIO_write", referenced from:
_rd_base64_encode in rdkafka_sasl_scram.o
"_CRYPTO_cleanup_all_ex_data", referenced from:
_rd_kafka_transport_ssl_term in rdkafka_transport.o
"_CRYPTO_num_locks", referenced from:
_rd_kafka_transport_ssl_init in rdkafka_transport.o
"_CRYPTO_set_id_callback", referenced from:
_rd_kafka_transport_ssl_term in rdkafka_transport.o
_rd_kafka_transport_ssl_init in rdkafka_transport.o
"_CRYPTO_set_locking_callback", referenced from:
_rd_kafka_transport_ssl_term in rdkafka_transport.o
_rd_kafka_transport_ssl_init in rdkafka_transport.o
"_ERR_error_string_n", referenced from:
_rd_kafka_ssl_error in rdkafka_transport.o
"_ERR_get_error_line_data", referenced from:
_rd_kafka_ssl_error in rdkafka_transport.o
"_ERR_remove_thread_state", referenced from:
_rd_kafka_broker_thread_main in rdkafka_broker.o
"_EVP_PKEY_free", referenced from:
_rd_kafka_transport_ssl_ctx_init in rdkafka_transport.o
"_EVP_PKEY_new", referenced from:
_rd_kafka_transport_ssl_ctx_init in rdkafka_transport.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
"_OPENSSL_add_all_algorithms_noconf", referenced from:
_rd_kafka_transport_ssl_init in rdkafka_transport.o
"_PKCS12_free", referenced from:
_rd_kafka_transport_ssl_ctx_init in rdkafka_transport.o
"_PKCS12_parse", referenced from:
_rd_kafka_transport_ssl_ctx_init in rdkafka_transport.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
"_X509_STORE_set_flags", referenced from:
_rd_kafka_transport_ssl_ctx_init in rdkafka_transport.o
"_X509_free", referenced from:
_rd_kafka_transport_ssl_ctx_init in rdkafka_transport.o
_rd_kafka_transport_io_serve in rdkafka_transport.o
"_X509_new", referenced from:
_rd_kafka_transport_ssl_ctx_init in rdkafka_transport.o
"_X509_verify_cert_error_string", referenced from:
_rd_kafka_transport_io_serve in rdkafka_transport.o
"_d2i_PKCS12_fp", referenced from:
_rd_kafka_transport_ssl_ctx_init in rdkafka_transport.o
"_sk_pop_free", referenced from:
_rd_kafka_transport_ssl_ctx_init in rdkafka_transport.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: [librdkafka.1.dylib] Error 1
make[1]: [libs] Error 2
make: *** [_Users_fvisticot_Documents_2_GIT_OAB_REPO_gamification_wellness_server_node_modules_node_rdkafka_deps_librdkafka_gyp_librdkafka_target_build_dependencies.intermediate] Error 2
rm _Users_fvisticot_Documents_2_GIT_OAB_REPO_gamification_wellness_server_node_modules_node_rdkafka_deps_librdkafka_gyp_librdkafka_target_build_dependencies.intermediate
gyp ERR! build error
gyp ERR! stack Error: make
failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack at ChildProcess.emit (events.js:182:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:225:12)
gyp ERR! System Darwin 17.5.0
gyp ERR! command "/usr/local/Cellar/node/9.3.0_1/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/fvisticot/Documents/2.GIT-OAB-REPO/gamification-wellness-server/node_modules/node-rdkafka
gyp ERR! node -v v10.0.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm WARN gamification-wellness@1.0.0 No description
npm WARN gamification-wellness@1.0.0 No repository field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-rdkafka@2.3.3 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-rdkafka@2.3.3 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in: npm ERR! /Users/fvisticot/.npm/_logs/2018-05-19T21_28_52_847Z-debug.log
Le 19 mai 2018 à 23:57, Stephen Parente <notifications@github.com mailto:notifications@github.com> a écrit :
_rd_kafka_transport_ssl_ctx_init. It may be to do with this, but I need the lines before what you sent.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Blizzard/node-rdkafka/issues/373#issuecomment-390435397, or mute the thread https://github.com/notifications/unsubscribe-auth/AAJYTzBd6kZ9jpMIuNl14wDvfZz9KbC1ks5t0JVfgaJpZM4Sm7oc.
Same here. on 2.3.3. gyp ERR! node -v v8.10.0 gyp ERR! node-gyp -v v3.6.2
osx 10.13.4 node v10.1.0 node-rdkafka 2.3.3
first, install openssl with homebrew: $ brew install openssl
second, run $ CPPFLAGS=-I/usr/local/opt/openssl/include LDFLAGS=-L/usr/local/opt/openssl/lib npm install node-rdkafka
this works.
Since homebrew refuse to link openssl to system-wide. And I just run node-rdkafka on my mac for test intent. So I dont want to change some security things such as openssl lib.
@alsotang your solution worked for me! Thank you!!
you may have mistyped npm to tnpm so:
CPPFLAGS=-I/usr/local/opt/openssl/include LDFLAGS=-L/usr/local/opt/openssl/lib npm install node-rdkafka
hope that saved someone a couple seconds
@Henry- oh yes,tnpm is a alias for me. I have corrected it.
Going to add this to the README to help others, but this is a workaround even I need to do when installing the library because of openssl incompatibility.
@webmakersteve Is it possible to set the environment variables in the binding.gyp
file?
https://github.com/Blizzard/node-rdkafka/blob/master/binding.gyp#L126
Under: OTHER_CPLUSPLUSFLAGS
, OTHER_LDFLAGS
I can set them in the gyp file but I'm hesitant to add that when the solution requires the libraries be downloaded from another source (homebrew, as an example).
I'll look into seeing if i can get it to work in a backwards compatible way, because it is frustrating to me as well.
I have the same Issue.
MacOS version: MacOS High Sierra 10.13.6. openssl version: 1.0.2. node_rdkafka version: 2.3.4
I saw the section of mac os high sierra in document. and I try it but It does not persist but occurs every time restart the node server.
How can fix it?
osx 10.13.4 node v10.1.0 node-rdkafka 2.3.3
first, install openssl with homebrew:
$ brew install openssl
second, run
$ CPPFLAGS=-I/usr/local/opt/openssl/include LDFLAGS=-L/usr/local/opt/openssl/lib npm install node-rdkafka
this works.
Since homebrew refuse to link openssl to system-wide. And I just run node-rdkafka on my mac for test intent. So I dont want to change some security things such as openssl lib.
Thank you. This also helped me:
osx 10.14.3 node v11.10.0 node-rdkafka 2.5.1
@sgenoud Are you initialising the flags inside your terminal? In that case, they won't be persisted on terminal restart. Try adding the exports inside ~/.bash_profile
and restart terminal.
This works fine with v2.2.3. I'm running macOS High Sierra with Node v8.5.0.