thekvs / erlang-murmurhash Goto Github PK
View Code? Open in Web Editor NEWMurmur hash functions implemented in Erlang NIFs.
License: MIT License
Murmur hash functions implemented in Erlang NIFs.
License: MIT License
erlang-murmurhash (master) $ rebar compile
==> erlang-murmurhash (compile)
Compiled src/erlang_murmurhash.erl
Compiling c_src/MurmurHash2.cpp
Compiling c_src/MurmurHash3.cpp
Compiling c_src/erlang_murmurhash_nif.cpp
c_src/erlang_murmurhash_nif.cpp:119:10: error: no matching function for call to 'enif_get_ulong'
if (!enif_get_uint64(env, argv[1], &seed)) {
^~~~~~~~~~~~~~~
/usr/local/lib/erlang/erts-6.1/include/erl_nif_api_funcs.h:542:27: note: expanded from macro 'enif_get_uint64'
# define enif_get_uint64 enif_get_ulong
^~~~~~~~~~~~~~
/usr/local/lib/erlang/erts-6.1/include/erl_nif_api_funcs.h:43:27: note: candidate function not viable: no known conversion from 'uint64_t *' (aka 'unsigned long long *') to 'unsigned long *' for 3rd argument
ERL_NIF_API_FUNC_DECL(int,enif_get_ulong,(ErlNifEnv*, ERL_NIF_TERM term, unsigned long* ip));
^
/usr/local/lib/erlang/erts-6.1/include/erl_nif.h:223:71: note: expanded from macro 'ERL_NIF_API_FUNC_DECL'
# define ERL_NIF_API_FUNC_DECL(RET_TYPE, NAME, ARGS) extern RET_TYPE NAME ARGS
^
c_src/erlang_murmurhash_nif.cpp:154:10: error: no matching function for call to 'enif_get_ulong'
if (!enif_get_uint64(env, argv[1], &seed)) {
^~~~~~~~~~~~~~~
/usr/local/lib/erlang/erts-6.1/include/erl_nif_api_funcs.h:542:27: note: expanded from macro 'enif_get_uint64'
# define enif_get_uint64 enif_get_ulong
^~~~~~~~~~~~~~
/usr/local/lib/erlang/erts-6.1/include/erl_nif_api_funcs.h:43:27: note: candidate function not viable: no known conversion from 'uint64_t *' (aka 'unsigned long long *') to 'unsigned long *' for 3rd argument
ERL_NIF_API_FUNC_DECL(int,enif_get_ulong,(ErlNifEnv*, ERL_NIF_TERM term, unsigned long* ip));
^
/usr/local/lib/erlang/erts-6.1/include/erl_nif.h:223:71: note: expanded from macro 'ERL_NIF_API_FUNC_DECL'
# define ERL_NIF_API_FUNC_DECL(RET_TYPE, NAME, ARGS) extern RET_TYPE NAME ARGS
^
2 errors generated.
ERROR: compile failed while processing /Users/lpgauth/Git/erlang-murmurhash: rebar_abort
version information:
Erlang:
erl +V
Erlang (SMP,ASYNC_THREADS,HIPE) (BEAM) emulator version 6.1
Clang:
gcc -v
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
Target: x86_64-apple-darwin13.3.0
Thread model: posix
Expose MurmurHash3_x64_128 in the NIF interface.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.