Building node modules with native code under FreeBSD

126 views
Skip to first unread message

Brett Kiefer

unread,
Jun 14, 2011, 3:41:46 PM6/14/11
to nodejs
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?

Brett Kiefer

unread,
Jun 14, 2011, 3:46:32 PM6/14/11
to nodejs
It looks as though at least one other person has seen this:
https://github.com/christkv/node-mongodb-native/issues/235

On Jun 14, 3:41 pm, Brett Kiefer <kie...@gmail.com> wrote:
> 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 ~
> $ curlhttp://npmjs.org/install.sh| sudo sh

Brett Kiefer

unread,
Jun 15, 2011, 8:32:39 AM6/15/11
to nodejs
Okay; if anyone else sees this, apparently all that is required is to
tell v8 to make its symbols visible, some fine individual posted the
fix on the BSD ports bug:
http://www.freebsd.org/cgi/query-pr.cgi?pr=157875
Reply all
Reply to author
Forward
0 new messages