10

I am planning to install qt 5.5.1 on my ubuntu 14.04 running on virtual machine. I have downloaded the installer from qt-io and when I try to install the setup, I notice the below warning on my terminal, and then the installer pop up.

qt.network.ssl: QSslSocket: cannot resolve SSLv2_client_method
qt.network.ssl: QSslSocket: cannot resolve SSLv2_server_method

Do I need to worry much about this warning ? I dont see any error of this kind when I installed qt 5.3.1 on same machine.

Is there a way to resolve this warning ? Any help is appreciated. Thanks.

This is the current version of openSSL on my machine.

openssl version -v
OpenSSL 1.0.1f 6 Jan 2014
5

2 Answers 2

11

Now OpenSSL in Ubuntu is compiled without sslv2 because it’s insecure, but Qt 5.5.x still requires it. In order to enable sslv2 the package needs to be re-configued without the no-sslv2 flag.

Install the prerequisite packages

sudo apt-get update
sudo apt-get install libssl-dev devscripts dpkg-dev cdbs debhelper dh-autoreconf libev-dev libpcre3-dev pkg-config

And then, grab the source

cd ~/Downloads
sudo apt-get update
apt-get source openssl

Now we need to edit the file in openssl-1.0.1f/debian/rules. Find the line 44 (maybe the line number will be different in various version) and remove no-ssl2 so that it will be like below:

cd openssl-1.0.1f
nano debian/rules
CONFARGS  = --prefix=/usr --openssldir=/usr/lib/ssl --libdir=lib/$(DEB_HOST_MULTIARCH) no-idea no-mdc2 no-rc5 no-zlib  enable-tlsext no-ssl3 enable-unit-test $(ARCH_CONFARGS)

Next we will add a comment and commit the change. Then re-build the package, this is going to take some time so skip down to the nmap part and download the source. You might get some error says copyright was unable to be verified, ignore it. Moreover, the compiling might take a while so be patient.

dch –n 'Allow SSLv2'
dpkg-source --commit
debuild -uc -us

Now back to ~/Downloads you will see all the deb packages built. Install them:

cd ..
sudo dpkg -i *ssl*.deb

Now redo your Qt 5.5.1 installation to see if the warnings persist.

15
  • @user12345: Does it work?
    – Tung Tran
    Dec 21, 2015 at 10:18
  • I am pretty new to linux, and so am taking some time to figure out. When I did the first step, I see an error like this: user@ubuntu:~/Downloads$ apt-get source openssl Reading package lists... Done Building dependency tree Reading state information... Done E: You must put some 'source' URIs in your sources.list
    – user12345
    Dec 21, 2015 at 10:41
  • Strange. What your sudo apt-get update said?
    – Tung Tran
    Dec 21, 2015 at 10:47
  • I've edited my answer. Please launch sudo apt-get update before apt-get source openssl
    – Tung Tran
    Dec 21, 2015 at 10:52
  • Actually, I had an issue with sudo apt-get update. So i have this another thread running to find the answer for it. And you are the one helping me there as well. askubuntu.com/questions/711889/…
    – user12345
    Dec 21, 2015 at 11:01
0

This answer helped me:

https://stackoverflow.com/questions/42094214/why-is-qsslsocket-working-with-qt-5-3-but-not-qt-5-7-on-debian-stretch/42297296#42297296

Just install openssl1.0:

sudo apt install openssl1.0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .