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

Already on GitHub? Sign in to your account

too few arguments to function ‘git_commit_create’ #34

Closed
suguiura opened this Issue Nov 11, 2011 · 3 comments

Comments

Projects
None yet
2 participants
Contributor

suguiura commented Nov 11, 2011

I'm using the 0.15.0 version of libgit2 and the HEAD version of rugged. Among some warnings, I get the error at the title:

$ rake compile
WARNING: 'require 'rake/rdoctask'' is deprecated.  Please use 'require 'rdoc/task' (in RDoc 2.4.2+)' instead.
    at /home/rafael/.gem/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/rdoctask.rb
cd tmp/i686-linux/rugged/1.9.3
gmake
compiling ../../../../ext/rugged/rugged_commit.c
../../../../ext/rugged/rugged_commit.c: In function ‘rb_git_commit_message_short_GET’:
../../../../ext/rugged/rugged_commit.c:49:2: warning: passing argument 1 of ‘rugged_str_new2’ makes pointer from integer without a cast
../../../../ext/rugged/rugged.h:201:21: note: expected ‘const char *’ but argument is of type ‘int’
../../../../ext/rugged/rugged_commit.c: In function ‘rb_git_commit_create’:
../../../../ext/rugged/rugged_commit.c:187:3: warning: passing argument 7 of ‘git_commit_create’ from incompatible pointer type
/usr/include/git2/commit.h:224:17: note: expected ‘const char *’ but argument is of type ‘struct git_tree *’
../../../../ext/rugged/rugged_commit.c:187:3: warning: passing argument 8 of ‘git_commit_create’ makes pointer from integer without a cast
/usr/include/git2/commit.h:224:17: note: expected ‘const struct git_tree *’ but argument is of type ‘int’
../../../../ext/rugged/rugged_commit.c:187:3: warning: passing argument 9 of ‘git_commit_create’ makes integer from pointer without a cast
/usr/include/git2/commit.h:224:17: note: expected ‘int’ but argument is of type ‘const struct git_commit **’
../../../../ext/rugged/rugged_commit.c:187:3: error: too few arguments to function ‘git_commit_create’
/usr/include/git2/commit.h:224:17: note: declared here
gmake: *** [rugged_commit.o] Error 1
rake aborted!
Command failed with status (2): [gmake...]

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

I checked that line and it's lacking either a message_encoding or a message variable. (I have no idea which one.)

Member

brianmario commented Jun 4, 2012

Could you check this again against the development branch? The bundled libgit2 was recently updated to the most recent version.

Contributor

suguiura commented Jun 6, 2012

It works now! :)

@suguiura suguiura closed this Jun 6, 2012

Member

brianmario commented Jun 6, 2012

awesome thanks for letting us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment