Thanks again Aaron, I really appreciate it.

Sharing this back to the list for them other Node heads out there.

All the best!

O.D.

On 6. november 2013 at 5:33 PM, "Aaron Bieber" <def...@gmail.com> wrote:
>
>On Wed, Nov 06, 2013 at 04:03:43PM +0000, openda...@hushmail.com wrote:
>> On 6. november 2013 at 3:56 PM, "Aaron Bieber" <def...@gmail.com> wrote:
>> >
>> >Perfect - that's what we want :P
>> >
>> >Now do the "export LDFLAGS=-L/usr/local/lib" and it will build fine.
>> 
>> Wow, what exactly happened here? :) It works! Thank you so much!
>
>Not 100% sure, but something was preventing
>"/usr/local/lib/node_modules/node-gyp/gyp/gyp" from picking up the 
>gyp you had installed, so it was defaulting to the internal node 
>version.
>
>The requirement for LDFLAGS being set is because some node modules 
>only look in /usr/lib when they do the linking.
>
>5.5 will have a fix that forces gyp to be installed as a node
>dependency.
>
>5.4 works fine as long as gyp is installed.
>
>> 
>> Also, in 5.4 everything should work flawless right?
>> 
>> O.D.
>> 
>> >
>> >> 
>> >> % npm install fibers
>> >> npm http GET https://registry.npmjs.org/fibers
>> >> npm http 304 https://registry.npmjs.org/fibers
>> >> 
>> >> > fibers@1.0.1 install 
>/home/opendaddy/myapp/node_modules/fibers
>> >> > node ./build.js
>> >> 
>> >> gmake: Entering directory 
>> >`/home/opendaddy/myapp/node_modules/fibers/build'
>> >>   g++ '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-
>> >DUSE_CORO' '-DCORO_GUARDPAGES=1' '-DCORO_ASM' '-
>> >DBUILDING_NODE_EXTENSION' -I/home/opendaddy/myapp/.node-
>> >gyp/0.8.18/src -I/home/opendaddy/myapp/.node-
>> >gyp/0.8.18/deps/uv/include -I/home/opendaddy/myapp/.node-
>> >gyp/0.8.18/deps/v8/include  -I/usr/include -fPIC -Wall -pthread 
>-
>> >m64 -O2 -fno-strict-aliasing -fno-tree-vrp -fno-tree-sink -fno-
>> >rtti -fno-exceptions -MMD -MF 
>> >./Release/.deps/Release/obj.target/fibers/src/fibers.o.d.raw  -
>c -
>> >o Release/obj.target/fibers/src/fibers.o ../src/fibers.cc
>> >>   g++ '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-
>> >DUSE_CORO' '-DCORO_GUARDPAGES=1' '-DCORO_ASM' '-
>> >DBUILDING_NODE_EXTENSION' -I/home/opendaddy/myapp/.node-
>> >gyp/0.8.18/src -I/home/opendaddy/myapp/.node-
>> >gyp/0.8.18/deps/uv/include -I/home/opendaddy/myapp/.node-
>> >gyp/0.8.18/deps/v8/include  -I/usr/include -fPIC -Wall -pthread 
>-
>> >m64 -O2 -fno-strict-aliasing -fno-tree-vrp -fno-tree-sink -fno-
>> >rtti -fno-exceptions -MMD -MF 
>> >./Release/.deps/Release/obj.target/fibers/src/coroutine.o.d.raw 
> -
>> >c -o Release/obj.target/fibers/src/coroutine.o 
>../src/coroutine.cc
>> >>   cc '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-
>DUSE_CORO' 
>> >'-DCORO_GUARDPAGES=1' '-DCORO_ASM' '-DBUILDING_NODE_EXTENSION' -
>> >I/home/opendaddy/myapp/.node-gyp/0.8.18/src -
>> >I/home/opendaddy/myapp/.node-gyp/0.8.18/deps/uv/include -
>> >I/home/opendaddy/myapp/.node-gyp/0.8.18/deps/v8/include  -
>> >I/usr/include -fPIC -Wall -pthread -m64 -O2 -fno-strict-
>aliasing -
>> >fno-tree-vrp -fno-tree-sink  -MMD -MF 
>> 
>>./Release/.deps/Release/obj.target/fibers/src/libcoro/coro.o.d.ra
>w 
>> > -c -o Release/obj.target/fibers/src/libcoro/coro.o 
>> >../src/libcoro/coro.c
>> >>   flock ./Release/linker.lock g++ -shared -pthread -rdynamic -
>> >m64 -pthread  -Wl,-soname=fibers.node -o 
>> >Release/obj.target/fibers.node -Wl,--start-group 
>> >Release/obj.target/fibers/src/fibers.o 
>> >Release/obj.target/fibers/src/coroutine.o 
>> >Release/obj.target/fibers/src/libcoro/coro.o -Wl,--end-group -
>lz -
>> >lv8 -L/usr/lib -lssl -lcrypto
>> >> /usr/bin/ld: cannot find -lv8
>> >> collect2: ld returned 1 exit status
>> >> gmake: *** [Release/obj.target/fibers.node] Error 1
>> >> gmake: Leaving directory 
>> >`/home/opendaddy/myapp/node_modules/fibers/build'
>> >> gyp ERR! build error
>> >> gyp ERR! stack Error: `gmake` failed with exit code: 2
>> >> gyp ERR! stack     at ChildProcess.onExit 
>> >(/usr/local/lib/node_modules/node-gyp/lib/build.js:257:23)
>> >> gyp ERR! stack     at ChildProcess.EventEmitter.emit 
>> >(events.js:99:17)
>> >> gyp ERR! stack     at Process.ChildProcess._handle.onexit 
>> >(child_process.js:678:10)
>> >> gyp ERR! System OpenBSD 5.3
>> >> gyp ERR! command "node" 
>> >"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-
>> >gyp.js" "rebuild"
>> >> gyp ERR! cwd /home/opendaddy/myapp/node_modules/fibers
>> >> gyp ERR! node -v v0.8.18
>> >> gyp ERR! node-gyp -v v0.8.2
>> >> gyp ERR! not ok
>> >> Build failed
>> >> npm ERR! fibers@1.0.1 install: `node ./build.js`
>> >> npm ERR! `sh "-c" "node ./build.js"` failed with 1
>> >> npm ERR!
>> >> npm ERR! Failed at the fibers@1.0.1 install script.
>> >> npm ERR! This is most likely a problem with the fibers 
>package,
>> >> npm ERR! not with npm itself.
>> >> npm ERR! Tell the author that this fails on your system:
>> >> npm ERR!     node ./build.js
>> >> npm ERR! You can get their info via:
>> >> npm ERR!     npm owner ls fibers
>> >> npm ERR! There is likely additional logging output above.
>> >> 
>> >> npm ERR! System OpenBSD 5.3
>> >> npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" 
>> >"install" "fibers"
>> >> npm ERR! cwd /home/opendaddy/myapp
>> >> npm ERR! node -v v0.8.18
>> >> npm ERR! npm -v 1.2.2
>> >> npm ERR! code ELIFECYCLE
>> >> npm ERR!
>> >> npm ERR! Additional logging details can be found in:
>> >> npm ERR!     /home/opendaddy/myapp/npm-debug.log
>> >> npm ERR! not ok code 0
>> >> 
>> >> % pkg_info
>> >> gyp-0.1282          generate SCons/Makefiles from platform-
>> >independent input
>> >> node-0.8.18         V8 JavaScript for clients and servers
>> >> 
>> >> Thanks.
>> >> 
>> >> O.D.

Reply via email to