Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 878161 - net-mail/dovecot-2.3.19.1-r1: sieve plugin has missing symbols
Summary: net-mail/dovecot-2.3.19.1-r1: sieve plugin has missing symbols
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Eray Aslan
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2022-10-24 12:37 UTC by Jocelyn Mayer
Modified: 2022-10-24 14:39 UTC (History)
1 user (show)

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


Attachments
output from emerge --info =net-mail/dovecot-2.3.19.1-r1 (emerge-infos-dovecot,24.17 KB, text/plain)
2022-10-24 12:37 UTC, Jocelyn Mayer
Details
Patch to dovecot sieve plugin build system to link it against libdovecot-lda (dovecot-2.3.2.1-lda-sieve.patch,463 bytes, patch)
2022-10-24 12:42 UTC, Jocelyn Mayer
Details | Diff
Patch proposal to dovecot ebuild to apply dovecot sieve plugin patch (net-mail_dovecot_dovecot-2.3.19.1-r1.ebuild.patch,451 bytes, patch)
2022-10-24 12:43 UTC, Jocelyn Mayer
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jocelyn Mayer 2022-10-24 12:37:03 UTC
It's a long standing bug.
sieve-plugin library, ie lib90_sieve_plugin.so, has references on some symbols defined in libdovecot-lda.so but is not linked against this library:
ldd -d -r /usr/lib64/dovecot/lib90_sieve_plugin.so
        linux-vdso.so.1 (0x00007fff3176b000)
        libdovecot-sieve.so.0 => /usr/lib64/dovecot/libdovecot-sieve.so.0 (0x00007f453948a000)
        libc.so.6 => /lib64/libc.so.6 (0x00007f45392b7000)
        libdovecot-storage.so.0 => /usr/lib64/dovecot/libdovecot-storage.so.0 (0x00007f4539141000)
        libdovecot.so.0 => /usr/lib64/dovecot/libdovecot.so.0 (0x00007f4538f67000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f453956e000)
undefined symbol: mail_deliver_ctx_get_log_var_expand_table     (/usr/lib64/dovecot/lib90_sieve_plugin.so)
undefined symbol: mail_deliver_get_return_address       (/usr/lib64/dovecot/lib90_sieve_plugin.so)
undefined symbol: mail_send_rejection   (/usr/lib64/dovecot/lib90_sieve_plugin.so)
undefined symbol: mail_deliver_hook_set (/usr/lib64/dovecot/lib90_sieve_plugin.so)


Reproducible: Always

Steps to Reproduce:
1. Build dovecot with sieve support activated
2. Check the sieve-plugin library
3.
Actual Results:  
the sieve-plugin library have missing symbols which make use of this plugin fail

Expected Results:  
Sieve plugin is to be usable

A quiet simple patch can solve this issue
Comment 1 Jocelyn Mayer 2022-10-24 12:37:46 UTC
Created attachment 825179 [details]
output from emerge --info =net-mail/dovecot-2.3.19.1-r1
Comment 2 Jocelyn Mayer 2022-10-24 12:42:07 UTC
Created attachment 825181 [details, diff]
Patch to dovecot sieve plugin build system to link it against libdovecot-lda

Linking sieve plugin library against libdovecot-lda library fixes the issue
Comment 3 Jocelyn Mayer 2022-10-24 12:43:01 UTC
Created attachment 825183 [details, diff]
Patch proposal to dovecot ebuild to apply dovecot sieve plugin patch