[CONC-617] GNUTLs version since CONC-605 requires 3.4.2 Created: 2022-11-03  Updated: 2022-11-04

Status: Open
Project: MariaDB Connector/C
Component/s: None
Affects Version/s: 3.3, 3.1.17
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Daniel Black Assignee: Georg Richter
Resolution: Unresolved Votes: 0
Labels: None

Issue Links:
Problem/Incident
is caused by CONC-605 GnuTLS: disable sigpipe Closed

 Description   

CONC-605 started using GNUTLS_NO_SIGNAL

https://gitlab.com/gnutls/gnutls/-/blob/master/NEWS#L1782
so it got added to gnutls Version 3.4.2 (released 2015-06-16)

However in the CMakeList.txt "3.3.24" is listed as the required version.
https://github.com/mariadb-corporation/mariadb-connector-c/blob/3.3/CMakeLists.txt#L336



 Comments   
Comment by Georg Richter [ 2022-11-03 ]

Unfortunately we can't bump the required GNUTLS version number, since there are still non eoled enterprise versions which have older GNUTLS versions installed.

A workaround would be

cmake -DCMAKE_C_FLAGS=-DGNUTLS_NO_SIGNAL=0

or to fix in Source

#ifndef GNUTLS_NO_SIGNAL
#define GNUTLS_NO_SIGNAL 0
#endif

Comment by Daniel Black [ 2022-11-04 ]

I (well Vlad) only looked at Centos 7 which didn't have the prevous version. I haven't looked at gnutls packaged versions elsewhere.

The code fix looks like a good while older 3.3.34 is claimed to be sufficient in configure.

Maybe a cmake configure warning about no SIGPIPE protection for versions < 3.4.2 so packager/user is aware.

Generated at Thu Feb 08 03:06:36 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.