shared lib built with node-waf not working with node v0.6.11 on Mac OS X

128 views
Skip to first unread message

Stephen Bannasch

unread,
Feb 20, 2012, 11:11:26 PM2/20/12
to nod...@googlegroups.com
I updated from node v0.6.10 to 0.6.11 on MacOS X 10.6.8 and contextify started reporting that the contextify.node shared
library doesn't work with node.

More details: https://github.com/brianmcd/contextify/issues/19

Seems like a strange problem ...

When I updated from v0.6.10 to 0.6.11 the date of the installed node-waf is older but the files appear identical.

$ node --version
v0.6.10

$ ls -l /usr/local/bin/node-waf
-rwxr-xr-x 1 24561 wheel 355 Feb 2 19:56 /usr/local/bin/node-waf

$ ls -l /usr/local/bin/node
-rwxr-xr-x 1 24561 wheel 6683464 Feb 2 19:59 /usr/local/bin/node

$ node --version
v0.6.11

$ ls -l /usr/local/bin/node-waf
-rwxr-xr-x 1 24561 wheel 355 Jan 19 20:53 /usr/local/bin/node-waf

$ ls -l /usr/local/bin/node
-rwxr-xr-x 1 24561 wheel 6021212 Feb 17 15:54 /usr/local/bin/node


Ben Noordhuis

unread,
Feb 21, 2012, 6:46:26 AM2/21/12
to nod...@googlegroups.com

What architectures are node and your add-on compiled for? Run `file
/usr/local/bin/node` and `file /path/to/contextify.node` and compare
the results.

Stephen Bannasch

unread,
Feb 21, 2012, 10:56:08 AM2/21/12
to nod...@googlegroups.com

Ahh ... v0.6.10 is a 64-bit executable:

$ node --version
v0.6.10
$ file `which node`
/usr/local/bin/node: Mach-O 64-bit executable x86_64

But installing the latest version of node from the pkg hosted here results in a 32-bit executable:

http://nodejs.org/dist/v0.6.11/node-v0.6.11.pkg

$ node --version
v0.6.11
$ file `which node`
/usr/local/bin/node: Mach-O executable i386

This seems to be a mistake in the building/packaging of node-v0.6.11.pkg

In either case contextify builds a 64-bit shared library.

Reply all
Reply to author
Forward
0 new messages