Compile error on kubuntu
PiranhaGeorge opened this issue · 2 comments
PiranhaGeorge commented
I'm getting the following compile error on kubuntu 12.04 with php 5.4.0 .
/bin/bash /home/geo/Sources/php-git/libtool --mode=compile cc -I. -I/home/geo/Sources/php-git -DPHP_ATOM_INC -I/home/geo/Sources/php-git/include -I/home/geo/Sources/php-git/main -I/home/geo/Sources/php-git -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O0 -c /home/geo/Sources/php-git/remote.c -o remote.lo
cc -I. -I/home/geo/Sources/php-git -DPHP_ATOM_INC -I/home/geo/Sources/php-git/include -I/home/geo/Sources/php-git/main -I/home/geo/Sources/php-git -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O0 -c /home/geo/Sources/php-git/remote.c -fPIC -DPIC -o .libs/remote.o
/home/geo/Sources/php-git/remote.c: In function ‘zim_git2_remote___construct’:
/home/geo/Sources/php-git/remote.c:81:3: error: too few arguments to function ‘git_remote_new’
/usr/local/include/git2/remote.h:46:17: note: declared here
/home/geo/Sources/php-git/remote.c: In function ‘php_git2_rename_packfile’:
/home/geo/Sources/php-git/remote.c:99:10: error: ‘GIT_EINVALIDARGS’ undeclared (first use in this function)
/home/geo/Sources/php-git/remote.c:99:10: note: each undeclared identifier is reported only once for each function it appears in
/home/geo/Sources/php-git/remote.c:106:11: error: ‘GIT_EOSERR’ undeclared (first use in this function)
/home/geo/Sources/php-git/remote.c: In function ‘zim_git2_remote_fetch’:
/home/geo/Sources/php-git/remote.c:144:2: warning: passing argument 1 of ‘git_remote_download’ from incompatible pointer type [enabled by default]
/usr/local/include/git2/remote.h:155:17: note: expected ‘struct git_remote *’ but argument is of type ‘char **’
/home/geo/Sources/php-git/remote.c:144:2: warning: passing argument 2 of ‘git_remote_download’ from incompatible pointer type [enabled by default]
/usr/local/include/git2/remote.h:155:17: note: expected ‘git_off_t *’ but argument is of type ‘struct git_remote *’
/home/geo/Sources/php-git/remote.c:144:2: error: too few arguments to function ‘git_remote_download’
/usr/local/include/git2/remote.h:155:17: note: declared here
/home/geo/Sources/php-git/remote.c:161:2: error: too few arguments to function ‘git_remote_update_tips’
/usr/local/include/git2/remote.h:193:17: note: declared here
make: *** [remote.lo] Error 1
Any ideas?
Cheers, George
chobie commented
probably you use latest libgit2, don't you?
for now, can you use 2218fd57a50ceb851cb131939bf0747e072e40f6 instead of latest development branch?
I'll fix that problem when libgit2 released next version.
PiranhaGeorge commented
Yes I was using the latest libgit2 - 2218fd5 worked perfectly.
Thank you :)