There seems to be a bug with node.js to compile in 64-bit on Mac OSX 10.6 and 10.7. Even if forcing config to x64, it is still compiling as i386. Worse, modules are compiled with '-arch' 'i386'.
I think the error is in 1. configure: uname should be -m, not -p. -p returns i386, while -m returns x86_64 2. ./tools/wafadmin/Tools/node_addon.py is always set to i386. Wrong! There should be a switch on uname -p to set it to x86_64 After doing both modifs, I'm able to link modules with 64b frameworks.
