fuwaneko / node-protobuf

Google Protocol Buffers wrapper for Node.js [UNMAINTAINED]
180 stars 42 forks source link

dyld: lazy symbol binding failed: Symbol not found: __ZNK6google8protobuf14DescriptorPool21FindMessageTypeByNameERKSs #12

Closed 16n closed 10 years ago

16n commented 10 years ago

I'm not able to get node-protobuf to work. I always get the following error:

dyld: lazy symbol binding failed: Symbol not found: __ZNK6google8protobuf14DescriptorPool21FindMessageTypeByNameERKSs Referenced from: /Users/Development/Labs/ptest/node_modules/rethinkdb/node_modules/node-protobuf/build/Release/protobuf.node Expected in: dynamic lookup

dyld: Symbol not found: __ZNK6google8protobuf14DescriptorPool21FindMessageTypeByNameERKSs Referenced from: /Users/Development/Labs/ptest/node_modules/rethinkdb/node_modules/node-protobuf/build/Release/protobuf.node Expected in: dynamic lookup

Trace/BPT trap: 5

Ideas? Thanks!

fuwaneko commented 10 years ago

Do you have libprotobuf installed?

mshick commented 10 years ago

I'm having the same issue. I was attempting to get going with RethinkDB following these instructions. Basically, I did brew install rethinkdb and it had libprotobuf as a dependency. I see libprotobuf installed here: /usr/local/Cellar/protobuf/2.5.0/lib and linked here/usr/local/lib (which is in my PATH).

The libs I see linked in there are:

Also, the protoc command seems to be working.

Does that look about right?

For your reference, here are the relevant Homebrew formulas that did the install -- maybe they missed something? This is an install to Mavericks, so the protobuf dep was invoked.

fuwaneko commented 10 years ago

@mshick Unfortunately I don't have a Mac, and have no idea about how Homebrew works (from what's inside ruby scripts it looks like it compiles from source, which is fine). Maybe it's a problem with 32/64-bit libraries conflict or dynamically linked vs. statically linked, but I'm not sure. I'll ask friend with Mac to help.

mshick commented 10 years ago

I had a co-worker, also running Mavericks, test this module and he had precisely the same issue. It was a minimal test case -- just this module and the sample code in the docs.

Likewise, I was able to get Rethink working by removing this module.

It would seem something unique to this module and the Mavericks environment is the culprit...

fuwaneko commented 10 years ago

As far as I can tell from googling, that's not an issue with my module, but rather npm/node-gyp, e.g. https://github.com/peterbraden/node-opencv/issues/87

mshick commented 10 years ago

Ah, great. Thanks for investigating. I'll follow the progress over there.

mschilde commented 10 years ago

I have the same issue with the latest version (1.0.9). protoc is properly installed and works (2.5.0)

I'm still on OSX 10.8

fuwaneko commented 10 years ago

@mschilde check pull request above for additional info.

fuwaneko commented 10 years ago

I suppose this is resolved by now as I'm working on Mac since Feb and it's compiling properly.