-
Notifications
You must be signed in to change notification settings - Fork 92
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 when loading *.so file while running test #692
Comments
I'm not sure what is the issue behind this error. But I need more information to be able to debug. Can you run these commands and provide the output? sha256sum bin/pact-ffi-lib/pact.so sha256sum bin/pact-ffi-headers/pact.h ldd /bin/sh 2>&1 |
Sure, @tienvx here you are
|
I'm on the same platform with you: Then the One thing you can try is to force it to be downloaded again: mv vendor/pact-foundation/pact-php/bin vendor/pact-foundation/pact-php/bin.bak
composer update pact-foundation/pact-php Then run this command again to compare the sha256sum vendor/pact-foundation/pact-php/bin/pact-ffi-lib/pact.so |
Probably you can tell me what is it build then? I am installing vendors separately and mount the folder into the project |
has this worked previously before moving the vendors folder? are you installing the deps on the same target platform as you are running it in? |
Guys, seems I found the issue. The step where I prepare vendors using
But the place where I run it
|
Would you help me, how to make the library work inside env with?
|
are you running these in containers? which flavours? can you provide a repro |
I think I understand your setup:
For now, I think the workaround is to use the same images for both containers. |
the musl based library wont work in a glibc based environment if you need to build your php vendored directory from a glibc based distro and copy it into alpine, you will need to manually install and copy over the musl based library. php can only load so files on linux which rely on the relevant shared libc |
OS
x86_64 GNU/Linux
Error
The text was updated successfully, but these errors were encountered: