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 Debian Squeeze #27

Closed
ghost opened this issue Jun 9, 2012 · 1 comment
Closed

Compile error on Debian Squeeze #27

ghost opened this issue Jun 9, 2012 · 1 comment

Comments

@ghost
Copy link

ghost commented Jun 9, 2012

Hey there,

up-to-date debian, building against newest libgit2 ;)

According to the code from libgit/include/git2/errors.h the constants should be changed to GIT_OK and so on? defining "GIT_OLD_ERRORS" would be fine for the moment, too. Just had a read quick view on that.

root@ed:/php-git# make
/bin/bash /root/php-git/libtool --mode=compile cc -I. -I/root/php-git -DPHP_ATOM_INC -I/root/php-git/include -I/root/php-git/main -I/root/php-git -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H -g -O2 -c /root/php-git/repository.c -o repository.lo
libtool: compile: cc -I. -I/root/php-git -DPHP_ATOM_INC -I/root/php-git/include -I/root/php-git/main -I/root/php-git -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H -g -O2 -c /root/php-git/repository.c -fPIC -DPIC -o .libs/repository.o
/root/php-git/repository.c: In function ‘php_git2_repository_initialize’:
/root/php-git/repository.c:98: warning: passing argument 4 of ‘add_property_string_ex’ discards qualifiers from pointer target type
/usr/include/php5/Zend/zend_API.h:413: note: expected ‘char ’ but argument is of type ‘const char *’
/root/php-git/repository.c: In function ‘zim_git2_repository_init’:
/root/php-git/repository.c:237: error: ‘GIT_SUCCESS’ undeclared (first use in this function)
/root/php-git/repository.c:237: error: (Each undeclared identifier is reported only once
/root/php-git/repository.c:237: error: for each function it appears in.)
/root/php-git/repository.c: In function ‘zim_git2_repository_discover’:
/root/php-git/repository.c:313: error: ‘GIT_SUCCESS’ undeclared (first use in this function)
/root/php-git/repository.c: In function ‘zim_git2_repository_exists’:
/root/php-git/repository.c:341: error: ‘GIT_SUCCESS’ undeclared (first use in this function)
/root/php-git/repository.c: In function ‘zim_git2_repository_lookup’:
/root/php-git/repository.c:377: error: ‘GIT_SUCCESS’ undeclared (first use in this function)
make: *
* [repository.lo] Error 1
root@ed:
/php-git#

@ghost
Copy link
Author

ghost commented Jun 9, 2012

Just read Issue #26 (using libgit2 rev 2218fd5) --> solved.

@ghost ghost closed this as completed Jun 9, 2012
This issue was closed.
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

0 participants