Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 286368 - net-mail/dovecot-1.2.4: ldap USE flag breaks dovecot
Summary: net-mail/dovecot-1.2.4: ldap USE flag breaks dovecot
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High critical (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2009-09-25 06:56 UTC by Igor Novgorodov
Modified: 2009-10-06 14:50 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 Igor Novgorodov 2009-09-25 06:56:51 UTC
When emerged with USE=ldap, dovecot fails to load LDAP plugin, it works it this plugin isn't used, and dies if it is.

Sep 25 10:30:16 mail dovecot: Dovecot v1.2.4 starting up (core dumps disabled)
Sep 25 10:30:16 mail dovecot: auth(default): dlopen(/usr/lib64/dovecot/auth/libauthdb_ldap.so) failed: /usr/lib64/dovecot/auth/libauthdb_ldap.so: undefined symbol: null_settings_section_callback
Sep 25 10:30:16 mail dovecot: auth(default): dlopen(/usr/lib64/dovecot/auth/libauthdb_ldap.so) failed: /usr/lib64/dovecot/auth/libauthdb_ldap.so: undefined symbol: null_settings_section_callback
Sep 25 10:30:16 mail dovecot: auth(default): dlopen(/usr/lib64/dovecot/auth/libauthdb_ldap.so) failed: /usr/lib64/dovecot/auth/libauthdb_ldap.so: undefined symbol: null_settings_section_callback
Sep 25 10:30:16 mail dovecot: auth(default): dlopen(/usr/lib64/dovecot/auth/libauthdb_ldap.so) failed: /usr/lib64/dovecot/auth/libauthdb_ldap.so: undefined symbol: null_settings_section_callback
Sep 25 10:30:16 mail dovecot: auth(default): dlopen(/usr/lib64/dovecot/auth/libauthdb_ldap.so) failed: /usr/lib64/dovecot/auth/libauthdb_ldap.so: undefined symbol: null_settings_section_callback
Sep 25 10:30:16 mail dovecot: auth(default): dlopen(/usr/lib64/dovecot/auth/libauthdb_ldap.so) failed: /usr/lib64/dovecot/auth/libauthdb_ldap.so: undefined symbol: null_settings_section_callback
Sep 25 10:30:16 mail dovecot: auth(default): dlopen(/usr/lib64/dovecot/auth/libauthdb_ldap.so) failed: /usr/lib64/dovecot/auth/libauthdb_ldap.so: undefined symbol: null_settings_section_callback
Sep 25 10:30:16 mail dovecot: auth(master): dlopen(/usr/lib64/dovecot/auth/libauthdb_ldap.so) failed: /usr/lib64/dovecot/auth/libauthdb_ldap.so: undefined symbol: null_settings_section_callback
Sep 25 10:30:16 mail dovecot: auth-worker(default): dlopen(/usr/lib64/dovecot/auth/libauthdb_ldap.so) failed: /usr/lib64/dovecot/auth/libauthdb_ldap.so: undefined symbol: null_settings_section_callback
Sep 25 10:30:16 mail dovecot: auth(default): dlopen(/usr/lib64/dovecot/auth/libauthdb_ldap.so) failed: /usr/lib64/dovecot/auth/libauthdb_ldap.so: undefined symbol: null_settings_section_callback
Sep 25 10:30:16 mail dovecot: auth-worker(default): dlopen(/usr/lib64/dovecot/auth/libauthdb_ldap.so) failed: /usr/lib64/dovecot/auth/libauthdb_ldap.so: undefined symbol: null_settings_section_callback
Sep 25 10:30:16 mail dovecot: auth-worker(default): dlopen(/usr/lib64/dovecot/auth/libauthdb_ldap.so) failed: /usr/lib64/dovecot/auth/libauthdb_ldap.so: undefined symbol: null_settings_section_callback
Sep 25 10:30:16 mail dovecot: auth-worker(default): dlopen(/usr/lib64/dovecot/auth/libauthdb_ldap.so) failed: /usr/lib64/dovecot/auth/libauthdb_ldap.so: undefined symbol: null_settings_section_callback
Sep 25 10:30:16 mail dovecot: auth-worker(default): dlopen(/usr/lib64/dovecot/auth/libauthdb_ldap.so) failed: /usr/lib64/dovecot/auth/libauthdb_ldap.so: undefined symbol: null_settings_section_callback
Sep 25 10:30:16 mail dovecot: auth-worker(master): dlopen(/usr/lib64/dovecot/auth/libauthdb_ldap.so) failed: /usr/lib64/dovecot/auth/libauthdb_ldap.so: undefined symbol: null_settings_section_callback
Sep 25 10:30:16 mail dovecot: auth-worker(default): dlopen(/usr/lib64/dovecot/auth/libauthdb_ldap.so) failed: /usr/lib64/dovecot/auth/libauthdb_ldap.so: undefined symbol: null_settings_section_callback
Sep 25 10:30:16 mail dovecot: auth-worker(default): dlopen(/usr/lib64/dovecot/auth/libauthdb_ldap.so) failed: /usr/lib64/dovecot/auth/libauthdb_ldap.so: undefined symbol: null_settings_section_callback
Sep 25 10:30:16 mail dovecot: auth-worker(default): dlopen(/usr/lib64/dovecot/auth/libauthdb_ldap.so) failed: /usr/lib64/dovecot/auth/libauthdb_ldap.so: undefined symbol: null_settings_section_callback


Reproducible: Always
Comment 1 David Williams 2009-10-05 09:30:26 UTC
In the ebuild Dovecot is configured using --with-ldap=plugin changing it to just --with-ldap  should solve the problem. I experimented with building Dovecot from sources before the ebuild was published and had the same problem. 

I saw an article somewhere on the dovecot site saying that =plugin is for distributing binary packages with the ldap libraries in a separate package, so perhaps the ldap libraries made by =plugin are just stubs. Unless there is a clever way of configuring the ldap support that I couldn't find;). However using the --with-ldap option seems the simplest way as then it just works!

BTW A similar problem may exist with sql support as that is configured the same way.

Comment 2 Tomáš Chvátal (RETIRED) gentoo-dev 2009-10-06 14:50:22 UTC
Fix added into cvs. Worked for me.