Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork10.9k
How does shared library work in NEEDED section#28952
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
Hi, I have two questions regarding to the shared library stated in the NEEDED section for a .so file. libssl.so needed a shared library named libcrypto.so.3, my first question is: Im not sure is that libcrypto.so.3 a SONAME or a filename? If it is a SONAME how does the libssl.so know where to find it?Another question I can see both libcrypto.so and libcrypto.so.3 have the same SONAME, how does other file knows which one should be called? |
BetaWas this translation helpful?Give feedback.
All reactions
Replies: 1 comment 2 replies
-
If you want to read all the gory details, theman-page for ld.so is the place to look. In short, the File names like ls -l /usr/lib/x86_64-linux-gnu/lib{crypto,ssl}.*-rw-r--r-- 1 root root 11945002 sep 30 21:54 /usr/lib/x86_64-linux-gnu/libcrypto.alrwxrwxrwx 1 root root 14 sep 30 21:54 /usr/lib/x86_64-linux-gnu/libcrypto.so -> libcrypto.so.3-rw-r--r-- 1 root root 6373952 sep 30 21:54 /usr/lib/x86_64-linux-gnu/libcrypto.so.3-rw-r--r-- 1 root root 2095014 sep 30 21:54 /usr/lib/x86_64-linux-gnu/libssl.alrwxrwxrwx 1 root root 11 sep 30 21:54 /usr/lib/x86_64-linux-gnu/libssl.so -> libssl.so.3-rw-r--r-- 1 root root 1101760 sep 30 21:54 /usr/lib/x86_64-linux-gnu/libssl.so.3 |
BetaWas this translation helpful?Give feedback.
All reactions
-
Hi@levitte , thanks for your reply.
Im wondering a special case that:
which one is NEEDED for libssl.so? |
BetaWas this translation helpful?Give feedback.
All reactions
-
That sounds wrong. Its SONAME should be libcrypto.so.3 Have you checked whether any of those files are symbolic links? |
BetaWas this translation helpful?Give feedback.