Skip to content

How to replace needed ? #103

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

Closed
fansgit opened this issue Jul 3, 2016 · 2 comments
Closed

How to replace needed ? #103

fansgit opened this issue Jul 3, 2016 · 2 comments

Comments

@fansgit
Copy link

fansgit commented Jul 3, 2016

I tried with patchelf 0.9 but it seemed not working. Did I abuse it?

$ ldd myapp
libXXX.so.1 => not found
...
$ patchelf --replace-needed libXXX.so.1 libXXX.so.2 myapp
$ ldd myapp # old lib not replaced
libXXX.so.1 => not found
...
@ajburley
Copy link

ajburley commented Jul 8, 2018

Try readelf -a myapp | grep libXXX.so.1 -B 5 or similar.

You may find the problem is in the .gnu.version_r - if so, there was an issue about that - see #84

Unfortunately, that issue was fixed in April 2016, but the latest release of patchelf (0.9) was in February 2016. You may want to try building patchelf from source and see if that version fixes your issue. (Or, if you are on a supported architecture, try the pre-release build - although I haven't checked myself to see if it contains the fix I mentioned.)

@domenkozar
Copy link
Member

Closing as inactive

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

3 participants