Node-rdkafka: Error: librdkafka.so.1: cannot open shared object file: No such file or directory

Created on 15 Aug 2018  Â·  15Comments  Â·  Source: Blizzard/node-rdkafka

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
└─┬ [email protected]
  ├── [email protected]
  └── [email protected]

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

stale

Most helpful comment

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.

All 15 comments

Here is also the output of npm install

> [email protected] 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... ok(B (Ubuntu)
checking for C compiler from CC env... failed(B
checking for gcc (by command)... ok(B
checking for C++ compiler from CXX env... failed(B
checking for C++ compiler (g++)... ok(B
checking executable ld... ok(B
checking executable nm... ok(B
checking executable objdump... ok(B
checking executable strip... ok(B
checking for pkgconfig (by command)... ok(B
checking for install (by command)... ok(B
checking for PIC (by compile)... ok(B
checking for GNU-compatible linker options... ok(B
checking for GNU linker-script ld flag... ok(B
checking for __atomic_32 (by compile)... ok(B
checking for __atomic_64 (by compile)... ok(B
checking for socket (by compile)... ok(B
parsing version '0x000b05ff'... ok(B (0.11.5)
checking for librt (by pkg-config)... failed(B
checking for librt (by compile)... ok(B
checking for libpthread (by pkg-config)... failed(B
checking for libpthread (by compile)... ok(B
checking for libdl (by pkg-config)... failed(B
checking for libdl (by compile)... ok(B
checking for zlib (by pkg-config)... failed(B
checking for zlib (by compile)... failed(B (disable)
checking for libcrypto (by pkg-config)... ok(B
checking for libcrypto (by compile)... ok(B (cached)
checking for libm (by pkg-config)... failed(B
checking for libm (by compile)... ok(B
checking for liblz4 (by pkg-config)... ok(B
checking for liblz4 (by compile)... ok(B (cached)
checking for rapidjson (by compile)... failed(B (disable)
checking for libssl (by pkg-config)... ok(B
checking for libssl (by compile)... ok(B (cached)
checking for libsasl2 (by pkg-config)... ok(B
checking for libsasl2 (by compile)... ok(B (cached)
checking for crc32chw (by compile)... ok(B
checking for regex (by compile)... ok(B
checking for strndup (by compile)... ok(B
checking for strerror_r (by compile)... ok(B
checking for pthread_setname_gnu (by compile)... ok(B
checking for nm (by env NM)... ok(B (cached)
checking for python (by command)... ok(B
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
Generating linker script librdkafka.lds from rdkafka.h(B
Creating shared library librdkafka.so.1(B
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
Creating static library librdkafka.a(B
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
Creating librdkafka.so symlink(B
rm -f "librdkafka.so" && ln -s "librdkafka.so.1" "librdkafka.so"
Generating pkg-config file rdkafka.pc(B
Generating pkg-config file rdkafka-static.pc(B
Checking librdkafka integrity(B
librdkafka.so.1                OK(B
librdkafka.a                   OK(B
Symbol visibility              OK(B
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
Creating shared library librdkafka++.so.1(B
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++
Creating static library librdkafka++.a(B
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
Creating librdkafka++.so symlink(B
rm -f "librdkafka++.so" && ln -s "librdkafka++.so.1" "librdkafka++.so"
Generating pkg-config file rdkafka++.pc(B
Generating pkg-config file rdkafka++-static.pc(B
Checking librdkafka++ integrity(B
librdkafka++.so.1              OK(B
librdkafka++.a                 OK(B
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'
Install librdkafka to /home/f483/dev/testkafka/node_modules/node-rdkafka/build/deps(B
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'
Install librdkafka++ to /home/f483/dev/testkafka/node_modules/node-rdkafka/build/deps(B
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

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)

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

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

Same issue. Downgraded to 2.3.4 and works again.

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.

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.

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

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.

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

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

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.

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

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

Was this page helpful?
0 / 5 - 0 ratings