basho / riak-erlang-client

The Riak client for Erlang.
Apache License 2.0
311 stars 188 forks source link

Compile error in branch develop2.2 #393

Open LintianShi opened 4 years ago

LintianShi commented 4 years ago

I am trying to compile riak-2.2.3 on Ubuntu 16.04, but when compiling riakc there are some errors. I am not familiar with erlang. Can anybody tell me what wrong it happened? It uses *{riakc, ".", {git, "git://github.com/basho/riak-erlang-client", {branch, "develop-2.2"}}}**

==> riakc (compile) Compiling /home/slt/riak-2.2.3/deps/riakc/src/riakc_pb_socket.erl failed: /home/slt/riak-2.2.3/deps/riakc/src/riakc_pb_socket.erl:1587: field node_confirms undefined in record rpbputreq /home/slt/riak-2.2.3/deps/riakc/src/riakc_pb_socket.erl:1649: field node_confirms undefined in record rpbcounterupdatereq /home/slt/riak-2.2.3/deps/riakc/src/riakc_pb_socket.erl:1586: variable 'NCOpt' is unused /home/slt/riak-2.2.3/deps/riakc/src/riakc_pb_socket.erl:1648: variable 'NodeConfirms' is unused ERROR: compile failed while processing /home/slt/riak-2.2.3/deps/riakc: rebar_abort

1585: put_options([{node_confirms, NodeConfirms} | Rest], Req) -> 1586: NCOpt = riak_pb_kv_codec:encode_quorum(NodeConfirms), 1587 put_options(Rest, Req#rpbputreq{node_confirms = NCOpt});

1548: counter_incr_options([{node_confirms, NodeConfirms} | Rest], Req) -> 1549: counter_incr_options(Rest, Req#rpbcounterupdatereq{node_confirms=riak_pb_kv_codec:encode_quorum(NodeConfirms)});

LintianShi commented 4 years ago

my erlang version is R16B02_basho10