[MDEV-30195] BUILD: client/mysqltest.cc does not compile with PCRE2-10.41 headers Created: 2022-12-11  Updated: 2022-12-13  Resolved: 2022-12-13

Status: Closed
Project: MariaDB Server
Component/s: Compiling
Affects Version/s: 10.6.11, 10.11.1
Fix Version/s: N/A

Type: Bug Priority: Major
Reporter: David Bohman Assignee: Daniel Black
Resolution: Not a Bug Votes: 0
Labels: None
Environment:

PCRE2-10.41



 Description   

This is the recently released version of PCRE2. This appears to be a latent bug in this one source file.

diff -u -r1.1 client/mysqltest.cc
--- client/mysqltest.cc	2022/12/11 01:47:35	1.1
+++ client/mysqltest.cc	2022/12/11 02:17:48
@@ -46,6 +46,7 @@
 #include <stdarg.h>
 #include <violite.h>
 #define PCRE2_STATIC 1  /* Important on Windows */
+#include "pcre2.h"
 #include "pcre2posix.h" /* pcreposix regex library */
 #ifdef HAVE_SYS_WAIT_H
 #include <sys/wait.h>



 Comments   
Comment by David Bohman [ 2022-12-11 ]

Other uses of PCRE2 within the project build without error. This one causes the build to fail.

Comment by David Bohman [ 2022-12-12 ]

I have verified that the issue also affects 10.6.11. It likely affects other releases, too.

Comment by David Bohman [ 2022-12-12 ]

Looks like it has been fixed upstream, I will verify.

Comment by David Bohman [ 2022-12-12 ]

Fixed by PCRE2-10.42.

Comment by Daniel Black [ 2022-12-13 ]

Given that 10.42 seems to be an emergency release to fix this, and the previous one was 6 days ago. I don't think there's anything left to do apart from hope distros pick up the newer one and leave 10.41 alone.

Thanks for verifying the upstream fix.

Comment by Daniel Black [ 2022-12-13 ]

(not our bug)

Generated at Thu Feb 08 10:14:25 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.