Community Packages

Please read this before reporting a bug:

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!

FS#78514 - [cyrus-imapd] Undefined symbol: pcre2_regexec

Attached to Project: Community Packages
Opened by Giovanni Bottaro (bgiovanni) - Saturday, 13 May 2023, 20:33 GMT
Last edited by Torsten Keßler (tpkessler) - Sunday, 03 September 2023, 08:26 GMT
Task Type Bug Report
Category Packages: Testing
Status Closed
Assigned To Bruno Pagani (ArchangeGabriel)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


It seems like the /usr/lib/perl5/5.36/vendor_perl/auto/Cyrus/IMAP/ shared object, which is used by the cyradm administration tool, is missing linking against the pcre2 library and as a result causes invocations of cyradm to error out as follows:
[waw@archlinux cyrus_PKGBUILD]$ cyradm
Can't load '/usr/lib/perl5/5.36/vendor_perl/auto/Cyrus/IMAP/' for module Cyrus::IMAP: /usr/lib/perl5/5.36/vendor_perl/auto/Cyrus/IMAP/ undefined symbol: pcre2_regexec at /usr/lib/perl5/5.36/core_perl/ line 206.
at /usr/lib/perl5/5.36/vendor_perl/Cyrus/IMAP/ line 43.
Compilation failed in require at /usr/lib/perl5/5.36/vendor_perl/Cyrus/IMAP/ line 43.
BEGIN failed--compilation aborted at /usr/lib/perl5/5.36/vendor_perl/Cyrus/IMAP/ line 43.
Compilation failed in require at /usr/lib/perl5/5.36/vendor_perl/Cyrus/IMAP/ line 59.
BEGIN failed--compilation aborted at /usr/lib/perl5/5.36/vendor_perl/Cyrus/IMAP/ line 59.
Compilation failed in require at /usr/bin/vendor_perl/cyradm line 66.
BEGIN failed--compilation aborted at /usr/bin/vendor_perl/cyradm line 66.

Additional info:
* package version(s) : 3.6.1-1
* link to upstream bug report, if any:
--> Note that this patch is for the old pcre library, since Arch is looking forward to use pcre2 this should be taken into account. (We probably should use "-lpcre2-posix" instead)

Steps to reproduce:
Install cyrus-imapd from community-testing, execute cyradm, the error message mentioned above pops out.

--> !!! I've personally verified that applying the patch Fedora is using actually solves the issue! !!!
This task depends upon

Closed by  Torsten Keßler (tpkessler)
Sunday, 03 September 2023, 08:26 GMT
Reason for closing:  Won't fix
Additional comments about closing:  Package is currently not in the repos.
Comment by loqs (loqs) - Sunday, 30 July 2023, 13:18 GMT
@bgiovanni can you please try building with the attached patch which is based on the Fedora one but uses the variable LIB_REGEX, so it should work with or without the pcre2 patch and also with new pcre2 PR [1].

Comment by Giovanni Bottaro (bgiovanni) - Sunday, 30 July 2023, 19:10 GMT
@loqs I can confirm that the issue doesn't appear if I build Cyrus from master (after minor tweaking of the PKGBUILD) with both your patch and the the PCRE2 patch you linked (#4545).
cyradm is seemingly running OK.