Open
Description
I'm on OSX Yosemite and I can't build the memcached backend.
Here are the steps I'm executing:
brew install libmemcached
brew install libgit2
git clone https://github.com/libgit2/libgit2-backends.git
cd libgit2-backends
cmake memcached
cmake --build .
Here is partial output from the build step:
$ cmake --build .
Scanning dependencies of target git2-memcached
[100%] Building C object CMakeFiles/git2-memcached.dir/memcached.c.o
/Users/stinky/Downloads/libgit2-backends/memcached/memcached.c:34:18: error: field has incomplete type 'git_odb_backend' (aka 'struct git_odb_backend')
git_odb_backend parent;
^
/usr/local/include/git2/types.h:84:16: note: forward declaration of 'struct git_odb_backend'
typedef struct git_odb_backend git_odb_backend;
^
/Users/stinky/Downloads/libgit2-backends/memcached/memcached.c:81:10: error: use of undeclared identifier 'GIT_ENOMEM'
return GIT_ENOMEM;
^
/Users/stinky/Downloads/libgit2-backends/memcached/memcached.c:85:10: error: use of undeclared identifier 'GIT_ENOMEM'
return GIT_ENOMEM;
^
/Users/stinky/Downloads/libgit2-backends/memcached/memcached.c:105:12: error: use of undeclared identifier 'GIT_SUCCESS'
status = GIT_SUCCESS;
...
It appears that the compiler can't find libgit2, but cmake seemed to find it just fine in the cmake memcached
step.
Metadata
Metadata
Assignees
Labels
No labels