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.
Created attachment 458462 [details, diff] proposed patch
Thanks for the patch. Included in net-mail/cyrus-imapd-2.5.11-r1