libgit2/rugged — Issue #36: too many arguments to function ‘git_tree_walk’
Author: conv
Created: 2011-11-18 00:22:38+00:00
State: open

I'm using libgit2 0.15.0 and trying to compile HEAD version of rugged.
I get some warnings and the following error (in line 128 of rugged_tree.c):

WARNING: 'require 'rake/rdoctask'' is deprecated. Please use 'require 'rdoc/task' (in RDoc 2.4.2+)' instead.
at /home/conv/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/rdoctask.rb
cd tmp/x86_64-linux/rugged/1.9.3
gmake
compiling ../../../../ext/rugged/rugged_tree.c
../../../../ext/rugged/rugged_tree.c: In function ‘rb_git_tree_walk’:
../../../../ext/rugged/rugged_tree.c:128:2: warning: passing argument 2 of ‘git_tree_walk’ from incompatible pointer type [enabled by default]
/home/conv/Projects/System/rugged/ext/rugged/vendor/libgit2-libgit2-b0b2dd5/include/git2/tree.h:313:17: note: expected ‘git_treewalk_cb’ but argument is of type ‘int (*)(const char *, struct git_tree_entry *, void *)’
../../../../ext/rugged/rugged_tree.c:128:2: error: too many arguments to function ‘git_tree_walk’
/home/conv/Projects/System/rugged/ext/rugged/vendor/libgit2-libgit2-b0b2dd5/include/git2/tree.h:313:17: note: declared here
../../../../ext/rugged/rugged_tree.c: In function ‘rb_git_tree_subtree’:
../../../../ext/rugged/rugged_tree.c:145:2: warning: implicit declaration of function ‘git_tree_get_subtree’ [-Wimplicit-function-declaration]
gmake: *** [rugged_tree.o] Error 1
rake aborted!
Command failed with status (2): [gmake...]

Tasks: TOP => compile => compile:x86_64-linux => compile:rugged:x86_64-linux => copy:rugged:x86_64-linux:1.9.3 => tmp/x86_64-linux/rugged/1.9.3/rugged.so
(See full trace by running task with --trace)

(I'm not really a C guy, so I can just report this and help testing, if needed. :()