libgit2/luagit2 — Issue #2: Out of date
Author: TheLinx
Created: 2012-01-12 15:49:48+00:00
State: open

When compiling with libgit2 v0.15 installed I get the following errors:

```
gcc -O2 -fPIC -I/usr/include -c src/pre_generated-git2.nobj.c -o src/pre_generated-git2.nobj.o
src/pre_generated-git2.nobj.c: In function ‘Signature__new__meth’:
src/pre_generated-git2.nobj.c:1776:3: warning: passing argument 1 of ‘git_signature_new’ from incompatible pointer type [enabled by default]
/usr/include/git2/signature.h:33:17: note: expected ‘struct git_signature **’ but argument is of type ‘const char *’
src/pre_generated-git2.nobj.c:1776:3: warning: passing argument 3 of ‘git_signature_new’ makes pointer from integer without a cast [enabled by default]
/usr/include/git2/signature.h:33:17: note: expected ‘const char *’ but argument is of type ‘time_t’
src/pre_generated-git2.nobj.c:1776:3: error: too few arguments to function ‘git_signature_new’
/usr/include/git2/signature.h:33:17: note: declared here
src/pre_generated-git2.nobj.c: In function ‘Commit__create__func’:
src/pre_generated-git2.nobj.c:1871:3: warning: passing argument 7 of ‘git_commit_create’ from incompatible pointer type [enabled by default]
/usr/include/git2/commit.h:224:17: note: expected ‘const char *’ but argument is of type ‘const struct git_oid *’
src/pre_generated-git2.nobj.c:1871:3: warning: passing argument 8 of ‘git_commit_create’ makes pointer from integer without a cast [enabled by default]
/usr/include/git2/commit.h:224:17: note: expected ‘const struct git_tree *’ but argument is of type ‘int’
src/pre_generated-git2.nobj.c:1871:3: warning: passing argument 9 of ‘git_commit_create’ makes integer from pointer without a cast [enabled by default]
/usr/include/git2/commit.h:224:17: note: expected ‘int’ but argument is of type ‘const struct git_oid **’
src/pre_generated-git2.nobj.c:1871:3: error: too few arguments to function ‘git_commit_create’
/usr/include/git2/commit.h:224:17: note: declared here
src/pre_generated-git2.nobj.c: In function ‘Commit__message_short__meth’:
src/pre_generated-git2.nobj.c:1899:36: warning: assignment makes pointer from integer without a cast [enabled by default]
src/pre_generated-git2.nobj.c: In function ‘Tree__entry_byname__meth’:
src/pre_generated-git2.nobj.c:2013:33: warning: assignment discards ‘const’ qualifier from pointer target type [enabled by default]
src/pre_generated-git2.nobj.c: In function ‘Tree__entry_byindex__meth’:
src/pre_generated-git2.nobj.c:2023:34: warning: assignment discards ‘const’ qualifier from pointer target type [enabled by default]
src/pre_generated-git2.nobj.c: In function ‘Reference__rename__meth’:
src/pre_generated-git2.nobj.c:2348:3: error: too few arguments to function ‘git_reference_rename’
/usr/include/git2/refs.h:180:17: note: declared here

Error: Build error: Failed compiling object src/pre_generated-git2.nobj.o
```