initial install - compile error - c_src/ebloom_nifs.cpp:24: error: expected initializer before ‘*’ token

ferriswheel ferriswheel at jetechserv.com
Sat Apr 17 20:14:06 EDT 2010


hello,


below is the result i get from 

      mkdir getting_started
      cd getting_started
      hg clone http://hg.basho.com/riak/
      cd riak
      make

os gentoo linux
erlang version 13.2.3
g++ (Gentoo 4.3.4 p1.0, pie-10.1.5) 4.3.4

all assistance is appreciated.

regards


./rebar get-deps
==> protobuffs (get-deps)
==> luke (get-deps)
==> mochiweb (get-deps)
==> webmachine (get-deps)
==> mochiweb (get-deps)
==> riak_core (get-deps)
==> riakc (get-deps)
==> ebloom (get-deps)
==> mochiweb (get-deps)
==> webmachine (get-deps)
==> erlang_js (get-deps)
==> riak_kv (get-deps)
==> rel (get-deps)
==> riak (get-deps)
./rebar compile
==> protobuffs (compile)
Compiled src/protobuffs.erl
Compiled src/pokemon_pb.erl
Compiled src/protobuffs_compile.erl
Compiled src/protobuffs_parser.erl
==> luke (compile)
Compiled src/luke_phases.erl
Compiled src/luke_phase_sup.erl
Compiled src/luke_flow_sup.erl
Compiled src/luke.erl
Compiled src/luke_sup.erl
Compiled src/luke_phase.erl
Compiled src/luke_flow.erl
==> mochiweb (compile)
Compiled src/mochifmt_std.erl
Compiled src/mochiweb_headers.erl
Compiled src/mochiweb_sup.erl
Compiled src/mochiweb_http.erl
Compiled src/mochiweb_multipart.erl
Compiled src/reloader.erl
Compiled src/mochiweb_response.erl
Compiled src/mochiweb_charref.erl
Compiled src/mochiweb_cookies.erl
Compiled src/mochiweb_app.erl
Compiled src/mochifmt_records.erl
Compiled src/mochiweb_skel.erl
Compiled src/mochiweb_socket_server.erl
Compiled src/mochiweb_echo.erl
Compiled src/mochiweb_request.erl
Compiled src/mochihex.erl
Compiled src/mochifmt.erl
Compiled src/mochiweb_html.erl
Compiled src/mochinum.erl
Compiled src/mochijson.erl
Compiled src/mochiweb.erl
Compiled src/mochiweb_util.erl
Compiled src/mochijson2.erl
==> webmachine (compile)
Compiled src/webmachine_resource.erl
Compiled src/wmtrace_resource.erl
Compiled src/webmachine_dispatcher.erl
Compiled src/webmachine_multipart.erl
Compiled src/webmachine_logger.erl
Compiled src/webmachine_util.erl
Compiled src/webmachine_router.erl
Compiled src/webmachine_error_handler.erl
Compiled src/webmachine_sup.erl
Compiled src/webmachine_app.erl
Compiled src/webmachine.erl
Compiled src/webmachine_deps.erl
Compiled src/webmachine_mochiweb.erl
Compiled src/webmachine_perf_logger.erl
Compiled src/webmachine_request.erl
Compiled src/webmachine_decision_core.erl
Compiled src/wrq.erl
==> mochiweb (compile)
Compiled src/mochifmt_std.erl
Compiled src/mochiweb_headers.erl
Compiled src/mochiweb_sup.erl
Compiled src/mochiweb_multipart.erl
Compiled src/mochiweb_cover.erl
Compiled src/reloader.erl
Compiled src/mochiweb_charref.erl
Compiled src/mochiweb_response.erl
Compiled src/mochiweb_http.erl
Compiled src/mochiweb_skel.erl
Compiled src/mochiweb_mime.erl
Compiled src/mochiweb_app.erl
Compiled src/mochifmt_records.erl
Compiled src/mochiweb_socket_server.erl
Compiled src/mochiweb_cookies.erl
Compiled src/mochiweb_html.erl
Compiled src/mochiweb_echo.erl
Compiled src/mochifmt.erl
Compiled src/mochihex.erl
Compiled src/mochiglobal.erl
Compiled src/mochinum.erl
Compiled src/mochiweb_request.erl
Compiled src/mochijson.erl
Compiled src/mochijson2.erl
Compiled src/mochiweb_util.erl
Compiled src/mochiweb.erl
==> riak_core (compile)
Compiled src/gen_nb_server.erl
Compiled src/gen_server2.erl
Compiled src/spiraltime.erl
Compiled src/riak_core_test_util.erl
Compiled src/bloom.erl
Compiled src/riak_core_gossip.erl
Compiled src/app_helper.erl
Compiled src/riak_core_sup.erl
Compiled src/riak_core_util.erl
Compiled src/riak_core_ring_manager.erl
Compiled src/vclock.erl
Compiled src/chash.erl
Compiled src/riak_core_app.erl
Compiled src/riak_core_web.erl
Compiled src/riak_core_ring_events.erl
Compiled src/riak_core_bucket.erl
Compiled src/merkerl.erl
Compiled src/riak_core_claim.erl
Compiled src/json_pp.erl
Compiled src/priority_queue.erl
Compiled src/riak_core_ring.erl
Compiled src/slide.erl
==> riakc (compile)
Compiling src/riakclient.proto
Compiled src/riakc_obj.erl
Compiled src/riakc_pb.erl
Compiled src/riakc_pb_socket.erl
==> ebloom (compile)
Compiled src/ebloom.erl
Compiling c_src/ebloom_nifs.cpp
c_src/ebloom_nifs.cpp:24: error: expected initializer before ‘*’ token
c_src/ebloom_nifs.cpp:63: error: invalid conversion from ‘ERL_NIF_TERM
 (*)(ErlNifEnv*, int, const ERL_NIF_TERM*)’ to ‘void*’
 c_src/ebloom_nifs.cpp:63: error: invalid conversion from ‘ERL_NIF_TERM
 (*)(ErlNifEnv*, int, const ERL_NIF_TERM*)’ to ‘void*’
 c_src/ebloom_nifs.cpp:63: error: invalid conversion from ‘ERL_NIF_TERM
 (*)(ErlNifEnv*, int, const ERL_NIF_TERM*)’ to ‘void*’
 c_src/ebloom_nifs.cpp:63: error: invalid conversion from ‘ERL_NIF_TERM
 (*)(ErlNifEnv*, int, const ERL_NIF_TERM*)’ to ‘void*’
 c_src/ebloom_nifs.cpp:63: error: invalid conversion from ‘ERL_NIF_TERM
 (*)(ErlNifEnv*, int, const ERL_NIF_TERM*)’ to ‘void*’
 c_src/ebloom_nifs.cpp:63: error: invalid conversion from ‘ERL_NIF_TERM
 (*)(ErlNifEnv*, int, const ERL_NIF_TERM*)’ to ‘void*’
 c_src/ebloom_nifs.cpp:63: error: invalid conversion from ‘ERL_NIF_TERM
 (*)(ErlNifEnv*, int, const ERL_NIF_TERM*)’ to ‘void*’
 c_src/ebloom_nifs.cpp:63: error: invalid conversion from ‘ERL_NIF_TERM
 (*)(ErlNifEnv*, int, const ERL_NIF_TERM*)’ to ‘void*’
 c_src/ebloom_nifs.cpp:63: error: invalid conversion from ‘ERL_NIF_TERM
 (*)(ErlNifEnv*, int, const ERL_NIF_TERM*)’ to ‘void*’
 c_src/ebloom_nifs.cpp:63: error: invalid conversion from ‘ERL_NIF_TERM
 (*)(ErlNifEnv*, int, const ERL_NIF_TERM*)’ to ‘void*’
 c_src/ebloom_nifs.cpp: In function ‘ERL_NIF_TERM
 new_filter(ErlNifEnv*, int, const ERL_NIF_TERM*)’:
 c_src/ebloom_nifs.cpp:74: error: ‘enif_get_long’ was not declared in
 this scope c_src/ebloom_nifs.cpp:75: error: ‘enif_get_double’ was not
 declared in this scope c_src/ebloom_nifs.cpp:78: error:
 ‘BLOOM_FILTER_RESOURCE’ was not declared in this scope
 c_src/ebloom_nifs.cpp:79: error: ‘enif_alloc_resource’ was not
 declared in this scope c_src/ebloom_nifs.cpp:83: error:
 ‘enif_make_resource’ was not declared in this scope
 c_src/ebloom_nifs.cpp:84: error: ‘enif_release_resource’ was not
 declared in this scope c_src/ebloom_nifs.cpp:85: error:
 ‘enif_make_tuple2’ was not declared in this scope
 c_src/ebloom_nifs.cpp: In function ‘ERL_NIF_TERM insert(ErlNifEnv*,
 int, const ERL_NIF_TERM*)’: c_src/ebloom_nifs.cpp:97: error:
 ‘BLOOM_FILTER_RESOURCE’ was not declared in this scope
 c_src/ebloom_nifs.cpp:97: error: ‘enif_get_resource’ was not declared
 in this scope c_src/ebloom_nifs.cpp: In function ‘ERL_NIF_TERM
 contains(ErlNifEnv*, int, const ERL_NIF_TERM*)’:
 c_src/ebloom_nifs.cpp:113: error: ‘BLOOM_FILTER_RESOURCE’ was not
 declared in this scope c_src/ebloom_nifs.cpp:113: error:
 ‘enif_get_resource’ was not declared in this scope
 c_src/ebloom_nifs.cpp: In function ‘ERL_NIF_TERM clear(ErlNifEnv*,
 int, const ERL_NIF_TERM*)’: c_src/ebloom_nifs.cpp:134: error:
 ‘BLOOM_FILTER_RESOURCE’ was not declared in this scope
 c_src/ebloom_nifs.cpp:134: error: ‘enif_get_resource’ was not declared
 in this scope c_src/ebloom_nifs.cpp: In function ‘ERL_NIF_TERM
 size(ErlNifEnv*, int, const ERL_NIF_TERM*)’:
 c_src/ebloom_nifs.cpp:148: error: ‘BLOOM_FILTER_RESOURCE’ was not
 declared in this scope c_src/ebloom_nifs.cpp:148: error:
 ‘enif_get_resource’ was not declared in this scope
 c_src/ebloom_nifs.cpp:151: error: ‘enif_make_long’ was not declared in
 this scope c_src/ebloom_nifs.cpp: In function ‘ERL_NIF_TERM
 elements(ErlNifEnv*, int, const ERL_NIF_TERM*)’:
 c_src/ebloom_nifs.cpp:162: error: ‘BLOOM_FILTER_RESOURCE’ was not
 declared in this scope c_src/ebloom_nifs.cpp:162: error:
 ‘enif_get_resource’ was not declared in this scope
 c_src/ebloom_nifs.cpp:165: error: ‘enif_make_long’ was not declared in
 this scope c_src/ebloom_nifs.cpp: In function ‘ERL_NIF_TERM
 effective_fpp(ErlNifEnv*, int, const ERL_NIF_TERM*)’:
 c_src/ebloom_nifs.cpp:176: error: ‘BLOOM_FILTER_RESOURCE’ was not
 declared in this scope c_src/ebloom_nifs.cpp:176: error:
 ‘enif_get_resource’ was not declared in this scope
 c_src/ebloom_nifs.cpp:179: error: ‘enif_make_double’ was not declared
 in this scope c_src/ebloom_nifs.cpp: In function ‘ERL_NIF_TERM
 filter_intersect(ErlNifEnv*, int, const ERL_NIF_TERM*)’:
 c_src/ebloom_nifs.cpp:191: error: ‘BLOOM_FILTER_RESOURCE’ was not
 declared in this scope c_src/ebloom_nifs.cpp:191: error:
 ‘enif_get_resource’ was not declared in this scope
 c_src/ebloom_nifs.cpp: In function ‘ERL_NIF_TERM
 filter_union(ErlNifEnv*, int, const ERL_NIF_TERM*)’:
 c_src/ebloom_nifs.cpp:207: error: ‘BLOOM_FILTER_RESOURCE’ was not
 declared in this scope c_src/ebloom_nifs.cpp:207: error:
 ‘enif_get_resource’ was not declared in this scope
 c_src/ebloom_nifs.cpp: In function ‘ERL_NIF_TERM
 filter_difference(ErlNifEnv*, int, const ERL_NIF_TERM*)’:
 c_src/ebloom_nifs.cpp:223: error: ‘BLOOM_FILTER_RESOURCE’ was not
 declared in this scope c_src/ebloom_nifs.cpp:223: error:
 ‘enif_get_resource’ was not declared in this scope
 c_src/ebloom_nifs.cpp: In function ‘int on_load(ErlNifEnv*, void**,
 ERL_NIF_TERM)’: c_src/ebloom_nifs.cpp:243: error:
 ‘ErlNifResourceFlags’ was not declared in this scope
 c_src/ebloom_nifs.cpp:243: error: expected `;' before ‘flags’
 c_src/ebloom_nifs.cpp:244: error: ‘BLOOM_FILTER_RESOURCE’ was not
 declared in this scope c_src/ebloom_nifs.cpp:246: error: ‘flags’ was
 not declared in this scope c_src/ebloom_nifs.cpp:247: error:
 ‘enif_open_resource_type’ was not declared in this scope ERROR: $CXX
 -c $CXXFLAGS $DRV_CFLAGS c_src/ebloom_nifs.cpp -o c_src/ebloom_nifs.o
 failed with error: 1 make: *** [compile] Error 1






More information about the riak-users mailing list