Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot create instance #1

Closed
an-it-a opened this issue Nov 29, 2012 · 11 comments
Closed

cannot create instance #1

an-it-a opened this issue Nov 29, 2012 · 11 comments

Comments

@an-it-a
Copy link

an-it-a commented Nov 29, 2012

Hi,

I tried to compile your code with
"./rebar compile"

but an error occured:
==> cberl-master (compile)
Dependency not available: jiffy- ({git,"https://github.com/davisp/jiffy.git",
{branch,master}})

I've tried deleting and getting the deps using rebar, still failed...

How can I compile your code?

Thanks a lot!


Sorry it is my problem, but now I got massive amount of compilation error in c_src/cberl_nif.c
And when I try running, an error occurred:

** exception error: undefined function cberl_nif:new/4
in function cberl:new/5 (src/cberl.erl, line 47)

=ERROR REPORT==== 29-Nov-2012::17:51:27 ===
The on_load function for module cberl_nif returned {error,
{load_failed,
"Failed to load NIF library: './cberl-master/priv/cberl_drv.so: cannot open shared object file: No such file or directory'"}}

I'm pulling the master branch, is there any fix?

@an-it-a an-it-a closed this as completed Nov 29, 2012
@an-it-a an-it-a reopened this Nov 29, 2012
@an-it-a
Copy link
Author

an-it-a commented Dec 14, 2012

I got this in get-deps:

checking for C compiler default output file name...
configure: error: in /tmp/cberl-master/deps/libcouchbase': configure: error: C compiler cannot create executables Seeconfig.log' for more details.
make: *** [deps] Error 77
make: Leaving directory `/tmp/cberl-master/c_src'
ERROR: Command ['get-deps'] failed!

@xcrdev
Copy link

xcrdev commented Dec 14, 2012

I got the same error output on Ubuntu 12.04 and I was able to fix it but don't remember exactly how.
I think it was something I installed. This is the list of installs I made to get cberl to compile.
sudo apt-get install automake
sudo apt-get install libtool
sudo apt-get install build-essential
sudo apt-get install binutils-gold

I hope that helps. When you figure it out let us know what the cause was because the readme will need updating so someone doesn't run into this a third time.

@soup-in-boots
Copy link
Contributor

littlewitchanita - Do you have glibc installed? Google indicates that's a likely cause. Other possible causes are:

  • Missing C dev libraries
  • Old version of glibc

It does not appear to be an error with libcouchbase anyhow.

What is the system you're trying to build on? I'll create a VM, attempt to compile, and identify what packages are necessary.

@an-it-a
Copy link
Author

an-it-a commented Dec 15, 2012

thx xcrdev and fauxsoup,

I've tried installing and updating my libraries, but didn't help.

fauxsoup: I'm using an amazon VM, which should be a CentOS.

Thanks a lot~

@aliyakamercan
Copy link
Contributor

Use https://github.com/aliyakamercan/cberl instead and install libcouchbase separetely. On amazon linux you can install it like this;

sudo wget -O/etc/yum.repos.d/couchbase.repo http://packages.couchbase.com/rpm/couchbase-centos62-x86_64.repo
sudo yum check-update
sudo yum install --enablerepo=epel libcouchbase2 libcouchbase-devel

@an-it-a
Copy link
Author

an-it-a commented Dec 15, 2012

I can go through get-deps now but got many compile errors in the c_src folder...

c_src/callbacks.h:11:5: error: unknown type name ‘libcouchbase_error_t’
c_src/callbacks.h:25:28: error: unknown type name ‘libcouchbase_t’
c_src/callbacks.h:26:28: error: unknown type name ‘libcouchbase_error_t’
c_src/callbacks.h:33:26: error: unknown type name ‘libcouchbase_t’
c_src/callbacks.h:35:26: error: unknown type name ‘libcouchbase_error_t’
c_src/callbacks.h:37:26: error: unknown type name ‘libcouchbase_size_t’
c_src/callbacks.h:39:26: error: unknown type name ‘libcouchbase_size_t’
c_src/callbacks.h:40:26: error: unknown type name ‘libcouchbase_uint32_t’
c_src/callbacks.h:41:26: error: unknown type name ‘libcouchbase_cas_t’
c_src/callbacks.h:61:33: error: unknown type name ‘libcouchbase_t’
c_src/callbacks.h:63:33: error: unknown type name ‘libcouchbase_error_t’
c_src/callbacks.h:65:33: error: unknown type name ‘libcouchbase_size_t’
c_src/callbacks.h:66:33: error: unknown type name ‘libcouchbase_uint64_t’
c_src/callbacks.h:67:33: error: unknown type name ‘libcouchbase_cas_t’
c_src/callbacks.h:82:29: error: unknown type name ‘libcouchbase_t’
c_src/callbacks.h:84:30: error: unknown type name ‘libcouchbase_error_t’
c_src/callbacks.h:93:28: error: unknown type name ‘libcouchbase_t’
c_src/callbacks.h:95:28: error: unknown type name ‘libcouchbase_error_t’
c_src/callbacks.h:97:28: error: unknown type name ‘libcouchbase_size_t’
c_src/callbacks.h:105:30: error: unknown type name ‘libcouchbase_t’
c_src/callbacks.h:107:30: error: unknown type name ‘libcouchbase_storage_t’
c_src/callbacks.h:108:30: error: unknown type name ‘libcouchbase_error_t’
c_src/callbacks.h:120:29: error: unknown type name ‘libcouchbase_t’
c_src/callbacks.h:122:29: error: unknown type name ‘libcouchbase_error_t’
c_src/callbacks.h:124:29: error: unknown type name ‘libcouchbase_size_t’
c_src/cberl_nif.c:12:5: error: unknown type name ‘libcouchbase_t’
c_src/cberl_nif.c: In function ‘cberl_nif_new’:
c_src/cberl_nif.c:76:5: warning: implicit declaration of function ‘libcouchbase_create’ [-Wimplicit-function-declaration]
c_src/cberl_nif.c:82:26: warning: comparison between pointer and integer [enabled by default]
c_src/cberl_nif.c:87:5: warning: implicit declaration of function ‘libcouchbase_set_error_callback’ [-Wimplicit-function-declaration]
c_src/cberl_nif.c:87:61: error: ‘error_callback’ undeclared (first use in this function)
c_src/cberl_nif.c:87:61: note: each undeclared identifier is reported only once for each function it appears in
c_src/cberl_nif.c:88:5: warning: implicit declaration of function ‘libcouchbase_set_get_callback’ [-Wimplicit-function-declaration]
c_src/cberl_nif.c:88:59: error: ‘get_callback’ undeclared (first use in this function)
c_src/cberl_nif.c:89:5: warning: implicit declaration of function ‘libcouchbase_set_storage_callback’ [-Wimplicit-function-declaration]
c_src/cberl_nif.c:89:63: error: ‘storage_callback’ undeclared (first use in this function)
c_src/cberl_nif.c:90:5: warning: implicit declaration of function ‘libcouchbase_set_unlock_callback’ [-Wimplicit-function-declaration]
c_src/cberl_nif.c:90:62: error: ‘unlock_callback’ undeclared (first use in this function)
c_src/cberl_nif.c:91:5: warning: implicit declaration of function ‘libcouchbase_set_touch_callback’ [-Wimplicit-function-declaration]
c_src/cberl_nif.c:91:61: error: ‘touch_callback’ undeclared (first use in this function)
c_src/cberl_nif.c:92:5: warning: implicit declaration of function ‘libcouchbase_set_arithmetic_callback’ [-Wimplicit-function-declaration]
c_src/cberl_nif.c:92:66: error: ‘arithmetic_callback’ undeclared (first use in this function)
c_src/cberl_nif.c:93:5: warning: implicit declaration of function ‘libcouchbase_set_remove_callback’ [-Wimplicit-function-declaration]
c_src/cberl_nif.c:93:62: error: ‘remove_callback’ undeclared (first use in this function)
c_src/cberl_nif.c:95:5: warning: implicit declaration of function ‘libcouchbase_connect’ [-Wimplicit-function-declaration]
c_src/cberl_nif.c:95:51: error: ‘LIBCOUCHBASE_SUCCESS’ undeclared (first use in this function)
c_src/cberl_nif.c:99:5: warning: implicit declaration of function ‘libcouchbase_wait’ [-Wimplicit-function-declaration]
c_src/cberl_nif.c: In function ‘cberl_nif_store’:
c_src/cberl_nif.c:112:5: error: unknown type name ‘libcouchbase_size_t’
c_src/cberl_nif.c:113:5: error: unknown type name ‘libcouchbase_uint32_t’
c_src/cberl_nif.c:115:5: error: unknown type name ‘libcouchbase_cas_t’
c_src/cberl_nif.c:118:5: error: unknown type name ‘libcouchbase_error_t’
c_src/cberl_nif.c:132:5: warning: pointer targets in passing argument 3 of ‘enif_get_uint’ differ in signedness [-Wpointer-sign]
/vol1/erlang/lib/erlang/erts-5.9.1/include/erl_nif_api_funcs.h:102:1: note: expected ‘unsigned int *’ but argument is of type ‘int *’
c_src/cberl_nif.c:137:5: warning: implicit declaration of function ‘libcouchbase_store’ [-Wimplicit-function-declaration]
c_src/cberl_nif.c:151:16: error: ‘LIBCOUCHBASE_SUCCESS’ undeclared (first use in this function)
c_src/cberl_nif.c: In function ‘cberl_nif_mget’:
c_src/cberl_nif.c:172:5: error: unknown type name ‘libcouchbase_error_t’
c_src/cberl_nif.c:202:5: warning: implicit declaration of function ‘libcouchbase_mget’ [-Wimplicit-function-declaration]
c_src/cberl_nif.c:207:49: error: ‘libcouchbase_time_t’ undeclared (first use in this function)
c_src/cberl_nif.c:207:69: error: expected expression before ‘)’ token
c_src/cberl_nif.c:211:16: error: ‘LIBCOUCHBASE_SUCCESS’ undeclared (first use in this function)
c_src/cberl_nif.c: In function ‘cberl_nif_getl’:
c_src/cberl_nif.c:260:5: error: unknown type name ‘libcouchbase_error_t’
c_src/cberl_nif.c:270:5: warning: implicit declaration of function ‘libcouchbase_getl’ [-Wimplicit-function-declaration]
c_src/cberl_nif.c:274:49: error: ‘libcouchbase_time_t’ undeclared (first use in this function)
c_src/cberl_nif.c:274:69: error: expected expression before ‘)’ token
c_src/cberl_nif.c:276:16: error: ‘LIBCOUCHBASE_SUCCESS’ undeclared (first use in this function)
c_src/cberl_nif.c: In function ‘cberl_nif_unlock’:
c_src/cberl_nif.c:298:5: error: unknown type name ‘libcouchbase_error_t’
c_src/cberl_nif.c:308:5: warning: implicit declaration of function ‘libcouchbase_unlock’ [-Wimplicit-function-declaration]
c_src/cberl_nif.c:315:16: error: ‘LIBCOUCHBASE_SUCCESS’ undeclared (first use in this function)
c_src/cberl_nif.c: In function ‘cberl_nif_mtouch’:
c_src/cberl_nif.c:336:5: error: unknown type name ‘libcouchbase_error_t’
c_src/cberl_nif.c:351:5: warning: implicit declaration of function ‘libcouchbase_mtouch’ [-Wimplicit-function-declaration]
c_src/cberl_nif.c:356:31: error: ‘libcouchbase_time_t’ undeclared (first use in this function)
c_src/cberl_nif.c:356:51: error: expected expression before ‘)’ token
c_src/cberl_nif.c:358:16: error: ‘LIBCOUCHBASE_SUCCESS’ undeclared (first use in this function)
c_src/cberl_nif.c: In function ‘cberl_nif_arithmetic’:
c_src/cberl_nif.c:380:5: error: unknown type name ‘libcouchbase_error_t’
c_src/cberl_nif.c:392:5: warning: implicit declaration of function ‘libcouchbase_arithmetic’ [-Wimplicit-function-declaration]
c_src/cberl_nif.c:401:16: error: ‘LIBCOUCHBASE_SUCCESS’ undeclared (first use in this function)
c_src/cberl_nif.c: In function ‘cberl_nif_remove’:
c_src/cberl_nif.c:420:5: error: unknown type name ‘libcouchbase_error_t’
c_src/cberl_nif.c:430:5: warning: implicit declaration of function ‘libcouchbase_remove’ [-Wimplicit-function-declaration]
c_src/cberl_nif.c:436:16: error: ‘LIBCOUCHBASE_SUCCESS’ undeclared (first use in this function)
c_src/cberl_nif.c: In function ‘cberl_nif_destroy’:
c_src/cberl_nif.c:452:5: warning: implicit declaration of function ‘libcouchbase_destroy’ [-Wimplicit-function-declaration]
c_src/cberl_nif.c: In function ‘return_lcb_error’:
c_src/cberl_nif.c:496:14: error: ‘LIBCOUCHBASE_SUCCESS’ undeclared (first use in this function)
c_src/cberl_nif.c:498:14: error: ‘LIBCOUCHBASE_AUTH_CONTINUE’ undeclared (first use in this function)
c_src/cberl_nif.c:500:14: error: ‘LIBCOUCHBASE_AUTH_ERROR’ undeclared (first use in this function)
c_src/cberl_nif.c:502:14: error: ‘LIBCOUCHBASE_DELTA_BADVAL’ undeclared (first use in this function)
c_src/cberl_nif.c:504:14: error: ‘LIBCOUCHBASE_E2BIG’ undeclared (first use in this function)
c_src/cberl_nif.c:506:14: error: ‘LIBCOUCHBASE_EBUSY’ undeclared (first use in this function)
c_src/cberl_nif.c:508:14: error: ‘LIBCOUCHBASE_EINTERNAL’ undeclared (first use in this function)
c_src/cberl_nif.c:510:14: error: ‘LIBCOUCHBASE_EINVAL’ undeclared (first use in this function)
c_src/cberl_nif.c:512:14: error: ‘LIBCOUCHBASE_ENOMEM’ undeclared (first use in this function)
c_src/cberl_nif.c:514:14: error: ‘LIBCOUCHBASE_ERANGE’ undeclared (first use in this function)
c_src/cberl_nif.c:516:14: error: ‘LIBCOUCHBASE_ERROR’ undeclared (first use in this function)
c_src/cberl_nif.c:518:14: error: ‘LIBCOUCHBASE_ETMPFAIL’ undeclared (first use in this function)
c_src/cberl_nif.c:520:14: error: ‘LIBCOUCHBASE_KEY_EEXISTS’ undeclared (first use in this function)
c_src/cberl_nif.c:522:14: error: ‘LIBCOUCHBASE_KEY_ENOENT’ undeclared (first use in this function)
c_src/cberl_nif.c:524:14: error: ‘LIBCOUCHBASE_LIBEVENT_ERROR’ undeclared (first use in this function)
c_src/cberl_nif.c:526:14: error: ‘LIBCOUCHBASE_NETWORK_ERROR’ undeclared (first use in this function)
c_src/cberl_nif.c:528:14: error: ‘LIBCOUCHBASE_NOT_MY_VBUCKET’ undeclared (first use in this function)
c_src/cberl_nif.c:530:14: error: ‘LIBCOUCHBASE_NOT_STORED’ undeclared (first use in this function)
c_src/cberl_nif.c:532:14: error: ‘LIBCOUCHBASE_NOT_SUPPORTED’ undeclared (first use in this function)
c_src/cberl_nif.c:534:14: error: ‘LIBCOUCHBASE_UNKNOWN_COMMAND’ undeclared (first use in this function)
c_src/cberl_nif.c:536:14: error: ‘LIBCOUCHBASE_UNKNOWN_HOST’ undeclared (first use in this function)
c_src/cberl_nif.c:538:14: error: ‘LIBCOUCHBASE_PROTOCOL_ERROR’ undeclared (first use in this function)
c_src/cberl_nif.c:540:14: error: ‘LIBCOUCHBASE_ETIMEDOUT’ undeclared (first use in this function)
c_src/cberl_nif.c:542:14: error: ‘LIBCOUCHBASE_CONNECT_ERROR’ undeclared (first use in this function)
c_src/cberl_nif.c:544:14: error: ‘LIBCOUCHBASE_BUCKET_ENOENT’ undeclared (first use in this function)
c_src/cberl_nif.c:546:14: error: ‘LIBCOUCHBASE_CLIENT_ENOMEM’ undeclared (first use in this function)
ERROR: cc -c -I/usr/local/include/libcouchbase -g -Wall -fPIC -I/vol1/erlang/lib/erlang/lib/erl_interface-3.7.7/include -I/vol1/erlang/lib/erlang/erts-5.9.1/include c_src/cberl_nif.c -o c_src/cberl_nif.o failed with error: 1 and output:
In file included from c_src/cberl_nif.c:2:0:
c_src/callbacks.h:11:5: error: unknown type name ‘libcouchbase_error_t’
c_src/callbacks.h:25:28: error: unknown type name ‘libcouchbase_t’
c_src/callbacks.h:26:28: error: unknown type name ‘libcouchbase_error_t’
c_src/callbacks.h:33:26: error: unknown type name ‘libcouchbase_t’
c_src/callbacks.h:35:26: error: unknown type name ‘libcouchbase_error_t’
c_src/callbacks.h:37:26: error: unknown type name ‘libcouchbase_size_t’
c_src/callbacks.h:39:26: error: unknown type name ‘libcouchbase_size_t’
c_src/callbacks.h:40:26: error: unknown type name ‘libcouchbase_uint32_t’
c_src/callbacks.h:41:26: error: unknown type name ‘libcouchbase_cas_t’
c_src/callbacks.h:61:33: error: unknown type name ‘libcouchbase_t’
c_src/callbacks.h:63:33: error: unknown type name ‘libcouchbase_error_t’
c_src/callbacks.h:65:33: error: unknown type name ‘libcouchbase_size_t’
c_src/callbacks.h:66:33: error: unknown type name ‘libcouchbase_uint64_t’
c_src/callbacks.h:67:33: error: unknown type name ‘libcouchbase_cas_t’
c_src/callbacks.h:82:29: error: unknown type name ‘libcouchbase_t’
c_src/callbacks.h:84:30: error: unknown type name ‘libcouchbase_error_t’
c_src/callbacks.h:93:28: error: unknown type name ‘libcouchbase_t’
c_src/callbacks.h:95:28: error: unknown type name ‘libcouchbase_error_t’
c_src/callbacks.h:97:28: error: unknown type name ‘libcouchbase_size_t’
c_src/callbacks.h:105:30: error: unknown type name ‘libcouchbase_t’
c_src/callbacks.h:107:30: error: unknown type name ‘libcouchbase_storage_t’
c_src/callbacks.h:108:30: error: unknown type name ‘libcouchbase_error_t’
c_src/callbacks.h:120:29: error: unknown type name ‘libcouchbase_t’
c_src/callbacks.h:122:29: error: unknown type name ‘libcouchbase_error_t’
c_src/callbacks.h:124:29: error: unknown type name ‘libcouchbase_size_t’
c_src/cberl_nif.c:12:5: error: unknown type name ‘libcouchbase_t’
c_src/cberl_nif.c: In function ‘cberl_nif_new’:
c_src/cberl_nif.c:76:5: warning: implicit declaration of function ‘libcouchbase_create’ [-Wimplicit-function-declaration]
c_src/cberl_nif.c:82:26: warning: comparison between pointer and integer [enabled by default]
c_src/cberl_nif.c:87:5: warning: implicit declaration of function ‘libcouchbase_set_error_callback’ [-Wimplicit-function-declaration]
c_src/cberl_nif.c:87:61: error: ‘error_callback’ undeclared (first use in this function)
c_src/cberl_nif.c:87:61: note: each undeclared identifier is reported only once for each function it appears in
c_src/cberl_nif.c:88:5: warning: implicit declaration of function ‘libcouchbase_set_get_callback’ [-Wimplicit-function-declaration]
c_src/cberl_nif.c:88:59: error: ‘get_callback’ undeclared (first use in this function)
c_src/cberl_nif.c:89:5: warning: implicit declaration of function ‘libcouchbase_set_storage_callback’ [-Wimplicit-function-declaration]
c_src/cberl_nif.c:89:63: error: ‘storage_callback’ undeclared (first use in this function)
c_src/cberl_nif.c:90:5: warning: implicit declaration of function ‘libcouchbase_set_unlock_callback’ [-Wimplicit-function-declaration]
c_src/cberl_nif.c:90:62: error: ‘unlock_callback’ undeclared (first use in this function)
c_src/cberl_nif.c:91:5: warning: implicit declaration of function ‘libcouchbase_set_touch_callback’ [-Wimplicit-function-declaration]
c_src/cberl_nif.c:91:61: error: ‘touch_callback’ undeclared (first use in this function)
c_src/cberl_nif.c:92:5: warning: implicit declaration of function ‘libcouchbase_set_arithmetic_callback’ [-Wimplicit-function-declaration]
c_src/cberl_nif.c:92:66: error: ‘arithmetic_callback’ undeclared (first use in this function)
c_src/cberl_nif.c:93:5: warning: implicit declaration of function ‘libcouchbase_set_remove_callback’ [-Wimplicit-function-declaration]
c_src/cberl_nif.c:93:62: error: ‘remove_callback’ undeclared (first use in this function)
c_src/cberl_nif.c:95:5: warning: implicit declaration of function ‘libcouchbase_connect’ [-Wimplicit-function-declaration]
c_src/cberl_nif.c:95:51: error: ‘LIBCOUCHBASE_SUCCESS’ undeclared (first use in this function)
c_src/cberl_nif.c:99:5: warning: implicit declaration of function ‘libcouchbase_wait’ [-Wimplicit-function-declaration]
c_src/cberl_nif.c: In function ‘cberl_nif_store’:
c_src/cberl_nif.c:112:5: error: unknown type name ‘libcouchbase_size_t’
c_src/cberl_nif.c:113:5: error: unknown type name ‘libcouchbase_uint32_t’
c_src/cberl_nif.c:115:5: error: unknown type name ‘libcouchbase_cas_t’
c_src/cberl_nif.c:118:5: error: unknown type name ‘libcouchbase_error_t’
c_src/cberl_nif.c:132:5: warning: pointer targets in passing argument 3 of ‘enif_get_uint’ differ in signedness [-Wpointer-sign]
/vol1/erlang/lib/erlang/erts-5.9.1/include/erl_nif_api_funcs.h:102:1: note: expected ‘unsigned int *’ but argument is of type ‘int *’
c_src/cberl_nif.c:137:5: warning: implicit declaration of function ‘libcouchbase_store’ [-Wimplicit-function-declaration]
c_src/cberl_nif.c:151:16: error: ‘LIBCOUCHBASE_SUCCESS’ undeclared (first use in this function)
c_src/cberl_nif.c: In function ‘cberl_nif_mget’:
c_src/cberl_nif.c:172:5: error: unknown type name ‘libcouchbase_error_t’
c_src/cberl_nif.c:202:5: warning: implicit declaration of function ‘libcouchbase_mget’ [-Wimplicit-function-declaration]
c_src/cberl_nif.c:207:49: error: ‘libcouchbase_time_t’ undeclared (first use in this function)
c_src/cberl_nif.c:207:69: error: expected expression before ‘)’ token
c_src/cberl_nif.c:211:16: error: ‘LIBCOUCHBASE_SUCCESS’ undeclared (first use in this function)
c_src/cberl_nif.c: In function ‘cberl_nif_getl’:
c_src/cberl_nif.c:260:5: error: unknown type name ‘libcouchbase_error_t’
c_src/cberl_nif.c:270:5: warning: implicit declaration of function ‘libcouchbase_getl’ [-Wimplicit-function-declaration]
c_src/cberl_nif.c:274:49: error: ‘libcouchbase_time_t’ undeclared (first use in this function)
c_src/cberl_nif.c:274:69: error: expected expression before ‘)’ token
c_src/cberl_nif.c:276:16: error: ‘LIBCOUCHBASE_SUCCESS’ undeclared (first use in this function)
c_src/cberl_nif.c: In function ‘cberl_nif_unlock’:
c_src/cberl_nif.c:298:5: error: unknown type name ‘libcouchbase_error_t’
c_src/cberl_nif.c:308:5: warning: implicit declaration of function ‘libcouchbase_unlock’ [-Wimplicit-function-declaration]
c_src/cberl_nif.c:315:16: error: ‘LIBCOUCHBASE_SUCCESS’ undeclared (first use in this function)
c_src/cberl_nif.c: In function ‘cberl_nif_mtouch’:
c_src/cberl_nif.c:336:5: error: unknown type name ‘libcouchbase_error_t’
c_src/cberl_nif.c:351:5: warning: implicit declaration of function ‘libcouchbase_mtouch’ [-Wimplicit-function-declaration]
c_src/cberl_nif.c:356:31: error: ‘libcouchbase_time_t’ undeclared (first use in this function)
c_src/cberl_nif.c:356:51: error: expected expression before ‘)’ token
c_src/cberl_nif.c:358:16: error: ‘LIBCOUCHBASE_SUCCESS’ undeclared (first use in this function)
c_src/cberl_nif.c: In function ‘cberl_nif_arithmetic’:
c_src/cberl_nif.c:380:5: error: unknown type name ‘libcouchbase_error_t’
c_src/cberl_nif.c:392:5: warning: implicit declaration of function ‘libcouchbase_arithmetic’ [-Wimplicit-function-declaration]
c_src/cberl_nif.c:401:16: error: ‘LIBCOUCHBASE_SUCCESS’ undeclared (first use in this function)
c_src/cberl_nif.c: In function ‘cberl_nif_remove’:
c_src/cberl_nif.c:420:5: error: unknown type name ‘libcouchbase_error_t’
c_src/cberl_nif.c:430:5: warning: implicit declaration of function ‘libcouchbase_remove’ [-Wimplicit-function-declaration]
c_src/cberl_nif.c:436:16: error: ‘LIBCOUCHBASE_SUCCESS’ undeclared (first use in this function)
c_src/cberl_nif.c: In function ‘cberl_nif_destroy’:
c_src/cberl_nif.c:452:5: warning: implicit declaration of function ‘libcouchbase_destroy’ [-Wimplicit-function-declaration]
c_src/cberl_nif.c: In function ‘return_lcb_error’:
c_src/cberl_nif.c:496:14: error: ‘LIBCOUCHBASE_SUCCESS’ undeclared (first use in this function)
c_src/cberl_nif.c:498:14: error: ‘LIBCOUCHBASE_AUTH_CONTINUE’ undeclared (first use in this function)
c_src/cberl_nif.c:500:14: error: ‘LIBCOUCHBASE_AUTH_ERROR’ undeclared (first use in this function)
c_src/cberl_nif.c:502:14: error: ‘LIBCOUCHBASE_DELTA_BADVAL’ undeclared (first use in this function)
c_src/cberl_nif.c:504:14: error: ‘LIBCOUCHBASE_E2BIG’ undeclared (first use in this function)
c_src/cberl_nif.c:506:14: error: ‘LIBCOUCHBASE_EBUSY’ undeclared (first use in this function)
c_src/cberl_nif.c:508:14: error: ‘LIBCOUCHBASE_EINTERNAL’ undeclared (first use in this function)
c_src/cberl_nif.c:510:14: error: ‘LIBCOUCHBASE_EINVAL’ undeclared (first use in this function)
c_src/cberl_nif.c:512:14: error: ‘LIBCOUCHBASE_ENOMEM’ undeclared (first use in this function)
c_src/cberl_nif.c:514:14: error: ‘LIBCOUCHBASE_ERANGE’ undeclared (first use in this function)
c_src/cberl_nif.c:516:14: error: ‘LIBCOUCHBASE_ERROR’ undeclared (first use in this function)
c_src/cberl_nif.c:518:14: error: ‘LIBCOUCHBASE_ETMPFAIL’ undeclared (first use in this function)
c_src/cberl_nif.c:520:14: error: ‘LIBCOUCHBASE_KEY_EEXISTS’ undeclared (first use in this function)
c_src/cberl_nif.c:522:14: error: ‘LIBCOUCHBASE_KEY_ENOENT’ undeclared (first use in this function)
c_src/cberl_nif.c:524:14: error: ‘LIBCOUCHBASE_LIBEVENT_ERROR’ undeclared (first use in this function)
c_src/cberl_nif.c:526:14: error: ‘LIBCOUCHBASE_NETWORK_ERROR’ undeclared (first use in this function)
c_src/cberl_nif.c:528:14: error: ‘LIBCOUCHBASE_NOT_MY_VBUCKET’ undeclared (first use in this function)
c_src/cberl_nif.c:530:14: error: ‘LIBCOUCHBASE_NOT_STORED’ undeclared (first use in this function)
c_src/cberl_nif.c:532:14: error: ‘LIBCOUCHBASE_NOT_SUPPORTED’ undeclared (first use in this function)
c_src/cberl_nif.c:534:14: error: ‘LIBCOUCHBASE_UNKNOWN_COMMAND’ undeclared (first use in this function)
c_src/cberl_nif.c:536:14: error: ‘LIBCOUCHBASE_UNKNOWN_HOST’ undeclared (first use in this function)
c_src/cberl_nif.c:538:14: error: ‘LIBCOUCHBASE_PROTOCOL_ERROR’ undeclared (first use in this function)
c_src/cberl_nif.c:540:14: error: ‘LIBCOUCHBASE_ETIMEDOUT’ undeclared (first use in this function)
c_src/cberl_nif.c:542:14: error: ‘LIBCOUCHBASE_CONNECT_ERROR’ undeclared (first use in this function)
c_src/cberl_nif.c:544:14: error: ‘LIBCOUCHBASE_BUCKET_ENOENT’ undeclared (first use in this function)
c_src/cberl_nif.c:546:14: error: ‘LIBCOUCHBASE_CLIENT_ENOMEM’ undeclared (first use in this function)

@xcrdev
Copy link

xcrdev commented Dec 15, 2012

Did you grab cberl from https://github.com/aliyakamercan/cberl ? In that version several types were renamed to compile with the latest version of libcouchbase. For example libcouchbase_error_t is now lcb_error_t.

@an-it-a
Copy link
Author

an-it-a commented Dec 17, 2012

this time i got this in get-deps....

==> cberl-master (get-deps)
Pulling jsx from {git,"[email protected]:talentdeficit/jsx.git",{branch,master}}
Cloning into jsx...
Host key verification failed.
fatal: The remote end hung up unexpectedly
ERROR: git clone -n [email protected]:talentdeficit/jsx.git jsx failed with error: 128 and output:
Cloning into jsx...
Host key verification failed.
fatal: The remote end hung up unexpectedly

ERROR: 'get-deps' failed while processing /tmp/cberl-master: rebar_abort

@aliyakamercan
Copy link
Contributor

try this ==> https://help.github.com/articles/generating-ssh-keys

https://github.com/aliyakamercan/cberl builds succesfully without any problems use that one and find answers to your generic questions on google please.

@soup-in-boots
Copy link
Contributor

Ali's solution works, but the dependencies should probably be switched to read-only http URLs instead of SSH. That will prevent people from having the same problem in the future.

@an-it-a
Copy link
Author

an-it-a commented Dec 19, 2012

Many thanks to both of you.

Yes, it builds successfully.

Sorry for being annoying.

wcummings added a commit that referenced this issue Sep 9, 2013
fixed: include/cberl.hrl:7: opaque type handle() is not exported
soup-in-boots pushed a commit that referenced this issue Mar 28, 2014
pulling upstream changes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants