Hi all!
So, I have made my static build on my Slackware without any problem, just on the other distribution it has linking errors.
...: error while loading shared libraries: libssl.so.0: cannot open shared object file: No such file or directory
...: error while loading shared libraries: libssl.so.0: cannot open shared object file: No such file or directory
To copy to clipboard, switch view to plain text mode
It's clear that the static binary is looking for the libssl.so and the libcrypt.so files, the problem is, that it's looking for the wrong file name.
On Slackware:
ls /usr/lib/libssl* -la
-rw-r--r-- 1 root root 406594 2007-06-13 19:40 /usr/lib/libssl.a
lrwxrwxrwx 1 root root 11 2007-11-22 00:15 /usr/lib/libssl.so -> libssl.so.0*
lrwxrwxrwx 1 root root 15 2007-11-22 00:15 /usr/lib/libssl.so.0 -> libssl.so.0.9.8*
-r-xr-xr-x 1 root root 256252 2007-06-13 19:40 /usr/lib/libssl.so.0.9.8*
ls /usr/lib/libssl* -la
-rw-r--r-- 1 root root 406594 2007-06-13 19:40 /usr/lib/libssl.a
lrwxrwxrwx 1 root root 11 2007-11-22 00:15 /usr/lib/libssl.so -> libssl.so.0*
lrwxrwxrwx 1 root root 15 2007-11-22 00:15 /usr/lib/libssl.so.0 -> libssl.so.0.9.8*
-r-xr-xr-x 1 root root 256252 2007-06-13 19:40 /usr/lib/libssl.so.0.9.8*
To copy to clipboard, switch view to plain text mode
On SUSE:
ls /usr/lib/libssl* -la
-rw-r--r-- 1 root root 406594 2007-06-13 19:40 /usr/lib/libssl.a
lrwxrwxrwx 1 root root 11 2007-11-22 00:15 /usr/lib/libssl.so -> libssl.so.0.9.8*
-r-xr-xr-x 1 root root 256252 2007-06-13 19:40 /usr/lib/libssl.so.0.9.8*
ls /usr/lib/libssl* -la
-rw-r--r-- 1 root root 406594 2007-06-13 19:40 /usr/lib/libssl.a
lrwxrwxrwx 1 root root 11 2007-11-22 00:15 /usr/lib/libssl.so -> libssl.so.0.9.8*
-r-xr-xr-x 1 root root 256252 2007-06-13 19:40 /usr/lib/libssl.so.0.9.8*
To copy to clipboard, switch view to plain text mode
The difference is clear: the SUSE doesn't have the libssl.so.0. Ofcourse you can just make a symlink and the problem is gone. What I would like to know:
Why does it links the lib*.so.0 version instead of the more standard lib*.so? Is this a bug, or just the SUSE is missing this common link? Can I change this behavior?
Bookmarks