[Bug 1971547] Re: [SRU] cyradm fails on jammy
Dave Jones
1971547 at bugs.launchpad.net
Mon Jan 22 12:59:10 UTC 2024
Confirmed issue only exists on jammy (no later series need patching).
Patch looks reasonable and minimal for an SRU fix. Sponsoring (with
trivial fix to maintainer address in d/control now that the version
number includes an ubuntu component).
--
You received this bug notification because you are a member of Ubuntu
Sponsors, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1971547
Title:
[SRU] cyradm fails on jammy
Status in cyrus-imapd package in Ubuntu:
Fix Released
Status in cyrus-imapd source package in Jammy:
Confirmed
Bug description:
[ Impact ]
cyradm is completely unusable as it will fail with an error whenever
any user tries to run "cyradm".
$ cyradm
Can't load '/usr/lib/x86_64-linux-gnu/perl5/5.34/auto/Cyrus/IMAP/IMAP.so' for module Cyrus::IMAP: /usr/lib/x86_64-linux-gnu/perl5/5.34/auto/Cyrus/IMAP/IMAP.so: undefined symbol: pcreposix_regexec at /usr/lib/x86_64-linux-gnu/perl-base/DynaLoader.pm line 187.
at /usr/lib/x86_64-linux-gnu/perl5/5.34/Cyrus/IMAP/Admin.pm line 43.
Compilation failed in require at /usr/lib/x86_64-linux-gnu/perl5/5.34/Cyrus/IMAP/Admin.pm line 43.
BEGIN failed--compilation aborted at /usr/lib/x86_64-linux-gnu/perl5/5.34/Cyrus/IMAP/Admin.pm line 43.
Compilation failed in require at /usr/lib/x86_64-linux-gnu/perl5/5.34/Cyrus/IMAP/Shell.pm line 59.
BEGIN failed--compilation aborted at /usr/lib/x86_64-linux-gnu/perl5/5.34/Cyrus/IMAP/Shell.pm line 59.
Compilation failed in require at /usr/bin/cyradm line 66.
BEGIN failed--compilation aborted at /usr/bin/cyradm line 66.
[ Test Plan ]
* Execute "cyradm"
* if its not fixed then it will fail as the error above
* With fixed package we will reach the "cyradm" prompt as shown below:
$ cyradm
cyradm>
[ Where problems could occur ]
There was no change in the code or build dependencies. The only change is in the Makefile to explicitely link IMAP.so with libpcre3 so that Perl Dynaloader does not try to find the symbols from the latest libpcre2.
Its already completely unusable, the chances of regression more than "completely unusable" are very less.
[ Other Info ]
Upstream has added changes to support latest libpcre2 but the diff of
the patches to add the support is already big and on top of that it
will need 2 more fixes. So the total diff and also the fact that it
will then change the dependencies and will start using a new library
was (imho) inappropriate for SRU.
[ Original Bug Description ]
Running cyradm fails:
root at imap ~# cyradm 127.0.0.1
Can't load '/usr/lib/x86_64-linux-gnu/perl5/5.34/auto/Cyrus/IMAP/IMAP.so' for module Cyrus::IMAP: /usr/lib/x86_64-linux-gnu/perl5/5.34/auto/Cyrus/IMAP/IMAP.so: undefined symbol: pcreposix_regexec at /usr/lib/x86_64-linux-gnu/perl-base/DynaLoader.pm line 187.
at /usr/lib/x86_64-linux-gnu/perl5/5.34/Cyrus/IMAP/Admin.pm line 43.
Compilation failed in require at /usr/lib/x86_64-linux-gnu/perl5/5.34/Cyrus/IMAP/Admin.pm line 43.
BEGIN failed--compilation aborted at /usr/lib/x86_64-linux-gnu/perl5/5.34/Cyrus/IMAP/Admin.pm line 43.
Compilation failed in require at /usr/lib/x86_64-linux-gnu/perl5/5.34/Cyrus/IMAP/Shell.pm line 59.
BEGIN failed--compilation aborted at /usr/lib/x86_64-linux-gnu/perl5/5.34/Cyrus/IMAP/Shell.pm line 59.
Compilation failed in require at /usr/bin/cyradm line 66.
BEGIN failed--compilation aborted at /usr/bin/cyradm line 66.
I think this is due to an imcompatibility between versions of libpcre,
out of my depth commenting further but there's a discussion here:
https://www.spinics.net/lists/info-cyrus/msg20361.html reporting the
problem in Debian Testing. I have a Debian Bullseye Cyrus IMAP server
which works fine.
I have:
root at imap ~# dpkg -l | grep pcre
ii libpcre2-32-0:amd64 10.39-3build1 amd64 New Perl Compatible Regular Expression Library - 32 bit runtime files
ii libpcre2-8-0:amd64 10.39-3build1 amd64 New Perl Compatible Regular Expression Library- 8 bit runtime files
ii libpcre3:amd64 2:8.39-13build5 amd64 Old Perl 5 Compatible Regular Expression Library - runtime files
This is a fresh install of 22.04 with little else installed but:
root at imap ~# dpkg -l | grep cyrus
ii cyrus-admin 3.4.3-3build2 amd64 Cyrus mail system - administration tools
ii cyrus-caldav 3.4.3-3build2 amd64 Cyrus mail system - CalDAV and CardDAV support
ii cyrus-clients 3.4.3-3build2 amd64 Cyrus mail system - test clients
ii cyrus-common 3.4.3-3build2 amd64 Cyrus mail system - common files
ii cyrus-imapd 3.4.3-3build2 amd64 Cyrus mail system - IMAP support
ii libcyrus-imap-perl:amd64 3.4.3-3build2 amd64 Interface to Cyrus imap client imclient library
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cyrus-imapd/+bug/1971547/+subscriptions
More information about the Ubuntu-sponsors
mailing list