php-git icon indicating copy to clipboard operation
php-git copied to clipboard

Unable to load extension.

Open ghost opened this issue 12 years ago • 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

ghost avatar Jan 28 '13 17:01 ghost

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.

ghost avatar Feb 22 '13 11:02 ghost