PDA

View Full Version : Why my programm is asking for libssl.so.7?



gboelter
25th September 2009, 12:41
Sorry guys,

I'm really not sure if this is a Qt related problem or more a Linux related problem.

I have developed a program under Linux (Fedora 9) with SSL Support. The prorgam works fine for me but now I have tried to move the program to another machine (Ubuntu 9.04).

And there I got these errors:



error while loading shared libraries: libssl.so.7
error while loading shared libraries: libcrypto.so.7


Why that? On both machines "openssl version" gives me

OpenSSL 0.9.8g 19 Oct 2007

Why the program is asking for libcrypto.so.7 and not for libcrypto.so or libcrypto.so.0.9.8 or something else?

I know, I could fix it with a symlink, but is there a better way to do that?

If not, is there a way to link libssl and libcrypto static to my program?

Thanks in advance and best regards!

Guenther

wysota
26th September 2009, 09:18
What does ldd return on your application on both machines?

gboelter
29th September 2009, 12:23
Hi wysota,


What does ldd return on your application on both machines?

thanks for the response. I know already what's causing this issue. It's not "my" program, it's Qt's libQtSql.so.4.5.2 what's doing this funny things and this has something to do with Fedora.

I have compiled the program now directly under Ubuntu and there I don't need libbssl.so.7. But if the program is compiled under Fedora, then libssl.so.7 is required.

By the way, libbsl.so.7 is a symlink to libssl.so.0.9.8g. libQtSql also needs libcrypto.so.7 as a symlink to libcrypto.so.0.9.8g.

It's a little bit confusing, but I can live with that ... ;)

Thanks again.

Regards Guenther