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

Unable to load extension. #44

Open
ghost opened this issue Jan 28, 2013 · 1 comment
Open

Unable to load extension. #44

ghost opened this issue Jan 28, 2013 · 1 comment

Comments

@ghost
Copy link

ghost commented Jan 28, 2013

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
Copy link

ghost commented Feb 22, 2013

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.

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

0 participants