I'm having some trouble with building node modules that involve native
code on FreeBSD 8.2 on amd64. With the up-to-date ports tree, I can
build and run node, but when I do a default install of npm and build
(for instance) hiredis or node-mongodb-native, and try to run, I get
an Unresolved Symbol issue. Has anyone seen / gotten around this
problem?
First, I install node from /usr/ports/www/node.
Then I :
$ cd ~
$ curl
http://npmjs.org/install.sh | sudo sh
$ npm install hiredis
$ cd node_modules/hiredis/test
$ node reader.js
/libexec/ld-elf.so.1: /usr/home/brett/node_modules/hiredis/build/
default/hiredis.node: Undefined symbol "_ZN2v811HandleScopeC1Ev"
I filed a case against FreeBSD ports, as well:
http://www.freebsd.org/cgi/query-pr.cgi?pr=157875
Anybody have experience with this?