Tiny Core Linux

Tiny Core Extensions => TCE Bugs => Topic started by: behlers on December 29, 2015, 02:35:37 AM

Title: qt-4.x-dev: undefined SSLv2 functions at link phase
Post by: behlers on December 29, 2015, 02: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?
Title: Re: qt-4.x-dev: undefined SSLv2 functions at link phase
Post by: curaga on December 29, 2015, 02:40:11 AM
Yes, it needs a recompile. What version and arch are you on?
Title: Re: qt-4.x-dev: undefined SSLv2 functions at link phase
Post by: behlers on December 29, 2015, 02: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
Title: Re: qt-4.x-dev: undefined SSLv2 functions at link phase
Post by: Juanito on December 29, 2015, 02:52:02 AM
aaargh - OK, I'll take a look at this at some point...
Title: Re: qt-4.x-dev: undefined SSLv2 functions at link phase
Post by: Juanito on December 29, 2015, 06: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.
Title: Re: qt-4.x-dev: undefined SSLv2 functions at link phase
Post by: behlers on December 29, 2015, 07: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.
Title: Re: qt-4.x-dev: undefined SSLv2 functions at link phase
Post by: Juanito on December 29, 2015, 07:11:20 AM
Great  :)

qt-4.x-base updated in the repo