WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: qt-4.x-dev: undefined SSLv2 functions at link phase  (Read 2854 times)

behlers

  • Guest
qt-4.x-dev: undefined SSLv2 functions at link phase
« on: December 29, 2015, 05:35:37 AM »
When I compile a qt program (ostinato) using the qt-4.x-dev package, I get the following error during the link phase:

/usr/local/lib/libQtNetwork.so: undefined reference to `SSLv2_server_method'
/usr/local/lib/libQtNetwork.so: undefined reference to `SSLv2_client_method'

The openssl library indeed doesn't define these two functions. It seems, that qt4 tries to use the deprecated SSLv2 methods. For me it looks like the qt4 libraries in tinycore were build with an older version of openssl, which included SSLv2 support.

To get around this, I added a module with dummy functions for SSLv2_client_method and SSLv2_server_method. Then I can sucessfully complete the compilation. Is there a better way to get around this?
« Last Edit: December 29, 2015, 05:39:12 AM by behlers »

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11041
Re: qt-4.x-dev: undefined SSLv2 functions at link phase
« Reply #1 on: December 29, 2015, 05:40:11 AM »
Yes, it needs a recompile. What version and arch are you on?
The only barriers that can stop you are the ones you create yourself.

behlers

  • Guest
Re: qt-4.x-dev: undefined SSLv2 functions at link phase
« Reply #2 on: December 29, 2015, 05:49:40 AM »
I'm using mirocore V6.4.1 x86 (32 bit) with freshly installed extensions:
qt-4.x: version 4.8.6
openssl: version 1.0.2d

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14790
Re: qt-4.x-dev: undefined SSLv2 functions at link phase
« Reply #3 on: December 29, 2015, 05:52:02 AM »
aaargh - OK, I'll take a look at this at some point...

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14790
Re: qt-4.x-dev: undefined SSLv2 functions at link phase
« Reply #4 on: December 29, 2015, 09:38:59 AM »
In an attempt to avoid a lot of effort, I tried replacing just libQtNetwork.so* in qt-4.x-base.

Could you try the new version here:

http://tinycorelinux.net/6.x/x86/tcz/src/qt-4.x_test/

..and let me know if it works.

behlers

  • Guest
Re: qt-4.x-dev: undefined SSLv2 functions at link phase
« Reply #5 on: December 29, 2015, 10:05:18 AM »
Looks good. Replaced the original qt-4.x-base package by the test version. Now the link phase works without problems and the resulting binary runs.

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14790
Re: qt-4.x-dev: undefined SSLv2 functions at link phase
« Reply #6 on: December 29, 2015, 10:11:20 AM »
Great  :)

qt-4.x-base updated in the repo