Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile error on kubuntu #26

Open
PiranhaGeorge opened this issue May 14, 2012 · 2 comments
Open

Compile error on kubuntu #26

PiranhaGeorge opened this issue May 14, 2012 · 2 comments

Comments

@PiranhaGeorge
Copy link

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
Copy link
Member

chobie commented May 14, 2012

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
Copy link
Author

Yes I was using the latest libgit2 - 2218fd5 worked perfectly.

Thank you :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants