question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

node-rdkafka build/run: dyld: Symbol not found: _timespec_get

See original GitHub issue

Environment Information

  • OS [e.g. Mac, Arch, Windows 10]: MacOS 10.14.6
  • Node Version [e.g. 8.2.1]: 11.9.0
  • NPM Version [e.g. 5.4.2]: 6.9.0
  • C++ Toolchain [e.g. Visual Studio, llvm, g++]: XCode Version 11.0 (11A420a)
  • node-rdkafka version [e.g. 2.3.3]: 2.7.1

Steps to Reproduce Did an npm i as usual; we have some warnings on build:

gcc -MD -MP -I/usr/local/opt/openssl/include -I/usr/local/opt/openssl/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/usr/local/opt/openssl/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION=“""” -c rdkafka_queue.c -o rdkafka_queue.o In file included from rdkafka_queue.c:29: In file included from ./rdkafka_int.h:46: ./rdtime.h:172:17: warning: ‘timespec_get’ is only available on macOS 10.15 or newer [-Wunguarded-availability-new] timespec_get(tspec, TIME_UTC); ^~~~~~~~~~~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/time.h:199:5: note: ‘timespec_get’ has been marked as being introduced in macOS 10.15 here, but the deployment target is macOS 10.14.0 int timespec_get(struct timespec *ts, int base); ^ ./rdtime.h:172:17: note: enclose ‘timespec_get’ in a __builtin_available check to silence this warning timespec_get(tspec, TIME_UTC); ^~~~~~~~~~~~

1 warning generated.

Upon running the code, after node-rdkafka has been initialized I get:

dyld: lazy symbol binding failed: Symbol not found: _timespec_get Referenced from: /Users/bela/projects/aix-next/services/stream-router/node_modules/node-rdkafka/build/deps/librdkafka.1.dylib Expected in: /usr/lib/libSystem.B.dylib

dyld: Symbol not found: _timespec_get Referenced from: /Users/bela/projects/aix-next/services/stream-router/node_modules/node-rdkafka/build/deps/librdkafka.1.dylib Expected in: /usr/lib/libSystem.B.dylib

This has not been happening in the past (about 1 month ago). CC @edenhill

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:12
  • Comments:16

github_iconTop GitHub Comments

4reactions
klesgidiscommented, Nov 5, 2019

Hi guys, this is merged in https://github.com/edenhill/librdkafka/releases/tag/v1.2.2-RC1.

Could you please bump librdkafka in your package?

4reactions
belabarthacommented, Sep 27, 2019

I found the issue and a workaround: XCode was automatically updated to v11, with it MacOS SDK was updated to 11.15. Reverted to XCode 10.3 and MacOS SDK 10.14, and everything just works fine

Read more comments on GitHub >

github_iconTop Results From Across the Web

lazy symbol binding failed: Symbol not found: _clock_gettime ...
I have searched online for error dyld: lazy symbol binding failed: Symbol not found: _clock_gettime and found this answer. I have applied all ......
Read more >
node-rdkafka - npm
WARNING: Due to a bug in Apache Kafka 0.9.0.x, the ApiVersionRequest (as sent by the client when connecting to the broker) will be...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found