pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: wip/node - node.js



On Mon, Jul 9, 2012 at 5:55 AM, Ian McWilliam <kaosagnt%tpg.com.au@localhost> 
wrote:
>
> On 09/07/2012, at 11:30 AM, matthew sporleder wrote:
>
>> On Sun, Jul 8, 2012 at 9:28 PM, Ian McWilliam 
>> <kaosagnt%tpg.com.au@localhost> wrote:
>>>
>>> On 08/07/2012, at 1:11 AM, matthew sporleder wrote:
>>>
>>>> wip/node is starting to shape up into a pretty usable package.
>>>>
>>>> If anyone would like to test and give feedback I know the build is
>>>> currently working on NetBSD 5.1 and Solaris.
>>>>
>>>> Matt
>>>>
>>>>
>>>
>>>
>>> Fails to build on Darwin Mac OS X 10.7.4
>>>
>>>
>>>  CXX(target) 
>>> /Users/ianm/ports/pkgsrc/wip/node/work/node-v0.8.1/out/Release/obj.target/v8_base/gen/debug-support.o
>>>  LIBTOOL-STATIC 
>>> /Users/ianm/ports/pkgsrc/wip/node/work/node-v0.8.1/out/Release/libv8_base.a
>>> libtool: unrecognized option `-static'
>>> libtool: Try `libtool --help' for more information.
>>>  CXX(target) 
>>> /Users/ianm/ports/pkgsrc/wip/node/work/node-v0.8.1/out/Release/obj.target/v8_nosnapshot/gen/libraries.o
>>>  CXX(target) 
>>> /Users/ianm/ports/pkgsrc/wip/node/work/node-v0.8.1/out/Release/obj.target/v8_nosnapshot/gen/experimental-libraries.o
>>>  CXX(target) 
>>> /Users/ianm/ports/pkgsrc/wip/node/work/node-v0.8.1/out/Release/obj.target/v8_nosnapshot/deps/v8/src/snapshot-empty.o
>>>  LIBTOOL-STATIC 
>>> /Users/ianm/ports/pkgsrc/wip/node/work/node-v0.8.1/out/Release/libv8_nosnapshot.a
>>> libtool: unrecognized option `-static'
>>> libtool: Try `libtool --help' for more information.
>>>  TOUCH 
>>> /Users/ianm/ports/pkgsrc/wip/node/work/node-v0.8.1/out/Release/obj.target/deps/v8/tools/gyp/v8.stamp
>>>  CC(target) 
>>> /Users/ianm/ports/pkgsrc/wip/node/work/node-v0.8.1/out/Release/obj.target/zlib/deps/zlib/contrib/minizip/ioapi.o
>>>  CC(target) 
>>> /Users/ianm/ports/pkgsrc/wip/node/work/node-v0.8.1/out/Release/obj.target/zlib/deps/zlib/contrib/minizip/unzip.o
>>>  CC(target) 
>>> /Users/ianm/ports/pkgsrc/wip/node/work/node-v0.8.1/out/Release/obj.target/zlib/deps/zlib/contrib/minizip/zip.o
>>> ../deps/zlib/contrib/minizip/zip.c:198: warning: 'free_linkedlist' defined 
>>> but not used
>>>  CC(target) 
>>> /Users/ianm/ports/pkgsrc/wip/node/work/node-v0.8.1/out/Release/obj.target/zlib/deps/zlib/adler32.o
>>>  CC(target) 
>>> /Users/ianm/ports/pkgsrc/wip/node/work/node-v0.8.1/out/Release/obj.target/zlib/deps/zlib/compress.o
>>>  CC(target) 
>>> /Users/ianm/ports/pkgsrc/wip/node/work/node-v0.8.1/out/Release/obj.target/zlib/deps/zlib/crc32.o
>>>  CC(target) 
>>> /Users/ianm/ports/pkgsrc/wip/node/work/node-v0.8.1/out/Release/obj.target/zlib/deps/zlib/deflate.o
>>>  CC(target) 
>>> /Users/ianm/ports/pkgsrc/wip/node/work/node-v0.8.1/out/Release/obj.target/zlib/deps/zlib/gzio.o
>>>  CC(target) 
>>> /Users/ianm/ports/pkgsrc/wip/node/work/node-v0.8.1/out/Release/obj.target/zlib/deps/zlib/infback.o
>>>  CC(target) 
>>> /Users/ianm/ports/pkgsrc/wip/node/work/node-v0.8.1/out/Release/obj.target/zlib/deps/zlib/inffast.o
>>>  CC(target) 
>>> /Users/ianm/ports/pkgsrc/wip/node/work/node-v0.8.1/out/Release/obj.target/zlib/deps/zlib/inflate.o
>>>  CC(target) 
>>> /Users/ianm/ports/pkgsrc/wip/node/work/node-v0.8.1/out/Release/obj.target/zlib/deps/zlib/inftrees.o
>>>  CC(target) 
>>> /Users/ianm/ports/pkgsrc/wip/node/work/node-v0.8.1/out/Release/obj.target/zlib/deps/zlib/trees.o
>>>  CC(target) 
>>> /Users/ianm/ports/pkgsrc/wip/node/work/node-v0.8.1/out/Release/obj.target/zlib/deps/zlib/uncompr.o
>>>  CC(target) 
>>> /Users/ianm/ports/pkgsrc/wip/node/work/node-v0.8.1/out/Release/obj.target/zlib/deps/zlib/zutil.o
>>>  LIBTOOL-STATIC 
>>> /Users/ianm/ports/pkgsrc/wip/node/work/node-v0.8.1/out/Release/libchrome_zlib.a
>>> libtool: unrecognized option `-static'
>>> libtool: Try `libtool --help' for more information.
>>>  ACTION node_js2c_node_js2c 
>>> /Users/ianm/ports/pkgsrc/wip/node/work/node-v0.8.1/out/Release/obj/gen/node_natives.h
>>>  TOUCH 
>>> /Users/ianm/ports/pkgsrc/wip/node/work/node-v0.8.1/out/Release/obj.host/node_js2c.stamp
>>>  CXX(target) 
>>> /Users/ianm/ports/pkgsrc/wip/node/work/node-v0.8.1/out/Release/obj.target/node/src/fs_event_wrap.o
>>>  CXX(target) 
>>> /Users/ianm/ports/pkgsrc/wip/node/work/node-v0.8.1/out/Release/obj.target/node/src/cares_wrap.o
>>>  CXX(target) 
>>> /Users/ianm/ports/pkgsrc/wip/node/work/node-v0.8.1/out/Release/obj.target/node/src/handle_wrap.o
>>>  CXX(target) 
>>> /Users/ianm/ports/pkgsrc/wip/node/work/node-v0.8.1/out/Release/obj.target/node/src/node.o
>>>  CXX(target) 
>>> /Users/ianm/ports/pkgsrc/wip/node/work/node-v0.8.1/out/Release/obj.target/node/src/node_buffer.o
>>>  CXX(target) 
>>> /Users/ianm/ports/pkgsrc/wip/node/work/node-v0.8.1/out/Release/obj.target/node/src/node_constants.o
>>>  CXX(target) 
>>> /Users/ianm/ports/pkgsrc/wip/node/work/node-v0.8.1/out/Release/obj.target/node/src/node_extensions.o
>>>  CXX(target) 
>>> /Users/ianm/ports/pkgsrc/wip/node/work/node-v0.8.1/out/Release/obj.target/node/src/node_file.o
>>>  CXX(target) 
>>> /Users/ianm/ports/pkgsrc/wip/node/work/node-v0.8.1/out/Release/obj.target/node/src/node_http_parser.o
>>>  CXX(target) 
>>> /Users/ianm/ports/pkgsrc/wip/node/work/node-v0.8.1/out/Release/obj.target/node/src/node_javascript.o
>>> In file included from ../src/node_javascript.cc:24:
>>> /Users/ianm/ports/pkgsrc/wip/node/work/node-v0.8.1/out/Release/obj/gen/node_natives.h:167:
>>>  warning: missing initializer for member 'node::_native::source_len'
>>>  CXX(target) 
>>> /Users/ianm/ports/pkgsrc/wip/node/work/node-v0.8.1/out/Release/obj.target/node/src/node_main.o
>>>  CXX(target) 
>>> /Users/ianm/ports/pkgsrc/wip/node/work/node-v0.8.1/out/Release/obj.target/node/src/node_os.o
>>>  CXX(target) 
>>> /Users/ianm/ports/pkgsrc/wip/node/work/node-v0.8.1/out/Release/obj.target/node/src/node_script.o
>>>  CXX(target) 
>>> /Users/ianm/ports/pkgsrc/wip/node/work/node-v0.8.1/out/Release/obj.target/node/src/node_stat_watcher.o
>>>  CXX(target) 
>>> /Users/ianm/ports/pkgsrc/wip/node/work/node-v0.8.1/out/Release/obj.target/node/src/node_string.o
>>>  CXX(target) 
>>> /Users/ianm/ports/pkgsrc/wip/node/work/node-v0.8.1/out/Release/obj.target/node/src/node_zlib.o
>>>  CXX(target) 
>>> /Users/ianm/ports/pkgsrc/wip/node/work/node-v0.8.1/out/Release/obj.target/node/src/pipe_wrap.o
>>>  CXX(target) 
>>> /Users/ianm/ports/pkgsrc/wip/node/work/node-v0.8.1/out/Release/obj.target/node/src/stream_wrap.o
>>>  CXX(target) 
>>> /Users/ianm/ports/pkgsrc/wip/node/work/node-v0.8.1/out/Release/obj.target/node/src/slab_allocator.o
>>>  CXX(target) 
>>> /Users/ianm/ports/pkgsrc/wip/node/work/node-v0.8.1/out/Release/obj.target/node/src/tcp_wrap.o
>>>  CXX(target) 
>>> /Users/ianm/ports/pkgsrc/wip/node/work/node-v0.8.1/out/Release/obj.target/node/src/timer_wrap.o
>>>  CXX(target) 
>>> /Users/ianm/ports/pkgsrc/wip/node/work/node-v0.8.1/out/Release/obj.target/node/src/tty_wrap.o
>>>  CXX(target) 
>>> /Users/ianm/ports/pkgsrc/wip/node/work/node-v0.8.1/out/Release/obj.target/node/src/process_wrap.o
>>>  CXX(target) 
>>> /Users/ianm/ports/pkgsrc/wip/node/work/node-v0.8.1/out/Release/obj.target/node/src/v8_typed_array.o
>>>  CXX(target) 
>>> /Users/ianm/ports/pkgsrc/wip/node/work/node-v0.8.1/out/Release/obj.target/node/src/udp_wrap.o
>>>  CXX(target) 
>>> /Users/ianm/ports/pkgsrc/wip/node/work/node-v0.8.1/out/Release/obj.target/node/src/node_crypto.o
>>> In file included from ../src/node_crypto.cc:23:
>>> ../src/node_crypto_groups.h:386:3: warning: no newline at end of file
>>>  CXX(target) 
>>> /Users/ianm/ports/pkgsrc/wip/node/work/node-v0.8.1/out/Release/obj.target/node/src/node_signal_watcher.o
>>>  CXX(target) 
>>> /Users/ianm/ports/pkgsrc/wip/node/work/node-v0.8.1/out/Release/obj.target/node/src/node_io_watcher.o
>>>  LINK(target) 
>>> /Users/ianm/ports/pkgsrc/wip/node/work/node-v0.8.1/out/Release/node
>>> i686-apple-darwin11-llvm-g++-4.2: 
>>> /Users/ianm/ports/pkgsrc/wip/node/work/node-v0.8.1/out/Release/libhttp_parser.a:
>>>  No such file or directory
>>> i686-apple-darwin11-llvm-g++-4.2: 
>>> /Users/ianm/ports/pkgsrc/wip/node/work/node-v0.8.1/out/Release/libuv.a: No 
>>> such file or directory
>>> i686-apple-darwin11-llvm-g++-4.2: 
>>> /Users/ianm/ports/pkgsrc/wip/node/work/node-v0.8.1/out/Release/libopenssl.a:
>>>  No such file or directory
>>> i686-apple-darwin11-llvm-g++-4.2: 
>>> /Users/ianm/ports/pkgsrc/wip/node/work/node-v0.8.1/out/Release/libchrome_zlib.a:
>>>  No such file or directory
>>> i686-apple-darwin11-llvm-g++-4.2: 
>>> /Users/ianm/ports/pkgsrc/wip/node/work/node-v0.8.1/out/Release/libv8_base.a:
>>>  No such file or directory
>>> i686-apple-darwin11-llvm-g++-4.2: 
>>> /Users/ianm/ports/pkgsrc/wip/node/work/node-v0.8.1/out/Release/libv8_nosnapshot.a:
>>>  No such file or directory
>>> gnumake[1]: *** 
>>> [/Users/ianm/ports/pkgsrc/wip/node/work/node-v0.8.1/out/Release/node] Error 
>>> 1
>>> gnumake: *** [node] Error 2
>>> *** Error code 2
>>>
>>> Stop.
>>> bmake: stopped in /Users/ianm/ports/pkgsrc/wip/node
>>> *** Error code 1
>>>
>>> Stop.
>>> bmake: stopped in /Users/ianm/ports/pkgsrc/wip/node
>>>
>>> Ian McWilliam
>>>
>>>
>>>
>>
>>
>>
>> can you build from source?  I think osx should be a first-class target.
>>
>>
>
>
> Yes, it builds outside of pkgsrc
>
>
> [kristamari-w1:node-v0.8.1/out/Release] ianm% ./node -v
> v0.8.1
> [kristamari-w1:node-v0.8.1/out/Release] ianm% ls -al
> total 291112
> drwxr-xr-x  16 ianm  ianm        544  9 Jul 19:29 .
> drwxr-xr-x  12 ianm  ianm        408  9 Jul 19:22 ..
> drwxr-xr-x   3 ianm  ianm        102  9 Jul 19:22 .deps
> -rw-r--r--   1 ianm  ianm     362376  9 Jul 19:29 libchrome_zlib.a
> -rw-r--r--   1 ianm  ianm      33344  9 Jul 19:22 libhttp_parser.a
> -rw-r--r--   1 ianm  ianm   13174576  9 Jul 19:24 libopenssl.a
> -rw-r--r--   1 ianm  ianm    1286232  9 Jul 19:24 libuv.a
> -rw-r--r--   1 ianm  ianm  115689976  9 Jul 19:28 libv8_base.a
> -rw-r--r--   1 ianm  ianm     847848  9 Jul 19:28 libv8_nosnapshot.a
> -rw-r--r--   1 ianm  ianm    1211784  9 Jul 19:29 libv8_snapshot.a
> -rw-r--r--   1 ianm  ianm          0  9 Jul 19:28 linker.lock
> -rwxr-xr-x   1 ianm  ianm    6374772  9 Jul 19:28 mksnapshot
> -rwxr-xr-x   1 ianm  ianm   10051060  9 Jul 19:29 node
> drwxr-xr-x   3 ianm  ianm        102  9 Jul 19:24 obj
> drwxr-xr-x   3 ianm  ianm        102  9 Jul 19:29 obj.host
> drwxr-xr-x  16 ianm  ianm        544  9 Jul 19:29 obj.target
>
>
> Ian McWilliam
>
>
>

It seems to be pkgsrc libtool (does not work) vs osx libtool (does
work) because of the LIBTOOL-STATIC alias.

I'm not sure how to work around it.  Maybe someone else on the list
can give a hint.


Home | Main Index | Thread Index | Old Index