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

openssl: libs don't contain an RPATH value #1

Closed
zebulon501 opened this issue Oct 16, 2011 · 3 comments
Closed

openssl: libs don't contain an RPATH value #1

zebulon501 opened this issue Oct 16, 2011 · 3 comments
Assignees

Comments

@zebulon501
Copy link
Contributor

Using readelf on the shared library provided by OpenSSL, no RPATH value is shown. This will lead to some wrong dependencies (using libs in /lib and /usr/lib in place of the intended ones).

@ghost ghost assigned zebulon501 Oct 16, 2011
@Diaoul
Copy link
Member

Diaoul commented Feb 16, 2012

Why should OpenSSL libs have a RPATH value?
Shared libs are loaded depending on the binary RPATH value, aren't they?

@Diaoul
Copy link
Member

Diaoul commented Feb 16, 2012

Found some references here : http://en.wikipedia.org/wiki/Rpath

An interesting part is -z nodeflib linker option to prevent library loading from /lib and /usr/lib
Also it says that the library path is first looked in the binary rpath value.

@ghost ghost assigned Diaoul Feb 21, 2012
@zebulon501
Copy link
Contributor Author

If you use -z nodeflib, you'll lose libc.so, with is quite useful IMHO.

OpenSSL shall have the path to the libraries it uses:
DS408> /lib/ld.so.1 --list /usr/local/transmission/lib/libssl.so
libcrypto.so.1.0.0 => /lib/libcrypto.so.1.0.0 (0x6fe02000)
libdl.so.2 => /lib/libdl.so.2 (0x6fddf000)
libc.so.6 => /lib/libc.so.6 (0x6fc81000)
/lib/ld.so.1 (0x2062f000)

If any of its dependency is not satisfied by the executable, it has to load it by itself.

In that particular case, it doesn't do any harm at the end, as there is not dependency outside of the standard path.

Let's close it.

@sangood sangood mentioned this issue Aug 8, 2014
m4tt075 referenced this issue in m4tt075/spksrc Feb 22, 2017
@m4tt075 m4tt075 mentioned this issue Sep 11, 2017
3 tasks
maxrogers added a commit to maxrogers/spksrc that referenced this issue Aug 28, 2020
miigotu referenced this issue in miigotu/spksrc Sep 13, 2020
march42 pushed a commit to march42/synocommunity-spksrc that referenced this issue Dec 21, 2020
Anonym-tsk added a commit to Anonym-tsk/spksrc that referenced this issue Jul 9, 2021
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

2 participants