Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: librdkafka.so.1: cannot open shared object file: No such file or directory #474

Closed
F483 opened this issue Aug 15, 2018 · 15 comments
Closed
Labels
stale Stale issues

Comments

@F483
Copy link

F483 commented Aug 15, 2018

Environment Information

  • OS: Ubuntu 18.4
  • Node Version: 9.0.0 and 10.7.0
  • NPM Version: 5.5.1
  • node-rdkafka version: 2.4.1

Steps to Reproduce

$ cat package.json 
{
  "name": "test-rdkafak",
  "scripts": {
    "test": "node test.js"
  },
  "devDependencies": {
    "node-rdkafka": "^2.3.4"
  }
}
$ cat test.js 
var Transform = require('stream').Transform;

const Kafka = require('node-rdkafka');
var stream = Kafka.KafkaConsumer.createReadStream({
  'metadata.broker.list': 'localhost:9092',
  'group.id': 'librd-test',
  'socket.keepalive.enable': true,
  'enable.auto.commit': false
}, {}, {
  topics: 'test',
  waitInterval: 0,
  objectMode: false
});

stream.on('error', function(err) {
  if (err) console.log(err);
  process.exit(1);
});

stream.pipe(process.stdout);

stream.on('error', function(err) {
  console.log(err);
  process.exit(1);
});

stream.consumer.on('event.error', function(err) {
  console.log(err);
})

It seems to install, but not sure. See install log in comment below.

$ npm install

...


$ npm ls
test-rdkafak@ /home/f483/dev/testkafka
└─┬ node-rdkafka@2.3.4
  ├── bindings@1.3.0
  └── nan@2.10.0

The library it says it can't find does seem to have been built, is this a configuration issue?


$ find | grep librdkafka.so.1
./node_modules/node-rdkafka/build/deps/librdkafka.so.1
./node_modules/node-rdkafka/deps/librdkafka/src/librdkafka.so.1

$ npm run test

> test-rdkafak@ test /home/f483/dev/testkafka
> node test.js

/home/f483/dev/testkafka/node_modules/bindings/bindings.js:88
        throw e
        ^

Error: librdkafka.so.1: cannot open shared object file: No such file or directory
    at Object.Module._extensions..node (module.js:670:18)
    at Module.load (module.js:560:32)
    at tryModuleLoad (module.js:503:12)
    at Function.Module._load (module.js:495:3)
    at Module.require (module.js:585:17)
    at require (internal/module.js:11:18)
    at bindings (/home/f483/dev/testkafka/node_modules/bindings/bindings.js:81:44)
    at Object.<anonymous> (/home/f483/dev/testkafka/node_modules/node-rdkafka/librdkafka.js:10:32)
    at Module._compile (module.js:641:30)
    at Object.Module._extensions..js (module.js:652:10)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! test-rdkafak@ test: `node test.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the test-rdkafak@ test 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!     /home/f483/.npm/_logs/2018-08-15T05_36_39_154Z-debug.log

@F483
Copy link
Author

F483 commented Aug 15, 2018

Here is also the output of npm install


> node-rdkafka@2.4.1 install /home/f483/dev/testkafka/node_modules/node-rdkafka
> node-gyp rebuild

make: Entering directory '/home/f483/dev/testkafka/node_modules/node-rdkafka/build'
  ACTION deps_librdkafka_gyp_librdkafka_target_configure deps/librdkafka/config.h
checking for OS or distribution... �[32mok�(B�[m (Ubuntu)
checking for C compiler from CC env... �[33mfailed�(B�[m
checking for gcc (by command)... �[32mok�(B�[m
checking for C++ compiler from CXX env... �[33mfailed�(B�[m
checking for C++ compiler (g++)... �[32mok�(B�[m
checking executable ld... �[32mok�(B�[m
checking executable nm... �[32mok�(B�[m
checking executable objdump... �[32mok�(B�[m
checking executable strip... �[32mok�(B�[m
checking for pkgconfig (by command)... �[32mok�(B�[m
checking for install (by command)... �[32mok�(B�[m
checking for PIC (by compile)... �[32mok�(B�[m
checking for GNU-compatible linker options... �[32mok�(B�[m
checking for GNU linker-script ld flag... �[32mok�(B�[m
checking for __atomic_32 (by compile)... �[32mok�(B�[m
checking for __atomic_64 (by compile)... �[32mok�(B�[m
checking for socket (by compile)... �[32mok�(B�[m
parsing version '0x000b05ff'... �[32mok�(B�[m (0.11.5)
checking for librt (by pkg-config)... �[33mfailed�(B�[m
checking for librt (by compile)... �[32mok�(B�[m
checking for libpthread (by pkg-config)... �[33mfailed�(B�[m
checking for libpthread (by compile)... �[32mok�(B�[m
checking for libdl (by pkg-config)... �[33mfailed�(B�[m
checking for libdl (by compile)... �[32mok�(B�[m
checking for zlib (by pkg-config)... �[33mfailed�(B�[m
checking for zlib (by compile)... �[33mfailed�(B�[m (disable)
checking for libcrypto (by pkg-config)... �[32mok�(B�[m
checking for libcrypto (by compile)... �[32mok�(B�[m (cached)
checking for libm (by pkg-config)... �[33mfailed�(B�[m
checking for libm (by compile)... �[32mok�(B�[m
checking for liblz4 (by pkg-config)... �[32mok�(B�[m
checking for liblz4 (by compile)... �[32mok�(B�[m (cached)
checking for rapidjson (by compile)... �[33mfailed�(B�[m (disable)
checking for libssl (by pkg-config)... �[32mok�(B�[m
checking for libssl (by compile)... �[32mok�(B�[m (cached)
checking for libsasl2 (by pkg-config)... �[32mok�(B�[m
checking for libsasl2 (by compile)... �[32mok�(B�[m (cached)
checking for crc32chw (by compile)... �[32mok�(B�[m
checking for regex (by compile)... �[32mok�(B�[m
checking for strndup (by compile)... �[32mok�(B�[m
checking for strerror_r (by compile)... �[32mok�(B�[m
checking for pthread_setname_gnu (by compile)... �[32mok�(B�[m
checking for nm (by env NM)... �[32mok�(B�[m (cached)
checking for python (by command)... �[32mok�(B�[m
Generated Makefile.config
Generated config.h

Configuration summary:
  prefix                   /home/f483/dev/testkafka/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                   /home/f483/dev/testkafka/node_modules/node-rdkafka/build/deps
  MKL_APP_NAME             librdkafka
  MKL_APP_DESC_ONELINE     The Apache Kafka C/C++ library
  LDFLAGS                  -L/home/f483/dev/testkafka/node_modules/node-rdkafka/build/deps
  MKL_DISTRO               Ubuntu
  SOLIB_EXT                .so
  CC                       gcc
  CXX                      g++
  LD                       ld
  NM                       nm
  OBJDUMP                  objdump
  STRIP                    strip
  CPPFLAGS                 -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align
  PKG_CONFIG               pkg-config
  INSTALL                  install
  LIB_LDFLAGS              -shared -Wl,-soname,$(LIBFILENAME)
  LDFLAG_LINKERSCRIPT      -Wl,--version-script=
  RDKAFKA_VERSION_STR      0.11.5
  MKL_APP_VERSION          0.11.5
  LIBS                     -lsasl2 -lssl -llz4 -lm -lcrypto -ldl -lpthread -lrt
  CFLAGS                   
  CXXFLAGS                 -Wno-non-virtual-dtor
  SYMDUMPER                $(NM) -D
  exec_prefix              /home/f483/dev/testkafka/node_modules/node-rdkafka/build/deps
  bindir                   /home/f483/dev/testkafka/node_modules/node-rdkafka/build/deps/bin
  sbindir                  /home/f483/dev/testkafka/node_modules/node-rdkafka/build/deps/sbin
  libexecdir               /home/f483/dev/testkafka/node_modules/node-rdkafka/build/deps/libexec
  datadir                  /home/f483/dev/testkafka/node_modules/node-rdkafka/build/deps/share
  sysconfdir               /home/f483/dev/testkafka/node_modules/node-rdkafka/build/deps/etc
  sharedstatedir           /home/f483/dev/testkafka/node_modules/node-rdkafka/build/deps/com
  localstatedir            /home/f483/dev/testkafka/node_modules/node-rdkafka/build/deps/var
  includedir               /home/f483/dev/testkafka/node_modules/node-rdkafka/build/deps/include
  infodir                  /home/f483/dev/testkafka/node_modules/node-rdkafka/build/deps/info
  mandir                   /home/f483/dev/testkafka/node_modules/node-rdkafka/build/deps/man
Generated config.cache

Now type 'make' to build
  TOUCH deps_librdkafka_gyp_librdkafka_target_build_dependencies.intermediate
  ACTION deps_librdkafka_gyp_librdkafka_target_build_dependencies deps_librdkafka_gyp_librdkafka_target_build_dependencies.intermediate
make[1]: Entering directory '/home/f483/dev/testkafka/node_modules/node-rdkafka/deps/librdkafka'
make[2]: Entering directory '/home/f483/dev/testkafka/node_modules/node-rdkafka/deps/librdkafka/src'
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\""  -c rdkafka.c -o rdkafka.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\""  -c rdkafka_broker.c -o rdkafka_broker.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\""  -c rdkafka_msg.c -o rdkafka_msg.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\""  -c rdkafka_topic.c -o rdkafka_topic.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\""  -c rdkafka_conf.c -o rdkafka_conf.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\""  -c rdkafka_timer.c -o rdkafka_timer.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\""  -c rdkafka_offset.c -o rdkafka_offset.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\""  -c rdkafka_transport.c -o rdkafka_transport.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\""  -c rdkafka_buf.c -o rdkafka_buf.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\""  -c rdkafka_queue.c -o rdkafka_queue.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\""  -c rdkafka_op.c -o rdkafka_op.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\""  -c rdkafka_request.c -o rdkafka_request.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\""  -c rdkafka_cgrp.c -o rdkafka_cgrp.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\""  -c rdkafka_pattern.c -o rdkafka_pattern.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\""  -c rdkafka_partition.c -o rdkafka_partition.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\""  -c rdkafka_subscription.c -o rdkafka_subscription.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\""  -c rdkafka_assignor.c -o rdkafka_assignor.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\""  -c rdkafka_range_assignor.c -o rdkafka_range_assignor.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\""  -c rdkafka_roundrobin_assignor.c -o rdkafka_roundrobin_assignor.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\""  -c rdkafka_feature.c -o rdkafka_feature.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\""  -c rdcrc32.c -o rdcrc32.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\""  -c crc32c.c -o crc32c.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\""  -c rdmurmur2.c -o rdmurmur2.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\""  -c rdaddr.c -o rdaddr.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\""  -c rdrand.c -o rdrand.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\""  -c rdlist.c -o rdlist.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\""  -c tinycthread.c -o tinycthread.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\""  -c rdlog.c -o rdlog.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\""  -c rdstring.c -o rdstring.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\""  -c rdkafka_event.c -o rdkafka_event.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\""  -c rdkafka_metadata.c -o rdkafka_metadata.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\""  -c rdregex.c -o rdregex.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\""  -c rdports.c -o rdports.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\""  -c rdkafka_metadata_cache.c -o rdkafka_metadata_cache.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\""  -c rdavl.c -o rdavl.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\""  -c rdkafka_sasl.c -o rdkafka_sasl.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\""  -c rdkafka_sasl_plain.c -o rdkafka_sasl_plain.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\""  -c rdkafka_interceptor.c -o rdkafka_interceptor.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\""  -c rdkafka_msgset_writer.c -o rdkafka_msgset_writer.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\""  -c rdkafka_msgset_reader.c -o rdkafka_msgset_reader.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\""  -c rdkafka_header.c -o rdkafka_header.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\""  -c rdkafka_admin.c -o rdkafka_admin.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\""  -c rdkafka_aux.c -o rdkafka_aux.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\""  -c rdkafka_background.c -o rdkafka_background.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\""  -c rdvarint.c -o rdvarint.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\""  -c rdbuf.c -o rdbuf.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\""  -c rdunittest.c -o rdunittest.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\""  -c rdkafka_sasl_cyrus.c -o rdkafka_sasl_cyrus.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\""  -c rdkafka_sasl_scram.c -o rdkafka_sasl_scram.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\""  -c snappy.c -o snappy.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\""  -c rdhdrhistogram.c -o rdhdrhistogram.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\""  -c rdkafka_lz4.c -o rdkafka_lz4.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\""  -O3 -c xxhash.c -o xxhash.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\""  -c rddl.c -o rddl.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"\""  -c rdkafka_plugin.c -o rdkafka_plugin.o
�[33mGenerating linker script librdkafka.lds from rdkafka.h�(B�[m
�[33mCreating shared library librdkafka.so.1�(B�[m
gcc -L/home/f483/dev/testkafka/node_modules/node-rdkafka/build/deps -shared -Wl,-soname,librdkafka.so.1 -Wl,--version-script=librdkafka.lds 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 rdkafka_admin.o rdkafka_aux.o rdkafka_background.o rdvarint.o rdbuf.o rdunittest.o rdkafka_sasl_cyrus.o rdkafka_sasl_scram.o snappy.o rdhdrhistogram.o rdkafka_lz4.o xxhash.o rddl.o rdkafka_plugin.o -o librdkafka.so.1 -lsasl2 -lssl -llz4 -lm -lcrypto -ldl -lpthread -lrt
�[33mCreating static library librdkafka.a�(B�[m
ar rcs librdkafka.a rdkafka.o rdkafka_broker.o rdkafka_msg.o rdkafka_topic.o rdkafka_conf.o rdkafka_timer.o rdkafka_offset.o rdkafka_transport.o rdkafka_buf.o rdkafka_queue.o rdkafka_op.o rdkafka_request.o rdkafka_cgrp.o rdkafka_pattern.o rdkafka_partition.o rdkafka_subscription.o rdkafka_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 rdkafka_admin.o rdkafka_aux.o rdkafka_background.o rdvarint.o rdbuf.o rdunittest.o rdkafka_sasl_cyrus.o rdkafka_sasl_scram.o snappy.o rdhdrhistogram.o rdkafka_lz4.o xxhash.o rddl.o rdkafka_plugin.o
�[33mCreating librdkafka.so symlink�(B�[m
rm -f "librdkafka.so" && ln -s "librdkafka.so.1" "librdkafka.so"
�[33mGenerating pkg-config file rdkafka.pc�(B�[m
�[33mGenerating pkg-config file rdkafka-static.pc�(B�[m
�[33mChecking librdkafka integrity�(B�[m
librdkafka.so.1                �[32mOK�(B�[m
librdkafka.a                   �[32mOK�(B�[m
Symbol visibility              �[32mOK�(B�[m
make[2]: Leaving directory '/home/f483/dev/testkafka/node_modules/node-rdkafka/deps/librdkafka/src'
make[2]: Entering directory '/home/f483/dev/testkafka/node_modules/node-rdkafka/deps/librdkafka/src-cpp'
g++ -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -Wno-non-virtual-dtor -c RdKafka.cpp -o RdKafka.o
g++ -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -Wno-non-virtual-dtor -c ConfImpl.cpp -o ConfImpl.o
g++ -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -Wno-non-virtual-dtor -c HandleImpl.cpp -o HandleImpl.o
g++ -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -Wno-non-virtual-dtor -c ConsumerImpl.cpp -o ConsumerImpl.o
g++ -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -Wno-non-virtual-dtor -c ProducerImpl.cpp -o ProducerImpl.o
g++ -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -Wno-non-virtual-dtor -c KafkaConsumerImpl.cpp -o KafkaConsumerImpl.o
g++ -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -Wno-non-virtual-dtor -c TopicImpl.cpp -o TopicImpl.o
g++ -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -Wno-non-virtual-dtor -c TopicPartitionImpl.cpp -o TopicPartitionImpl.o
g++ -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -Wno-non-virtual-dtor -c MessageImpl.cpp -o MessageImpl.o
g++ -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -Wno-non-virtual-dtor -c QueueImpl.cpp -o QueueImpl.o
g++ -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -Wno-non-virtual-dtor -c MetadataImpl.cpp -o MetadataImpl.o
�[33mCreating shared library librdkafka++.so.1�(B�[m
gcc -L/home/f483/dev/testkafka/node_modules/node-rdkafka/build/deps -shared -Wl,-soname,librdkafka++.so.1 RdKafka.o ConfImpl.o HandleImpl.o ConsumerImpl.o ProducerImpl.o KafkaConsumerImpl.o TopicImpl.o TopicPartitionImpl.o MessageImpl.o QueueImpl.o MetadataImpl.o -o librdkafka++.so.1 -L../src -lrdkafka -lstdc++
�[33mCreating static library librdkafka++.a�(B�[m
ar rcs librdkafka++.a RdKafka.o ConfImpl.o HandleImpl.o ConsumerImpl.o ProducerImpl.o KafkaConsumerImpl.o TopicImpl.o TopicPartitionImpl.o MessageImpl.o QueueImpl.o MetadataImpl.o
�[33mCreating librdkafka++.so symlink�(B�[m
rm -f "librdkafka++.so" && ln -s "librdkafka++.so.1" "librdkafka++.so"
�[33mGenerating pkg-config file rdkafka++.pc�(B�[m
�[33mGenerating pkg-config file rdkafka++-static.pc�(B�[m
�[33mChecking librdkafka++ integrity�(B�[m
librdkafka++.so.1              �[32mOK�(B�[m
librdkafka++.a                 �[32mOK�(B�[m
make[2]: Leaving directory '/home/f483/dev/testkafka/node_modules/node-rdkafka/deps/librdkafka/src-cpp'
make[2]: Entering directory '/home/f483/dev/testkafka/node_modules/node-rdkafka/deps/librdkafka/src'
�[33mInstall librdkafka to /home/f483/dev/testkafka/node_modules/node-rdkafka/build/deps�(B�[m
install -d $DESTDIR/home/f483/dev/testkafka/node_modules/node-rdkafka/build/deps/include/librdkafka ; \
install -d $DESTDIR/home/f483/dev/testkafka/node_modules/node-rdkafka/build/deps ; \
install rdkafka.h $DESTDIR/home/f483/dev/testkafka/node_modules/node-rdkafka/build/deps/include/librdkafka ; \
install librdkafka.a $DESTDIR/home/f483/dev/testkafka/node_modules/node-rdkafka/build/deps ; \
install librdkafka.so.1 $DESTDIR/home/f483/dev/testkafka/node_modules/node-rdkafka/build/deps ; \
[ -f "rdkafka.pc" ] && ( \
	install -d $DESTDIR/home/f483/dev/testkafka/node_modules/node-rdkafka/build/deps/pkgconfig ; \
	install -m 0644 rdkafka.pc $DESTDIR/home/f483/dev/testkafka/node_modules/node-rdkafka/build/deps/pkgconfig \
) ; \
[ -f "rdkafka-static.pc" ] && ( \
	install -d $DESTDIR/home/f483/dev/testkafka/node_modules/node-rdkafka/build/deps/pkgconfig ; \
	install -m 0644 rdkafka-static.pc $DESTDIR/home/f483/dev/testkafka/node_modules/node-rdkafka/build/deps/pkgconfig \
) ; \
(cd $DESTDIR/home/f483/dev/testkafka/node_modules/node-rdkafka/build/deps && ln -sf librdkafka.so.1 librdkafka.so)
make[2]: Leaving directory '/home/f483/dev/testkafka/node_modules/node-rdkafka/deps/librdkafka/src'
make[2]: Entering directory '/home/f483/dev/testkafka/node_modules/node-rdkafka/deps/librdkafka/src-cpp'
�[33mInstall librdkafka++ to /home/f483/dev/testkafka/node_modules/node-rdkafka/build/deps�(B�[m
install -d $DESTDIR/home/f483/dev/testkafka/node_modules/node-rdkafka/build/deps/include/librdkafka ; \
install -d $DESTDIR/home/f483/dev/testkafka/node_modules/node-rdkafka/build/deps ; \
install rdkafkacpp.h $DESTDIR/home/f483/dev/testkafka/node_modules/node-rdkafka/build/deps/include/librdkafka ; \
install librdkafka++.a $DESTDIR/home/f483/dev/testkafka/node_modules/node-rdkafka/build/deps ; \
install librdkafka++.so.1 $DESTDIR/home/f483/dev/testkafka/node_modules/node-rdkafka/build/deps ; \
[ -f "rdkafka++.pc" ] && ( \
	install -d $DESTDIR/home/f483/dev/testkafka/node_modules/node-rdkafka/build/deps/pkgconfig ; \
	install -m 0644 rdkafka++.pc $DESTDIR/home/f483/dev/testkafka/node_modules/node-rdkafka/build/deps/pkgconfig \
) ; \
[ -f "rdkafka++-static.pc" ] && ( \
	install -d $DESTDIR/home/f483/dev/testkafka/node_modules/node-rdkafka/build/deps/pkgconfig ; \
	install -m 0644 rdkafka++-static.pc $DESTDIR/home/f483/dev/testkafka/node_modules/node-rdkafka/build/deps/pkgconfig \
) ; \
(cd $DESTDIR/home/f483/dev/testkafka/node_modules/node-rdkafka/build/deps && ln -sf librdkafka++.so.1 librdkafka++.so)
make[2]: Leaving directory '/home/f483/dev/testkafka/node_modules/node-rdkafka/deps/librdkafka/src-cpp'
make[1]: Leaving directory '/home/f483/dev/testkafka/node_modules/node-rdkafka/deps/librdkafka'
  TOUCH Release/obj.target/deps/librdkafka.stamp
  CXX(target) Release/obj.target/node-librdkafka/src/binding.o
  CXX(target) Release/obj.target/node-librdkafka/src/callbacks.o
../src/callbacks.cc: In member function ‘void NodeKafka::Callbacks::Dispatcher::Dispatch(int, v8::Local<v8::Value>*)’:
../src/callbacks.cc:102:25: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
     cb.Call(_argc, _argv);
                         ^
In file included from /home/f483/dev/testkafka/node_modules/node-rdkafka/src/callbacks.h:13:0,
                 from ../src/callbacks.cc:13:
../../nan/nan.h:1618:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
../src/callbacks.cc: In member function ‘virtual int32_t NodeKafka::Callbacks::Partitioner::partitioner_cb(const RdKafka::Topic*, const string*, int32_t, void*)’:
../src/callbacks.cc:564:60: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
   v8::Local<v8::Value> return_value = callback.Call(3, argv);
                                                            ^
In file included from /home/f483/dev/testkafka/node_modules/node-rdkafka/src/callbacks.h:13:0,
                 from ../src/callbacks.cc:13:
../../nan/nan.h:1618:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
../src/callbacks.cc: In member function ‘void NodeKafka::Callbacks::Partitioner::SetCallback(v8::Local<v8::Function>)’:
../src/callbacks.cc:601:14: warning: ‘v8::Local<v8::Value> Nan::Callback::operator()(v8::Local<v8::Object>, int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
   callback(cb);
              ^
In file included from /home/f483/dev/testkafka/node_modules/node-rdkafka/src/callbacks.h:13:0,
                 from ../src/callbacks.cc:13:
../../nan/nan.h:1516:46: note: declared here
   NAN_DEPRECATED inline v8::Local<v8::Value> operator()(
                                              ^~~~~~~~
  CXX(target) Release/obj.target/node-librdkafka/src/common.o
  CXX(target) Release/obj.target/node-librdkafka/src/config.o
  CXX(target) Release/obj.target/node-librdkafka/src/connection.o
In file included from ../src/connection.cc:14:0:
/home/f483/dev/testkafka/node_modules/node-rdkafka/src/workers.h: In member function ‘virtual void NodeKafka::Workers::ErrorAwareWorker::HandleErrorCallback()’:
/home/f483/dev/testkafka/node_modules/node-rdkafka/src/workers.h:40:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
     callback->Call(argc, argv);
                              ^
In file included from /home/f483/dev/testkafka/node_modules/node-rdkafka/src/connection.h:13:0,
                 from ../src/connection.cc:13:
../../nan/nan.h:1618:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
  CXX(target) Release/obj.target/node-librdkafka/src/errors.o
  CXX(target) Release/obj.target/node-librdkafka/src/kafka-consumer.o
In file included from ../src/kafka-consumer.cc:14:0:
/home/f483/dev/testkafka/node_modules/node-rdkafka/src/workers.h: In member function ‘virtual void NodeKafka::Workers::ErrorAwareWorker::HandleErrorCallback()’:
/home/f483/dev/testkafka/node_modules/node-rdkafka/src/workers.h:40:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
     callback->Call(argc, argv);
                              ^
In file included from /home/f483/dev/testkafka/node_modules/node-rdkafka/src/kafka-consumer.h:13:0,
                 from ../src/kafka-consumer.cc:13:
../../nan/nan.h:1618:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
  CXX(target) Release/obj.target/node-librdkafka/src/producer.o
In file included from ../src/producer.cc:14:0:
/home/f483/dev/testkafka/node_modules/node-rdkafka/src/workers.h: In member function ‘virtual void NodeKafka::Workers::ErrorAwareWorker::HandleErrorCallback()’:
/home/f483/dev/testkafka/node_modules/node-rdkafka/src/workers.h:40:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
     callback->Call(argc, argv);
                              ^
In file included from /home/f483/dev/testkafka/node_modules/node-rdkafka/src/producer.h:13:0,
                 from ../src/producer.cc:13:
../../nan/nan.h:1618:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
  CXX(target) Release/obj.target/node-librdkafka/src/topic.o
  CXX(target) Release/obj.target/node-librdkafka/src/workers.o
In file included from ../src/workers.cc:13:0:
/home/f483/dev/testkafka/node_modules/node-rdkafka/src/workers.h: In member function ‘virtual void NodeKafka::Workers::ErrorAwareWorker::HandleErrorCallback()’:
/home/f483/dev/testkafka/node_modules/node-rdkafka/src/workers.h:40:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
     callback->Call(argc, argv);
                              ^
In file included from /home/f483/dev/testkafka/node_modules/node-rdkafka/src/workers.h:14:0,
                 from ../src/workers.cc:13:
../../nan/nan.h:1618:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
../src/workers.cc: In member function ‘virtual void NodeKafka::Workers::Handle::OffsetsForTimes::HandleOKCallback()’:
../src/workers.cc:69:28: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
   callback->Call(argc, argv);
                            ^
In file included from /home/f483/dev/testkafka/node_modules/node-rdkafka/src/workers.h:14:0,
                 from ../src/workers.cc:13:
../../nan/nan.h:1618:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
../src/workers.cc: In member function ‘virtual void NodeKafka::Workers::Handle::OffsetsForTimes::HandleErrorCallback()’:
../src/workers.cc:78:28: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
   callback->Call(argc, argv);
                            ^
In file included from /home/f483/dev/testkafka/node_modules/node-rdkafka/src/workers.h:14:0,
                 from ../src/workers.cc:13:
../../nan/nan.h:1618:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
../src/workers.cc: In member function ‘virtual void NodeKafka::Workers::ConnectionMetadata::HandleOKCallback()’:
../src/workers.cc:116:28: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
   callback->Call(argc, argv);
                            ^
In file included from /home/f483/dev/testkafka/node_modules/node-rdkafka/src/workers.h:14:0,
                 from ../src/workers.cc:13:
../../nan/nan.h:1618:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
../src/workers.cc: In member function ‘virtual void NodeKafka::Workers::ConnectionMetadata::HandleErrorCallback()’:
../src/workers.cc:127:28: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
   callback->Call(argc, argv);
                            ^
In file included from /home/f483/dev/testkafka/node_modules/node-rdkafka/src/workers.h:14:0,
                 from ../src/workers.cc:13:
../../nan/nan.h:1618:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
../src/workers.cc: In member function ‘virtual void NodeKafka::Workers::ConnectionQueryWatermarkOffsets::HandleOKCallback()’:
../src/workers.cc:174:28: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
   callback->Call(argc, argv);
                            ^
In file included from /home/f483/dev/testkafka/node_modules/node-rdkafka/src/workers.h:14:0,
                 from ../src/workers.cc:13:
../../nan/nan.h:1618:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
../src/workers.cc: In member function ‘virtual void NodeKafka::Workers::ConnectionQueryWatermarkOffsets::HandleErrorCallback()’:
../src/workers.cc:183:28: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
   callback->Call(argc, argv);
                            ^
In file included from /home/f483/dev/testkafka/node_modules/node-rdkafka/src/workers.h:14:0,
                 from ../src/workers.cc:13:
../../nan/nan.h:1618:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
../src/workers.cc: In member function ‘virtual void NodeKafka::Workers::ProducerConnect::HandleOKCallback()’:
../src/workers.cc:223:28: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
   callback->Call(argc, argv);
                            ^
In file included from /home/f483/dev/testkafka/node_modules/node-rdkafka/src/workers.h:14:0,
                 from ../src/workers.cc:13:
../../nan/nan.h:1618:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
../src/workers.cc: In member function ‘virtual void NodeKafka::Workers::ProducerConnect::HandleErrorCallback()’:
../src/workers.cc:232:28: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
   callback->Call(argc, argv);
                            ^
In file included from /home/f483/dev/testkafka/node_modules/node-rdkafka/src/workers.h:14:0,
                 from ../src/workers.cc:13:
../../nan/nan.h:1618:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
../src/workers.cc: In member function ‘virtual void NodeKafka::Workers::ProducerDisconnect::HandleOKCallback()’:
../src/workers.cc:261:28: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
   callback->Call(argc, argv);
                            ^
In file included from /home/f483/dev/testkafka/node_modules/node-rdkafka/src/workers.h:14:0,
                 from ../src/workers.cc:13:
../../nan/nan.h:1618:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
../src/workers.cc: In member function ‘virtual void NodeKafka::Workers::ProducerFlush::HandleOKCallback()’:
../src/workers.cc:301:28: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
   callback->Call(argc, argv);
                            ^
In file included from /home/f483/dev/testkafka/node_modules/node-rdkafka/src/workers.h:14:0,
                 from ../src/workers.cc:13:
../../nan/nan.h:1618:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
../src/workers.cc: In member function ‘virtual void NodeKafka::Workers::KafkaConsumerConnect::HandleOKCallback()’:
../src/workers.cc:342:28: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
   callback->Call(argc, argv);
                            ^
In file included from /home/f483/dev/testkafka/node_modules/node-rdkafka/src/workers.h:14:0,
                 from ../src/workers.cc:13:
../../nan/nan.h:1618:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
../src/workers.cc: In member function ‘virtual void NodeKafka::Workers::KafkaConsumerConnect::HandleErrorCallback()’:
../src/workers.cc:351:28: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
   callback->Call(argc, argv);
                            ^
In file included from /home/f483/dev/testkafka/node_modules/node-rdkafka/src/workers.h:14:0,
                 from ../src/workers.cc:13:
../../nan/nan.h:1618:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
../src/workers.cc: In member function ‘virtual void NodeKafka::Workers::KafkaConsumerDisconnect::HandleOKCallback()’:
../src/workers.cc:386:28: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
   callback->Call(argc, argv);
                            ^
In file included from /home/f483/dev/testkafka/node_modules/node-rdkafka/src/workers.h:14:0,
                 from ../src/workers.cc:13:
../../nan/nan.h:1618:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
../src/workers.cc: In member function ‘virtual void NodeKafka::Workers::KafkaConsumerDisconnect::HandleErrorCallback()’:
../src/workers.cc:397:28: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
   callback->Call(argc, argv);
                            ^
In file included from /home/f483/dev/testkafka/node_modules/node-rdkafka/src/workers.h:14:0,
                 from ../src/workers.cc:13:
../../nan/nan.h:1618:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
../src/workers.cc: In member function ‘virtual void NodeKafka::Workers::KafkaConsumerConsumeLoop::HandleMessageCallback(RdKafka::Message*)’:
../src/workers.cc:484:28: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
   callback->Call(argc, argv);
                            ^
In file included from /home/f483/dev/testkafka/node_modules/node-rdkafka/src/workers.h:14:0,
                 from ../src/workers.cc:13:
../../nan/nan.h:1618:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
../src/workers.cc: In member function ‘virtual void NodeKafka::Workers::KafkaConsumerConsumeLoop::HandleErrorCallback()’:
../src/workers.cc:498:28: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
   callback->Call(argc, argv);
                            ^
In file included from /home/f483/dev/testkafka/node_modules/node-rdkafka/src/workers.h:14:0,
                 from ../src/workers.cc:13:
../../nan/nan.h:1618:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
../src/workers.cc: In member function ‘virtual void NodeKafka::Workers::KafkaConsumerConsumeNum::HandleOKCallback()’:
../src/workers.cc:574:28: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
   callback->Call(argc, argv);
                            ^
In file included from /home/f483/dev/testkafka/node_modules/node-rdkafka/src/workers.h:14:0,
                 from ../src/workers.cc:13:
../../nan/nan.h:1618:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
../src/workers.cc: In member function ‘virtual void NodeKafka::Workers::KafkaConsumerConsumeNum::HandleErrorCallback()’:
../src/workers.cc:591:28: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
   callback->Call(argc, argv);
                            ^
In file included from /home/f483/dev/testkafka/node_modules/node-rdkafka/src/workers.h:14:0,
                 from ../src/workers.cc:13:
../../nan/nan.h:1618:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
../src/workers.cc: In member function ‘virtual void NodeKafka::Workers::KafkaConsumerConsume::HandleOKCallback()’:
../src/workers.cc:638:28: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
   callback->Call(argc, argv);
                            ^
In file included from /home/f483/dev/testkafka/node_modules/node-rdkafka/src/workers.h:14:0,
                 from ../src/workers.cc:13:
../../nan/nan.h:1618:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
../src/workers.cc: In member function ‘virtual void NodeKafka::Workers::KafkaConsumerConsume::HandleErrorCallback()’:
../src/workers.cc:647:28: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
   callback->Call(argc, argv);
                            ^
In file included from /home/f483/dev/testkafka/node_modules/node-rdkafka/src/workers.h:14:0,
                 from ../src/workers.cc:13:
../../nan/nan.h:1618:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
../src/workers.cc: In member function ‘virtual void NodeKafka::Workers::KafkaConsumerCommitted::HandleOKCallback()’:
../src/workers.cc:690:28: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
   callback->Call(argc, argv);
                            ^
In file included from /home/f483/dev/testkafka/node_modules/node-rdkafka/src/workers.h:14:0,
                 from ../src/workers.cc:13:
../../nan/nan.h:1618:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
../src/workers.cc: In member function ‘virtual void NodeKafka::Workers::KafkaConsumerCommitted::HandleErrorCallback()’:
../src/workers.cc:699:28: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
   callback->Call(argc, argv);
                            ^
In file included from /home/f483/dev/testkafka/node_modules/node-rdkafka/src/workers.h:14:0,
                 from ../src/workers.cc:13:
../../nan/nan.h:1618:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
../src/workers.cc: In member function ‘virtual void NodeKafka::Workers::KafkaConsumerSeek::HandleOKCallback()’:
../src/workers.cc:752:28: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
   callback->Call(argc, argv);
                            ^
In file included from /home/f483/dev/testkafka/node_modules/node-rdkafka/src/workers.h:14:0,
                 from ../src/workers.cc:13:
../../nan/nan.h:1618:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
../src/workers.cc: In member function ‘virtual void NodeKafka::Workers::KafkaConsumerSeek::HandleErrorCallback()’:
../src/workers.cc:761:28: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
   callback->Call(argc, argv);
                            ^
In file included from /home/f483/dev/testkafka/node_modules/node-rdkafka/src/workers.h:14:0,
                 from ../src/workers.cc:13:
../../nan/nan.h:1618:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
  SOLINK_MODULE(target) Release/obj.target/node-librdkafka.node
  COPY Release/node-librdkafka.node
rm deps_librdkafka_gyp_librdkafka_target_build_dependencies.intermediate
make: Leaving directory '/home/f483/dev/testkafka/node_modules/node-rdkafka/build'
npm WARN test-rdkafak@ No description
npm WARN test-rdkafak@ No repository field.
npm WARN test-rdkafak@ No license field.

added 3 packages in 62.645s

@F483
Copy link
Author

F483 commented Aug 15, 2018

Looking though the install logs, it seems to not be able to find/setup things.

checking for C compiler from CC env... ^[[33mfailed^[(B^[[m                      
checking for C++ compiler from CXX env... ^[[33mfailed^[(B^[[m                   
checking for librt (by pkg-config)... ^[[33mfailed^[(B^[[m                       
checking for libpthread (by pkg-config)... ^[[33mfailed^[(B^[[m                  
checking for libdl (by pkg-config)... ^[[33mfailed^[(B^[[m                       
checking for zlib (by pkg-config)... ^[[33mfailed^[(B^[[m                        
checking for zlib (by compile)... ^[[33mfailed^[(B^[[m (disable)                 
checking for libm (by pkg-config)... ^[[33mfailed^[(B^[[m                        
checking for rapidjson (by compile)... ^[[33mfailed^[(B^[[m (disable)

@spancespants
Copy link

@F483 any fix for this? I'm running into the same exact issue

@sven-petersen
Copy link

Duplicate of #405 ?

@icebob
Copy link

icebob commented Aug 29, 2018

Same issue, but only on Ubuntu 18.04. It works on Ubuntu 16.04. Very weird.

@chriskovacs
Copy link

Same issue. Downgraded to 2.3.4 and works again.

mike-coolfront added a commit to coolfront-technologies/node-rdkafka that referenced this issue Sep 13, 2018
librkafka++.so.1 not searching for librdkafka.so.1 correctly
@mike-coolfront
Copy link

I was able to reproduce this issue on both 16.04 & 18.04 using node-rdkafka 2.3.0 -> 2.4.1. I suspect what determines if it fails or not on ubuntu 16 vs 18 is dictated by what else maybe installed which causes a version of librdkafka.so.1 to be installed into a default lib search location. For my setup I used some lean docker containers to ensure librdkafak.so.1 was not installed. In summary what I'm seeing is node-rdkafka's dependency librdkafka++.so.1 is failing to find librkafka.so.1. In version 2.4.1 this occurs even though node-rdkafak's binding.gyp is setup with -rpath using $ORIGIN/../deps. In researching to understand this, it appears that librdkafka++.so.1 must also have its library search paths augmented.

log for librdkafka++.so.1 showing failure to find library. (lines 1, 3-35, 54)
librdkafka++.so.ldd.log

log showing node-rdkafka ldd output with failure to find library. (lines 30-64, 79)
node-rdkafka.ldd.log

For reference:

Now I'm trying to figure out how to mod node-rdkafka to have the same effect as adjusting the librdkafka project directly.

mike-coolfront added a commit to coolfront-technologies/node-rdkafka that referenced this issue Sep 13, 2018
librkafka++.so.1 not searching for librdkafka.so.1 correctly
mike-coolfront added a commit to coolfront-technologies/node-rdkafka that referenced this issue Sep 13, 2018
mike-coolfront added a commit to coolfront-technologies/node-rdkafka that referenced this issue Sep 14, 2018
librkafka++.so.1 not searching for librdkafka.so.1 correctly

fix escaping of ORIGIN variable
@mike-coolfront
Copy link

mike-coolfront commented Sep 14, 2018

I have an adjustment which appears to work, but I'm not sure if its the right final solution.
One item I don't fully understand is why adjusting the build for the submodule librdkafka causes the setup to magically start listing node-librdkafaka.node's runpath as being used when running
LD_DEBUG=libs ldd <pathtomyproject>/node_modules/build/Release/node-librdkafka.node

It seems like this change to util/configure.js somehow allows the setting in binding.gyp (approx line 81) to take effect on the indirect dependency librdkafka.so.1. Given the nature of the change I would have expected to see the rpath added in via util/configure.js to have appeared in the log

log showing effect after adjustment to util/configure.js
node-librdkafka.node.ldd.updated.log

for reference:
This is a pretty nifty site on shared libraries for linux systems I came across which has helped me in trying to investigate this.

@D4GGe
Copy link

D4GGe commented Oct 10, 2018

Also having this problem on
ubuntu 18.4
node 10.11.0
node-rdkafka 2.4.2

@mike-coolfront
Copy link

mike-coolfront commented Oct 18, 2018

I've not had time to assemble a proper pull request to get my potential fix reviewed.
If anyone would be interested in trying out my adjustment here is a link to the commit on my fork.
potential fix for issue

The change effects the build configuration used by node-rdkafaka when building librdkafka, so you'll have to work through rebuilding node-rdkafka and deploying the adjusted version to use it.

@guumaster
Copy link

In the meantime you can try to fix your installation by doing this:

> git clone https://github.com/edenhill/librdkafka.git  
> cd librdkafka
> ./configure && make
> sudo make install
> sudo ldconfig

I've found this temporal solution here

@trevorscott
Copy link

@mike-coolfront I tested out your fix and it solves this issue when node-rdkafka is deployed on Heroku.

mike-coolfront added a commit to coolfront-technologies/node-rdkafka that referenced this issue Dec 6, 2018
librkafka++.so.1 not searching for librdkafka.so.1 correctly

fix escaping of ORIGIN variable

adjust white space
@mike-coolfront
Copy link

quick update:
where the issue is present in as late as version 2.4.2
with the release of 2.5.x the issue appears to be addressed based on some isolated testing I did with ubuntu 18.

for those interested here is a link to a project I cobbled together to test for the issue on node-rdkafka 2.4.2, 2.5.0 and 2.5.1 in isolated ubuntu 18 containers

docker based lib path tester for node-rdkafka

I'm going to get my team using 2.5.x and see if we run into the past issues again and will report back.

@trevorscott
Copy link

@mike-coolfront thanks for the update. Confirmed: v2.5 successfully runs on Heroku (Ubuntu 18.04).

jonathan-gramain added a commit to scality/backbeat that referenced this issue Feb 12, 2019
This is essentially to solve an issue with librdkafka.so.1 lookup when
running tests. It's unclear in which situation exactly it arises (it
seems to run OK on the CI for example but fail in other environments)
but bumping the version fixes for me and was the suggestion in
Blizzard/node-rdkafka#474.
@stale
Copy link

stale bot commented Mar 19, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the stale Stale issues label Mar 19, 2019
@stale stale bot closed this as completed Mar 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Stale issues
Projects
None yet
Development

No branches or pull requests

9 participants