Results 1 to 2 of 2

Thread: Linux linking error with libssl, libcrypt

  1. #1
    Join Date
    Mar 2008
    Posts
    6
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Linux linking error with libssl, libcrypt

    Hi all!

    So, I have made my static build on my Slackware without any problem, just on the other distribution it has linking errors.

    Qt Code:
    1. ...: 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:
    Qt Code:
    1. ls /usr/lib/libssl* -la
    2. -rw-r--r-- 1 root root 406594 2007-06-13 19:40 /usr/lib/libssl.a
    3. lrwxrwxrwx 1 root root 11 2007-11-22 00:15 /usr/lib/libssl.so -> libssl.so.0*
    4. lrwxrwxrwx 1 root root 15 2007-11-22 00:15 /usr/lib/libssl.so.0 -> libssl.so.0.9.8*
    5. -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:
    Qt Code:
    1. ls /usr/lib/libssl* -la
    2. -rw-r--r-- 1 root root 406594 2007-06-13 19:40 /usr/lib/libssl.a
    3. lrwxrwxrwx 1 root root 11 2007-11-22 00:15 /usr/lib/libssl.so -> libssl.so.0.9.8*
    4. -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?

  2. #2
    Join Date
    Mar 2008
    Posts
    6
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Linux linking error with libssl, libcrypt

    I was thinking that maybe I'm misunderstood. I had this small problem, I would like to spare the bug hunting to anyone in this situation, but I can't tell whom should I bother with this?
    Slackware, SUSE, Qt or gcc? Any ideas?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.