Compile error on Debian Squeeze
Opened this issue · 1 comments
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/php-git#
/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:
Just read Issue #26 (using libgit2 rev 2218fd5) --> solved.