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

Error compile on MacOS X #29

Closed
Crash-- opened this issue Jul 5, 2012 · 4 comments
Closed

Error compile on MacOS X #29

Crash-- opened this issue Jul 5, 2012 · 4 comments

Comments

@Crash--
Copy link

Crash-- commented Jul 5, 2012

The compilation of libgit2 works fine, but when I try to compile the PHP-GIT extension, I've this error during the make step.

I use the PHP 5.3.10 version compiled from macport repo:

php -v
PHP 5.3.10 (cli) (built: Mar 4 2012 12:36:34)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
with Xdebug v2.1.2, Copyright (c) 2002-2011, by Derick Rethans

Any ideas?

/bin/sh /Users/Quentin/Sites/Boulot/PHPGIT/php-git/libtool --mode=compile cc  -I. -I/Users/Quentin/Sites/Boulot/PHPGIT/php-git -DPHP_ATOM_INC -I/Users/Quentin/Sites/Boulot/PHPGIT/php-git/include -I/Users/Quentin/Sites/Boulot/PHPGIT/php-git/main -I/Users/Quentin/Sites/Boulot/PHPGIT/php-git -I/opt/local/include/php -I/opt/local/include/php/main -I/opt/local/include/php/TSRM -I/opt/local/include/php/Zend -I/opt/local/include/php/ext -I/opt/local/include/php/ext/date/lib -I/opt/local/include  -DHAVE_CONFIG_H  -g -O2   -c /Users/Quentin/Sites/Boulot/PHPGIT/php-git/repository.c -o repository.lo 
 cc -I. -I/Users/Quentin/Sites/Boulot/PHPGIT/php-git -DPHP_ATOM_INC -I/Users/Quentin/Sites/Boulot/PHPGIT/php-git/include -I/Users/Quentin/Sites/Boulot/PHPGIT/php-git/main -I/Users/Quentin/Sites/Boulot/PHPGIT/php-git -I/opt/local/include/php -I/opt/local/include/php/main -I/opt/local/include/php/TSRM -I/opt/local/include/php/Zend -I/opt/local/include/php/ext -I/opt/local/include/php/ext/date/lib -I/opt/local/include -DHAVE_CONFIG_H -g -O2 -c /Users/Quentin/Sites/Boulot/PHPGIT/php-git/repository.c  -fno-common -DPIC -o .libs/repository.o
/Users/Quentin/Sites/Boulot/PHPGIT/php-git/repository.c: In function ‘php_git2_repository_initialize’:
/Users/Quentin/Sites/Boulot/PHPGIT/php-git/repository.c:98: warning: passing argument 4 of ‘add_property_string_ex’ discards qualifiers from pointer target type
/Users/Quentin/Sites/Boulot/PHPGIT/php-git/repository.c: In function ‘zim_git2_repository_init’:
/Users/Quentin/Sites/Boulot/PHPGIT/php-git/repository.c:237: error: ‘GIT_SUCCESS’ undeclared (first use in this function)
/Users/Quentin/Sites/Boulot/PHPGIT/php-git/repository.c:237: error: (Each undeclared identifier is reported only once
/Users/Quentin/Sites/Boulot/PHPGIT/php-git/repository.c:237: error: for each function it appears in.)
/Users/Quentin/Sites/Boulot/PHPGIT/php-git/repository.c: In function ‘zim_git2_repository_discover’:
/Users/Quentin/Sites/Boulot/PHPGIT/php-git/repository.c:313: error: ‘GIT_SUCCESS’ undeclared (first use in this function)
/Users/Quentin/Sites/Boulot/PHPGIT/php-git/repository.c: In function ‘zim_git2_repository_exists’:
/Users/Quentin/Sites/Boulot/PHPGIT/php-git/repository.c:341: error: ‘GIT_SUCCESS’ undeclared (first use in this function)
/Users/Quentin/Sites/Boulot/PHPGIT/php-git/repository.c: In function ‘zim_git2_repository_lookup’:
/Users/Quentin/Sites/Boulot/PHPGIT/php-git/repository.c:377: error: ‘GIT_SUCCESS’ undeclared (first use in this function)
make: *** [repository.lo] Error 1

Thank you,

@chobie
Copy link
Member

chobie commented Jul 5, 2012

sorry, please try #26.

@Crash--
Copy link
Author

Crash-- commented Jul 9, 2012

The link indicated into the #26 doesn't work anymore. (2218fd5)

Which commit should I use?

@chobie
Copy link
Member

chobie commented Jul 9, 2012

@Crash- oops, missed link. you have to use this libgit2 commit and current php-git2 dev branch.
libgit2/libgit2@2218fd5

I'll plan to use libgit2 static lib for next php-git2 version as it's hard to support several libgit2 version.

@Crash--
Copy link
Author

Crash-- commented Jul 10, 2012

@chobie Thank you very much for your help. You can close this issue :)

@Crash-- Crash-- closed this as completed Jul 10, 2012
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