[CONCPP-68] Disable build with gcc < 4.9 Created: 2021-02-11  Updated: 2021-07-06  Resolved: 2021-02-11

Status: Closed
Project: MariaDB Connector/C++
Component/s: General
Affects Version/s: 0.9.4
Fix Version/s: 1.0.0

Type: Bug Priority: Major
Reporter: Lawrin Novitsky Assignee: Lawrin Novitsky
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Blocks
is blocked by CONCPP-87 Connector/C++ causes segfault in GCC ... Closed

 Description   

Connector uses std::regex to some extent. The support of std::regex comes with gcc version 4.9. With version 4.8 connector can be compiled but is not usable, as first use of regex leads to program termination.

Thus cmake script should be changed to exit with descriptive error, if detected gcc version is <4.9

Seemingly, sles12 and centos7 has gcc 4.8 as a default toolchain, an to build on those platforms apparently gcc upgrade is required



 Comments   
Comment by Lawrin Novitsky [ 2021-02-11 ]

Commit 6003e95. Added to cmake check of gcc version

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