Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 604470 - net-mail/cyrus-imapd-2.5.10 [sieve] perl modules underlinked
Summary: net-mail/cyrus-imapd-2.5.10 [sieve] perl modules underlinked
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-03 00:36 UTC by Maciej S. Szmigiero
Modified: 2019-02-25 16:00 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
proposed patch (cyrus-sieve-libs.patch,2.16 KB, patch)
2017-01-03 00:37 UTC, Maciej S. Szmigiero
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Maciej S. Szmigiero 2017-01-03 00:36:57 UTC
If sieveshell is run an error about undefined symbol appears:
Can't load '/usr/lib64/perl5/vendor_perl/5.24.0/x86_64-linux-thread-multi/auto/Cyrus/SIEVE/managesieve/managesieve.so' for module Cyrus::SIEVE::managesieve: /usr/lib64/perl5/vendor_perl/5.24.0/x86_64-linux-thread-multi/auto/Cyrus/SIEVE/managesieve/managesieve.so: undefined symbol: sqlite3_open at /usr/lib64/perl5/5.24.0/x86_64-linux-thread-multi/DynaLoader.pm line 193.
 at /usr/bin/sieveshell line 66.
Compilation failed in require at /usr/bin/sieveshell line 66.
BEGIN failed--compilation aborted at /usr/bin/sieveshell line 66.

This is because managesieve perl module statically links in libcyrus.a, which
includes calls to SQLite in lib/cyrusdb_sql.c.

But this is not only a "sqlite" USE flag issue since this module also links in
statically libcyrus_min.a which includes calls to libpcre's posix module (in
lib/util.c).
Only because of bug #604466 this is currently linked (wrongly) to glibc instead.

Proposed, tested by me patch in an attachment.
Comment 1 Maciej S. Szmigiero 2017-01-03 00:37:37 UTC
Created attachment 458462 [details, diff]
proposed patch
Comment 2 Eray Aslan gentoo-dev 2017-05-09 09:45:44 UTC
Thanks for the patch.  Included in net-mail/cyrus-imapd-2.5.11-r1