Some modern distros (Mageia, Mandriva) use -no-undefined as a default linker flag for building software. However, undefined symbols are OK if the binary being linked is a plugin. To detect plugins, build system looks for presence of "-module" libtool flag in makefiles. There are two libraries in Pigeonhole that couldn't be linked with -no-undefined: src/lib-sieve/plugins/mailbox/libsieve_ext_mailbox.la src/lib-sieve/libdovecot-sieve.la These modules do contain undefined symbols, but they are not linked against library that provides them. It would be good if corresponding makefiles contained "-module" flags, so that build system could selectively turn off that -no-undefined linker flag. Please see proposed patch (attached). Thanks, Dimitri Mageia Linux packager -------------- next part -------------- A non-text attachment was scrubbed... Name: dovecot-2.1-pigeonhole-0.3.3-module.patch Type: text/x-patch Size: 686 bytes Desc: not available URL: <http://dovecot.org/pipermail/dovecot/attachments/20121223/d3be686b/attachment-0004.bin>
On 12/23/2012 2:36 AM, Dimitri wrote:> Some modern distros (Mageia, Mandriva) use -no-undefined as a default > linker flag for building software. However, undefined symbols are OK if > the binary being linked is a plugin. To detect plugins, build system > looks for presence of "-module" libtool flag in makefiles. > > There are two libraries in Pigeonhole that couldn't be linked with > -no-undefined: > > src/lib-sieve/plugins/mailbox/libsieve_ext_mailbox.la > src/lib-sieve/libdovecot-sieve.la > > These modules do contain undefined symbols, but they are not linked > against library that provides them. It would be good if corresponding > makefiles contained "-module" flags, so that build system could > selectively turn off that -no-undefined linker flag. Please see proposed > patch (attached).These are not plugins or modules. So this would likely be a bug. What version is this? Could you show me the errors? Any idea which libraries are missing? Regards, Stephan.