Git Product home page Git Product logo

Comments (8)

JustinTulloss avatar JustinTulloss commented on July 18, 2024

not sure what's going on, I'll look into it sometime soon.

from zeromq.node.

jfd avatar jfd commented on July 18, 2024

Maybe I should add that Im sitting on mac:
Darwin 10.7.0 Darwin Kernel Version 10.7.0: Sat Jan 29 15:17:16 PST 2011; root:xnu-1504.9.37~1/RELEASE_I386

from zeromq.node.

acacio avatar acacio commented on July 18, 2024

Just to add that I'm getting exactly the same issue with my Linux build:

$ ldd binding.node
linux-gate.so.1 => (0xb787e000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb777b000)
libm.so.6 => /lib/libm.so.6 (0xb7755000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7738000)
libc.so.6 => /lib/libc.so.6 (0xb75db000)
/lib/ld-linux.so.2 (0xb787f000)

$ node examples/connections.js
node: symbol lookup error: /opt/node/lib/node/zeromq/binding.node: undefined symbol: zmq_init

It was building & running fine before.

BTW, since I have a non /usr/local install, I have the following wscript change:
obj.cxxflags = ["-Wall", "-Werror", "-I/opt/node/include"]

from zeromq.node.

kevinmarvin avatar kevinmarvin commented on July 18, 2024

I am getting the exact same error on node 0.4.6 and zmq 2.1.4 - and am on OS/X - I think it has to do with the linker, as otool -L bindings.node gives me:

otool -L binding.node
binding.node:
/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.9.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.2.10)

This is on : Darwin 10.7.0 Darwin Kernel Version 10.7.0: Sat Jan 29 15:16:10 PST 2011; root:xnu-1504.9.37~1/RELEASE_X86_64 x86_64

I've not had it working before, was actually looking to test zmq in node, but will keep a watch on this issue for updates.

from zeromq.node.

acacio avatar acacio commented on July 18, 2024

I found how to fix it (in

In one of the head commits, wscript had this change:

  • obj.lib = ["zmq"]
  • obj.uselib = "LIBZMQ"

This breaks the linking.
Adding back

  • obj.lib = ["zmq"]

gets a running binding.node addon again.

from zeromq.node.

JustinTulloss avatar JustinTulloss commented on July 18, 2024

Checked in a fix that I hope will work for you guys. Sorry for the inconvenience.

from zeromq.node.

gizm0duck avatar gizm0duck commented on July 18, 2024

This is the exact error I am getting. Is the above still the recommended fix?

from zeromq.node.

JMacLulich avatar JMacLulich commented on July 18, 2024

Edited: I think I'm using an old version of 0MQ as I used macports to install it; I'll try building from source and update shortly.

I have the same problem using zmq-1.0.3; is this the fix still not checked in? I'm working with OS X Lion 10.7; thanks.

from zeromq.node.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.