Trying to compile on Ubuntu 9.10

Kevin Smith ksmith at basho.com
Fri Feb 12 15:29:03 EST 2010


That's an issue with Spidermonkey's API, I think. I'm working on erlang_js pretty heavily right now. I'll take a look and see about fixing that.

--Kevin
On Feb 12, 2010, at 3:06 PM, Dan Young wrote:

> That worked, thank you.
> 
> I did get this @ the end, but it seemed to compile.
> 
> Compiling c_src/spidermonkey.c
> c_src/spidermonkey.c: In function ‘sm_initialize’:
> c_src/spidermonkey.c:126: warning: passing argument 4 of
> ‘JS_DefineFunction’ from incompatible pointer type
> c_src/include/js/jsapi.h:1905: note: expected ‘JSNative’ but argument
> is of type ‘JSBool (**)(struct JSContext *, struct JSObject *, uintN,
> jsval *, jsval *)’
> Compiling c_src/spidermonkey_drv.c
> ==> rel (generate)
> 
> 
> On Fri, Feb 12, 2010 at 1:01 PM, Ryan Tilder <rtilder at basho.com> wrote:
>> Just do:   make clean rel
>> The rel Makefile target has the all target as a dependency and it seems that
>> a few directories in the riak/apps/erlang_js getting handled quite properly.
>> --Ryan
>> 
>> On Fri, Feb 12, 2010 at 11:57 AM, Dan Young <danoyoung at gmail.com> wrote:
>>> 
>>> hg clone http://hg.basho.com/riak/
>>> cd riak
>>> make all rel
>>> 
>>> Now I'm getting:
>>> 
>>> 
>>> 
>>> ....
>>> ....
>>> Compiling c_src/spidermonkey.c
>>> c_src/spidermonkey.c: In function ‘sm_initialize’:
>>> c_src/spidermonkey.c:126: warning: passing argument 4 of
>>> ‘JS_DefineFunction’ from incompatible pointer type
>>> c_src/include/js/jsapi.h:1905: note: expected ‘JSNative’ but argument
>>> is of type ‘JSBool (**)(struct JSContext *, struct JSObject *, uintN,
>>> jsval *, jsval *)’
>>> Compiling c_src/spidermonkey_drv.c
>>> ./rebar compile generate
>>> ==> protobuffs (compile)
>>> ==> mochiweb (compile)
>>> ==> webmachine (compile)
>>> ==> luke (compile)
>>> ==> riak (compile)
>>> ==> erlang_js (compile)
>>> Running c_src/build_driver_deps.sh
>>> ~/riak/apps/erlang_js/c_src ~/riak/apps/erlang_js
>>> make[1]: Entering directory `/root/riak/apps/erlang_js/c_src'
>>> mkdir: cannot create directory `deps/js': File exists
>>> make[1]: *** [deps/js] Error 1
>>> make[1]: Leaving directory `/root/riak/apps/erlang_js/c_src'
>>> ERROR: c_src/build_driver_deps.sh failed with error: 2
>>> ==> rel (generate)
>>> 
>>> {error_logger,{{2010,2,12},{12,53,57}},crash_report,[[{initial_call,{reltool_server,init,['Argument__1']}},{pid,<0.519.0>},{registered_name,[]},{error_info,{exit,{{badmatch,{'EXIT',{noproc,{gen_server,call,[file_server_2,{read_file_info,"/usr/local/lib/erlang/lib/cosNotification-1.1.12/ebin/CosNotifyComm_StructuredPullSupplier.beam"},infinity]}}}},[{reltool_server,xref_mod,1},{reltool_server,init_mod,4},{lists,map,2},{lists,map,2},{reltool_server,refresh_app,3},{reltool_server,refresh_apps,5},{reltool_server,merge_config,4},{reltool_server,refresh,3}]},[{reltool_server,init,1},{proc_lib,init_p_do_apply,3}]}},{ancestors,[<0.2.0>]},{messages,[{call,<0.2.0>,#Ref<0.0.0.16997>,{get_app,kernel}}]},{links,[<0.2.0>,<0.1062.0>]},{dictionary,[]},{trap_exit,false},{status,running},{heap_size,6765},{stack_size,24},{reductions,204564}],[{neighbour,[{pid,<0.1062.0>},{registered_name,[]},{initial_call,{xref,init,['Argument__1']}},{current_function,{gen_server,loop,6}},{ancestors,[<0.519.0>,<0.2.0>]},{messages,[]},{links,[<0.519.0>]},{dictionary,[]},{trap_exit,false},{status,waiting},{heap_size,987},{stack_size,9},{reductions,1085}]},{neighbour,[{pid,<0.2.0>},{registered_name,[]},{initial_call,{erlang,apply,2}},{current_function,{reltool_utils,call,2}},{ancestors,[]},{messages,[]},{links,[<0.0.0>,<0.519.0>]},{dictionary,[]},{trap_exit,false},{status,waiting},{heap_size,6765},{stack_size,56},{reductions,234905}]}]]}
>>> make: *** [rel] Error 1
>>> root at dyoung-ubuntu:~/riak#
>>> 
>>> 
>>> On Fri, Feb 12, 2010 at 12:37 PM, Ryan Tilder <rtilder at basho.com> wrote:
>>>> Pull from the tip.  There was a small mistake and the latest rebar
>>>> updates
>>>> didn't get included in the most recent merge.
>>>> --Ryan
>>>> 
>> 
>> 
> 
> _______________________________________________
> riak-users mailing list
> riak-users at lists.basho.com
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com





More information about the riak-users mailing list