MantisBT - NetSurf
View Issue Details
0002583NetSurfAmiga-specificpublic2017-12-10 17:142018-01-29 21:58
ReporterChris Young 
Assigned ToChris Young 
PlatformAmigaOSAmigaOSOS Version3.5
Product Version3.8 
Target Version3.8Fixed in Version 
Fixed in CI build #
Reported in CI build #4250
URL of problem page
Summary0002583: SSL not working in OS3 build
DescriptionSSL is not working in OS3 build since OpenSSL upgrade.
TagsNo tags attached.
Attached Files

Chris Young   
2017-12-10 17:16   
curl command-line is not working:

curl: (35) error:14195006:SSL routines:tls_construct_cke_ecdhe:EVP lib
Chris Young   
2017-12-11 22:31   
As far as I can tell, this error is being thrown up because evp_pkey_asn1_ctrl() returns <0.
This suggests the problem lies somewhere in the ASN1 code, but I have no idea what I'm looking for.
Chris Young   
2018-01-12 12:41   
Suspect the answer to this might be to upgrade the version of GCC we are using in the toolchain. There is a patched GCC6 here:
At the moment, I'm unable to even rebuild the ppc-amigaos toolchain (GCC 5 or 6) due to conflicting autotools dependencies, and m68k-amigaos is stuck on an even older version of binutils, so I'm not going to attempt switching to GCC6 until I at least get it building for ppc-amigaos.
Chris Young   
2018-01-27 17:42   
GCC6 for OS3 here:

Unable to build much as it appears to have some header dependency issue - conflicting gettimeofday in sys/time.h when building libiconv, for example.
Chris Young   
2018-01-29 21:58   
gcc6 build fixed to the extent it now builds working binaries without include errors.

A couple of outstanding issues:
* gcc-ranlib does not delete - this needs to be deleted otherwise libtool tries to use it and it calls our old ranlib with an option that hadn't been invented back then. (rm command in makefile not working)
* locale_t needs fixing - this is a problem with the clib2 includes which Olaf is aware of. (quick fix is to addd typedef void* locale_t to wchar.h)
* openssl e_os.h tries to include netinet/tcp.h - this doesn't exist in clib2, looks like OpenSSL doesn't actually need anything from it anyway. (quick fix is to touch netinet/tcp.h)

Even with this new version of gcc, OpenSSL still doesn't work. New error message is:
curl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to

Issue History
2017-12-10 17:14Chris YoungNew Issue
2017-12-10 17:14Chris YoungStatusnew => assigned
2017-12-10 17:14Chris YoungAssigned To => Chris Young
2017-12-10 17:16Chris YoungStatusassigned => confirmed
2017-12-10 17:16Chris YoungNote Added: 0001694
2017-12-10 17:16Chris YoungRelationship addedrelated to 0002582
2017-12-10 23:24Chris YoungRelationship deletedrelated to 0002582
2017-12-11 22:31Chris YoungNote Added: 0001699
2018-01-12 12:41Chris YoungNote Added: 0001703
2018-01-27 17:42Chris YoungNote Added: 0001740
2018-01-29 21:58Chris YoungNote Added: 0001743