Summary: | dev-db/mariadb-10.5.17 fails to compile with dev-libs/libpcre2-10.41 (pcre2posix.h:147:47: error: expected initializer before pcre2_regcomp) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Agostino Sarubbo <ago> |
Component: | Current packages | Assignee: | Gentoo Linux MySQL bugs team <mysql-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | alexandref75, candrews, hydrapolic, soap, toralf, volkov, zeekec |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://github.com/PCRE2Project/pcre2/issues/173 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | build.log.xz |
Description
Agostino Sarubbo
![]() Created attachment 840641 [details]
build.log.xz
build log and emerge --info (compressed because it exceeds attachment limit, use 'xzless' to read it)
Error(s) that match a know pattern in addition to what has been reported in the summary: FAILED: client/CMakeFiles/mariadb-test.dir/mysqltest.cc.o -- Package 'heimdal-gssapi', required by 'virtual:world', not found -- Package 'heimdal-krb5', required by 'virtual:world', not found -- Package 'mit-krb5-gssapi', required by 'virtual:world', not found -- Package 'mit-krb5', required by 'virtual:world', not found /usr/include/pcre2posix.h:147:47: error: expected initializer before ‘pcre2_regcomp’ same for 10.6 slot *** Bug 884757 has been marked as a duplicate of this bug. *** My guess is this is dev-libs/libpcre2-10.41? (In reply to Sam James from comment #5) > My guess is this is dev-libs/libpcre2-10.41? I think this was broken by https://github.com/PCRE2Project/pcre2/commit/1f5e47b37f955758d39e3562b3b0571c391db81f. FAILED: client/CMakeFiles/mariadb-test.dir/mysqltest.cc.o /usr/bin/x86_64-pc-linux-gnu-g++ -DDBUG_TRACE -DHAVE_CONFIG_H -DHAVE_DLOPEN -DHAVE_OPENSSL -D_FILE_OFFSET_BITS=64 -Dmariadb_test_EXPORTS -I/var/tmp/portage/dev-db/mariadb-10.5.17/work/mysql/libmariadb/include -I/var/tmp/portage/dev-db/mariadb-10.5.17/work/mariadb-10.5.17_build/libmariadb/include -I/var/tmp/portage/dev-db/mariadb-10.5.17/work/mariadb-10.5.17_build/include -I/var/tmp/portage/dev-db/mariadb-10.5.17/work/mysql/include -I/var/tmp/portage/dev-db/mariadb-10.5.17/work/mysql/mysys_ssl -I/var/tmp/portage/dev-db/mariadb-10.5.17/work/mysql/sql -I/var/tmp/portage/dev-db/mariadb-10.5.17/work/mysql/strings -I/var/tmp/portage/dev-db/mariadb-10.5.17/work/mariadb-10.5.17_build/client -I/usr/include/readline -O2 -pipe -march=x86-64 -frecord-gcc-switches -fno-diagnostics-color -fmessage-length=0 -felide-constructors -fno-strict-aliasing -pie -fPIC -fstack-protector --param=ssp-buffer-size=4 -DNDEBUG -fno-omit-frame-pointer -D_FORTIFY_SOURCE=2 -DDBUG_OFF -Wall -Wenum-compare -Wenum-conversion -Wextra -Wformat-security -Wno-format-truncation -Wno-init-self -Wno-nonnull-compare -Wno-unused-parameter -Woverloaded-virtual -Wnon-virtual-dtor -Wvla -Wwrite-strings -std=gnu++11 -DTHREADS -MD -MT client/CMakeFiles/mariadb-test.dir/mysqltest.cc.o -MF client/CMakeFiles/mariadb-test.dir/mysqltest.cc.o.d -o client/CMakeFiles/mariadb-test.dir/mysqltest.cc.o -c /var/tmp/portage/dev-db/mariadb-10.5.17/work/mysql/client/mysqltest.cc In file included from /var/tmp/portage/dev-db/mariadb-10.5.17/work/mysql/client/mysqltest.cc:49: /usr/include/pcre2posix.h:147:47: error: expected initializer before ‘pcre2_regcomp’ 147 | PCRE2POSIX_EXP_DECL int PCRE2_CALL_CONVENTION pcre2_regcomp(regex_t *, const char *, int); | ^~~~~~~~~~~~~ /usr/include/pcre2posix.h:148:47: error: expected initializer before ‘pcre2_regexec’ 148 | PCRE2POSIX_EXP_DECL int PCRE2_CALL_CONVENTION pcre2_regexec(const regex_t *, const char *, size_t, | ^~~~~~~~~~~~~ /usr/include/pcre2posix.h:150:50: error: expected initializer before ‘pcre2_regerror’ 150 | PCRE2POSIX_EXP_DECL size_t PCRE2_CALL_CONVENTION pcre2_regerror(int, const regex_t *, char *, size_t); | ^~~~~~~~~~~~~~ /usr/include/pcre2posix.h:151:48: error: expected initializer before ‘pcre2_regfree’ 151 | PCRE2POSIX_EXP_DECL void PCRE2_CALL_CONVENTION pcre2_regfree(regex_t *); | ^~~~~~~~~~~~~ /var/tmp/portage/dev-db/mariadb-10.5.17/work/mysql/client/mysqltest.cc: In function ‘void check_regerr(regex_t*, int)’: /var/tmp/portage/dev-db/mariadb-10.5.17/work/mysql/client/mysqltest.cc:7389:5: error: ‘pcre2_regerror’ was not declared in this scope; did you mean ‘PCRE2regerror’? 7389 | regerror(err,r,err_buf,sizeof(err_buf)); | ^~~~~~~~ /var/tmp/portage/dev-db/mariadb-10.5.17/work/mysql/client/mysqltest.cc: In function ‘char* re_eprint(int)’: /var/tmp/portage/dev-db/mariadb-10.5.17/work/mysql/client/mysqltest.cc:9246:11: error: ‘pcre2_regerror’ was not declared in this scope; did you mean ‘PCRE2regerror’? 9246 | regerror(err, (regex_t *)NULL, epbuf, sizeof(epbuf)); | ^~~~~~~~ /var/tmp/portage/dev-db/mariadb-10.5.17/work/mysql/client/mysqltest.cc: In function ‘void init_re_comp(regex_t*, const char*)’: /var/tmp/portage/dev-db/mariadb-10.5.17/work/mysql/client/mysqltest.cc:9253:12: error: ‘pcre2_regcomp’ was not declared in this scope; did you mean ‘PCRE2regcomp’? 9253 | int err= regcomp(re, str, (REG_EXTENDED | REG_ICASE | REG_NOSUB | REG_DOTALL)); | ^~~~~~~ /var/tmp/portage/dev-db/mariadb-10.5.17/work/mysql/client/mysqltest.cc:9257:17: error: ‘pcre2_regerror’ was not declared in this scope; did you mean ‘PCRE2regerror’? 9257 | size_t len= regerror(err, re, erbuf, sizeof(erbuf)); | ^~~~~~~~ /var/tmp/portage/dev-db/mariadb-10.5.17/work/mysql/client/mysqltest.cc: In function ‘int match_re(regex_t*, char*)’: /var/tmp/portage/dev-db/mariadb-10.5.17/work/mysql/client/mysqltest.cc:9353:12: error: ‘pcre2_regexec’ was not declared in this scope; did you mean ‘PCRE2regexec’? 9353 | int err= regexec(re, str, (size_t)0, NULL, 0); | ^~~~~~~ /var/tmp/portage/dev-db/mariadb-10.5.17/work/mysql/client/mysqltest.cc:9362:17: error: ‘pcre2_regerror’ was not declared in this scope; did you mean ‘PCRE2regerror’? 9362 | size_t len= regerror(err, re, erbuf, sizeof(erbuf)); | ^~~~~~~~ /var/tmp/portage/dev-db/mariadb-10.5.17/work/mysql/client/mysqltest.cc: In function ‘void free_re()’: /var/tmp/portage/dev-db/mariadb-10.5.17/work/mysql/client/mysqltest.cc:9371:3: error: ‘pcre2_regfree’ was not declared in this scope; did you mean ‘PCRE2regfree’? 9371 | regfree(&ps_re); | ^~~~~~~ /var/tmp/portage/dev-db/mariadb-10.5.17/work/mysql/client/mysqltest.cc: In function ‘int reg_replace(char**, int*, char*, char*, char*, int)’: /var/tmp/portage/dev-db/mariadb-10.5.17/work/mysql/client/mysqltest.cc:10862:18: error: ‘pcre2_regcomp’ was not declared in this scope; did you mean ‘PCRE2regcomp’? 10862 | if ((err_code= regcomp(&r,pattern,cflags))) | ^~~~~~~ /var/tmp/portage/dev-db/mariadb-10.5.17/work/mysql/client/mysqltest.cc:10879:15: error: ‘pcre2_regexec’ was not declared in this scope; did you mean ‘PCRE2regexec’? 10879 | err_code= regexec(&r,str_p, r.re_nsub+1, subs, | ^~~~~~~ /var/tmp/portage/dev-db/mariadb-10.5.17/work/mysql/client/mysqltest.cc:10886:7: error: ‘pcre2_regfree’ was not declared in this scope; did you mean ‘PCRE2regfree’? 10886 | regfree(&r); | ^~~~~~~ /var/tmp/portage/dev-db/mariadb-10.5.17/work/mysql/client/mysqltest.cc:10999:3: error: ‘pcre2_regfree’ was not declared in this scope; did you mean ‘PCRE2regfree’? 10999 | regfree(&r); | ^~~~~~~ Issue fixed in commit: https://github.com/PCRE2Project/pcre2/commit/cd8dc40b901bdedf5bcc0b3acdd9eede16802f39 (In reply to Klemen Mihevc from comment #8) > Issue fixed in commit: > https://github.com/PCRE2Project/pcre2/commit/ > cd8dc40b901bdedf5bcc0b3acdd9eede16802f39 Thanks. Looking at the response on the bug I filed (given it asks some questions) was on my list for today, but that's even better. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d62e8e07a67cb63325f397de8b175be12c4857a6 commit d62e8e07a67cb63325f397de8b175be12c4857a6 Author: Sam James <sam@gentoo.org> AuthorDate: 2022-12-09 15:00:14 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-12-09 15:04:28 +0000 dev-libs/libpcre2: backport pcreposix header fix Closes: https://bugs.gentoo.org/884705 Signed-off-by: Sam James <sam@gentoo.org> .../files/libpcre2-10.41-pcre2posix-header.patch | 66 ++++++++++++++++++++++ ...pcre2-10.41.ebuild => libpcre2-10.41-r1.ebuild} | 1 + 2 files changed, 67 insertions(+) |