Closed mikl closed 13 years ago
Have you tried downloading the repo and building without npm?
Yeah, that works fine. Installing it alone via npm install node-proxy
also works as it should, but when I do a npm install now
(to get nowjs), I get the aforementioned error…
The plot thickens – even if node-proxy sucessfully installs, I get this error when I try to run something that uses it:
/libexec/ld-elf.so.1: /srv/www/[..]/node_modules/node-proxy/lib/node-proxy.node: Undefined symbol "_ZN2v811HandleScopeC1Ev"
What version of node.js are you compiling against?
Node v0.4.8 on FreeBSD 8.1-RELEASE amd64 :)
Could you post the output from running make test
in the repo directory?
Clean as a whistle:
(mikl@basil) (378/pts/1/0) (~/node-proxy)
% make test
BUILDING: C++ Component
Checking for program g++ or c++ : /usr/bin/g++
Checking for program cpp : /usr/bin/cpp
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
Checking for g++ : ok
Checking for node path : not found
Checking for node prefix : ok /usr/local
'configure' finished successfully (0.029s)
Waf: Entering directory `/usr/home/mikl/node-proxy/src/build'
[1/2] cxx: node-proxy.cc -> build/default/node-proxy_1.o
[2/2] cxx_link: build/default/node-proxy_1.o -> build/default/node-proxy.node
Waf: Leaving directory `/usr/home/mikl/node-proxy/src/build'
'build' finished successfully (0.439s)
node test/test.js
Running tests...
1: Base Proxy methods
Proxy.create: PASS
Proxy.createFunction: PASS
Proxy.createFunction with optional constructor trap: PASS
Proxy.isTrapping on proxy object: PASS
2: Testing proxy function instance
proxy function is callable: PASS
proxy function has accessible properties: PASS
proxy function get properties: PASS
proxy function as constructor: PASS
proxy function instance property handling: PASS
3: Testing proxy object instance
has property 'first': PASS
get property 'first': PASS
set property 'first' to new value: PASS
set new property 'second': PASS
has new property 'second': PASS
get newly set property 'second': PASS
iterate property names: PASS
Object.getOwnPropertyNames on proxy object: PASS
Object.getOwnPropertyNames returned an Array: PASS
Object.getOwnPropertyNames return value has the correct length: PASS
Object.getOwnPropertyNames has the correct values: PASS
Object.keys on proxy object: PASS
Object.keys returned an Array: PASS
Object.keys return value has the correct length: PASS
Object.keys has the correct values: PASS
delete 'second': PASS
proxy instance no longer has property 'second': PASS
4: Fundamental traps
PropertyDescriptor context for get should be the receiver: PASS
PropertyDescriptor context for set should be the receiver: PASS
PropertyDescriptor should get value if get method is not supplied: PASS
PropertyDescriptor should set value if set method is not supplied: PASS
5: Derived traps
proxy context should be the PropertyHandler for derived trap 'get': PASS
proxy context should be the PropertyHandler for derived trap 'has': PASS
proxy context should be the PropertyHandler for derived trap 'enumerate': PASS
proxy context should be the PropertyHandler for derived trap 'set': PASS
6: ECMAScript 5 implementation methods
Proxy.defineProperty on proxy object: PASS
proxy has newly defined property: PASS
proxy's newly defined property have correct return value: PASS
proxy's newly defined property are reflected in underlying handlers: PASS
Proxy.defineProperties on proxy object: PASS
proxy has newly defined properties: PASS
proxy's newly defined properties have correct return value: PASS
proxy's newly defined properties are reflected in underlying handlers: PASS
7: Additional method tests
Proxy.isProxy proxy object: PASS
Proxy.isProxy non-proxy object: PASS
Proxy.setPrototype of proxy object: PASS
proxy object is instanceof RegExp: PASS
Proxy.setPrototype of non-proxy object: PASS
non-proxy object is instanceof RegExp: PASS
Proxy.clone proxy object: PASS
cloned proxy maintains prototype of base proxy: PASS
Proxy.clone non-proxy object: PASS
cloned object maintains prototype of base: PASS
set hidden property on cloned object: PASS
get hidden property on cloned object: PASS
Passed 54 of 54 tests
Failed 0 of 54 tests
So, if make test comes out clean, how can this error be reproduced?
Interestingly, this persists with node-proxy 0.3.2, but is not reproducible with 0.5.2.
I am having issues with installing
node-proxy
on FreeBSD. It seems that something weird is going on with a cd-command.