Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QSslSocket: cannot call unresolved function SSLv23_client_method #2938

Closed
nmors opened this issue May 11, 2016 · 12 comments

Comments

9 participants
@nmors
Copy link

commented May 11, 2016

running on centos6 to a HTTPS address, same binary works on my ubuntu machine

QSslSocket: cannot call unresolved function SSLv23_client_method
QSslSocket: cannot call unresolved function SSL_CTX_new
QSslSocket: cannot call unresolved function SSL_library_init
QSslSocket: cannot call unresolved function ERR_get_error

wkhtmltopdf exited with code 1 [STACK TRACE]:Error: QSslSocket: cannot call unresolved function SSLv23_client_method
QSslSocket: cannot call unresolved function SSL_CTX_new
QSslSocket: cannot call unresolved function SSL_library_init
QSslSocket: cannot call unresolved function ERR_get_error

wkhtmltopdf exited with code 1

Note, this is using the generic stable binary "Linux". (which I assume should work on centos) I will see how the "Bleeding Edge" centos version works.

I'll see if compiling on this centos server fixes the issue and close if it does.. maybe the binary is wrong

@ashkulz

This comment has been minimized.

Copy link
Member

commented May 11, 2016

@nmors: are you using the latest CentOS 6 release? The generic linux binary is CentOS, so you should not bet getting this issue.

@ashkulz ashkulz added the NeedInfo label May 11, 2016

@nmors

This comment has been minimized.

Copy link
Author

commented May 12, 2016

Yep, Centos 6.7 (Final) will ALL latest patches

$ uname -a
Linux ed-app-dev 2.6.32-431.el6.x86_64 #1 SMP Fri Nov 22 03:15:09 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
$ cat /etc/redhat-release
CentOS release 6.7 (Final)
@nmors

This comment has been minimized.

Copy link
Author

commented May 12, 2016

# yum install openssl openssl-devel
Loaded plugins: fastestmirror, presto
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: centos.den.host-engine.com
 * epel: archive.linux.duke.edu
 * extras: bay.uchicago.edu
 * updates: bay.uchicago.edu
Package openssl-1.0.1e-42.el6_7.4.x86_64 already installed and latest version
Package openssl-devel-1.0.1e-42.el6_7.4.x86_64 already installed and latest version
Nothing to do
# openssl
OpenSSL> version
OpenSSL 1.0.1e-fips 11 Feb 2013

OpenSSL> version -a
OpenSSL 1.0.1e-fips 11 Feb 2013
built on: Tue Mar  1 14:56:08 UTC 2016
platform: linux-x86_64
options:  bn(64,64) md2(int) rc4(16x,int) des(idx,cisc,16,int) idea(int) blowfish(idx) 
compiler: gcc -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DKRB5_MIT -m64 -DL_ENDIAN -DTERMIO -Wall -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -Wa,--noexecstack -DPURIFY -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM
OPENSSLDIR: "/etc/pki/tls"
engines:  dynamic 

# yum update 
Loaded plugins: fastestmirror, presto
Setting up Update Process
Loading mirror speeds from cached hostfile
 * base: centos.den.host-engine.com
 * epel: archive.linux.duke.edu
 * extras: bay.uchicago.edu
 * updates: bay.uchicago.edu
No Packages marked for Update
# yum info openssl
Loaded plugins: fastestmirror, presto
Loading mirror speeds from cached hostfile
 * base: centos.den.host-engine.com
 * epel: archive.linux.duke.edu
 * extras: bay.uchicago.edu
 * updates: bay.uchicago.edu
Installed Packages
Name        : openssl
Arch        : x86_64
Version     : 1.0.1e
Release     : 42.el6_7.4
Size        : 4.0 M
Repo        : installed
From repo   : updates
Summary     : A general purpose cryptography library with TLS implementation
URL         : http://www.openssl.org/
License     : OpenSSL
Description : The OpenSSL toolkit provides support for secure communications between
            : machines. OpenSSL includes a certificate management tool and shared
            : libraries which provide various cryptographic algorithms and
            : protocols.

Available Packages
Name        : openssl
Arch        : i686
Version     : 1.0.1e
Release     : 42.el6_7.4
Size        : 1.5 M
Repo        : updates
Summary     : A general purpose cryptography library with TLS implementation
URL         : http://www.openssl.org/
License     : OpenSSL
Description : The OpenSSL toolkit provides support for secure communications between
            : machines. OpenSSL includes a certificate management tool and shared
            : libraries which provide various cryptographic algorithms and
            : protocols.
@nmors

This comment has been minimized.

Copy link
Author

commented May 12, 2016

Okay!

installing the 32-bit version of openssl fixes the issue.

This is strange, because I am using the 64 bit version of wkhtmltopdf on a 64-bit system.

Is it because the SSL request is being made by qt library, and packaged qt is 32 bit ?

Solution:

yum install openssl.i686

@nmors nmors closed this May 12, 2016

@ashkulz

This comment has been minimized.

Copy link
Member

commented May 12, 2016

Does uninstalling the 32-bit OpenSSL cause the issue again? If not, it could be a missing symlink. Can you reproduce this in a fresh VM?

@basic99

This comment has been minimized.

Copy link

commented Jul 31, 2016

QSslSocket: cannot call unresolved function SSLv23_client_method8%
QSslSocket: cannot call unresolved function SSL_CTX_new
QSslSocket: cannot call unresolved function SSL_library_init
QSslSocket: cannot call unresolved function ERR_get_error
QSslSocket: cannot call unresolved function SSLv23_client_method
QSslSocket: cannot call unresolved function SSL_CTX_new
QSslSocket: cannot call unresolved function SSL_library_init
QSslSocket: cannot call unresolved function ERR_get_error
QSslSocket: cannot call unresolved function SSLv23_client_method
QSslSocket: cannot call unresolved function SSL_CTX_new
QSslSocket: cannot call unresolved function SSL_library_init
QSslSocket: cannot call unresolved function ERR_get_error
QSslSocket: cannot call unresolved function SSLv23_client_method
QSslSocket: cannot call unresolved function SSL_CTX_new
QSslSocket: cannot call unresolved function SSL_library_init
QSslSocket: cannot call unresolved function ERR_get_error

I got this and was fixed with yum install openssl.i686 also.
Red Hat Enterprise Linux Server release 6.8 (Santiago)

@mlutfy

This comment has been minimized.

Copy link

commented Oct 6, 2017

For those like me stumbling on this issue, for Debian users, see this comment with a simple fix:
#3001 (comment)

tl;dr: apt-get install libssl1.0-dev

Rather odd, but it works!

@dunebaud

This comment has been minimized.

Copy link

commented Mar 30, 2018

I have the same problem with 0.12.5-dev (builded from source) and 0.12.4 on ubuntu 17.10.
I have tried many solution like:
sudo apt-get install libssl1.0-dev
or
sudo apt-get install libssl1.0.0/artful libssl-dev/artful openssl/artful; sudo apt-get install libssl1.0.0:i386
or
sudo apt-get install libssl1.0.0=1.0.2g-1ubuntu13.4

But none of them worked out.
The only way I could solve my problem was to replace the google font inclusion: https://fonts.googleapis.com/css?family=... by a <style>.download and include the font here..</style> inside my html to be converted...

@panuci

This comment has been minimized.

Copy link

commented Apr 18, 2018

Got the same error, find the problem was when i try to convert "HTML to IMAGE/PDF" and the HTML has images with full url (http://do...).

@kevindecapite

This comment has been minimized.

Copy link

commented Apr 22, 2018

On Ubuntu 16.04.4 LTS, when I run apt-get install libssl1.0-dev to try and fix this issue, I get the following:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package libssl1.0-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libssl1.0-dev' has no installation candidate

I don't know what the next steps should be.

@krishjun

This comment has been minimized.

Copy link

commented Jul 28, 2018

Thank you @kevindecapite your method worked for me in php-fpm docker container.

@polaco1782

This comment has been minimized.

Copy link

commented Nov 3, 2018

apt-get install libssl1.0-dev

I confirm this solution works on Debian strech. It is weird, depending on a devel package to work correcly? 😕

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.