libgit2 / php-git

PHP bindings for libgit2
http://libgit2.github.com
MIT License
565 stars 118 forks source link

undefined symbol git_reference_write found. #7

Open guoxiaod opened 13 years ago

guoxiaod commented 13 years ago

I get the libgit2 v0.10.0 and php-git v0.2.1 compile, then install, restart apache, get this error: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/git.so' - /usr/lib64/php/modules/git.so: undefined symbol: git_reference_write in Unknown on line 0

chobie commented 13 years ago

Hi Anders,

oops sorry, Git\Commit::write can't work now.

would you use Git\Reference\Manager::create instead of that?

http://php-git.chobie.co/classes/manager/create.html

i would like to fix this problem in this weekend. please wait updating.

guoxiaod commented 13 years ago

Ok, thanks for your reply.

I just found this problem makes the git.so cann't be loaded, and everything in the extension cann't be used.

I have commented all the undefined symbols to make the extension work.

It's not urgent.

chobie commented 13 years ago

hey, i've fixed this issue on https://github.com/libgit2/php-git/commit/afab298a2153b12ff2c95344abcf799eaecbc7f4

but also i found backend freeing issue (sometimes can't call free method). so i'll bump up to v0.2.2 when i fix that probrem.

and, i wrote missunderstanding sentence. X: GitCommit::write can't work now. O: Git\Reference::write can't work now.

btw, i have 1 week vaction on early May holiday season in Japan. i would like to improve php-git. please wait updating :D