Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 374669 - net-mail/dovecot-2.0.13 imap_zlib undefined symbol
Summary: net-mail/dovecot-2.0.13 imap_zlib undefined symbol
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Eray Aslan
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-10 10:18 UTC by Johan Bergström
Modified: 2011-07-10 18:36 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Johan Bergström 2011-07-10 10:18:03 UTC
I'm using dovecot on a 32-bit box with USE="zlib", using a config in style with:

mail_plugins = zlib imap_zlib

protocol imap {
  mail_plugins = imap_zlib
}

..will give this error:
Jul  7 11:48:15 s.nu dovecot: lda: Error: dlopen(/usr/lib/dovecot/lib30_imap_zlib_plugin.so) failed: /usr/lib/dovecot/lib30_imap_zlib_plugin.so: undefined symbol: imap_module_register
Jul  7 11:48:15 s.nu dovecot: lda: Fatal: Couldn't load required plugins


compiling dovecot with clang (scan-build) gave me this possibly related warning:

*** Warning: Linking the shared library lib30_imap_zlib_plugin.la against the loadable module
*** lib20_zlib_plugin.so is not portable!
libtool: link: /usr/bin/ccc-analyzer -shared  -fPIC -DPIC  .libs/imap-zlib-plugin.o   -Wl,-rpath -Wl,/home/jbergstroem/dovecot-2.0.13/src/plugins/zlib/.libs -Wl,-rpath -Wl,/usr/lib/dovecot ../zlib/.libs/lib20_zlib_plugin.so -lrt  -O2   -Wl,-soname -Wl,lib30_imap_zlib_plugin.so -o .libs/lib30_imap_zlib_plugin.so


I've been in contact with upstream but no response yet.
Comment 1 Eray Aslan gentoo-dev 2011-07-10 11:30:06 UTC
(In reply to comment #0)
> mail_plugins = zlib imap_zlib
> 
> protocol imap {
>   mail_plugins = imap_zlib
> }

Try with:

mail_plugins = $mail_plugins zlib

plugin {
  zlib_save_level = 6 # 1..9
  zlib_save = gz # or bz2
}

protocol imap {
  mail_plugins = $mail_plugins imap_zlib
}

If it still does not work, please attach doveconf -n output, full build log and emerge --info.  Thank you.
Comment 2 Johan Bergström 2011-07-10 18:36:38 UTC
It was indeed a configuration error. Sorry for the noise :(