libgit2/php-git

Unable to load extension.

Opened this issue · 1 comments

Hi there,

I am trying to get php-git extension loaded into php (5.3.18, 5.3.20) on Amazon Linux (Amazon Linux AMI release 2012.09). It does build correctly, git2.so is installed into /usr/lib64/php/modules/git2.so and can be seen by php.

Here is the error message I get with extension=git2.so enabled:

$ php
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/git2.so' - /usr/lib64/php/modules/git2.so: undefined symbol: git_index_get in Unknown on line 0

I have followed steps from README. What other information could I provide you to aid search for solution?

Kind regards,
Kamil

Hi Kamil,

The issue you are facing is due to some out of date libgit2 API calls in the index.c file.

We have just submitted a pull request with the fix, but feel free in the mean time to utilise the amended index.c in the pull request.

Best wishes.