[Dovecot] Missing ACLOCAL_AMFLAGS ?
dovecot-2.0.5 autoreconf is failing with: [1] $ autoreconf -f -i [...] src/plugins/acl/Makefile.am:11: `module_LTLIBRARIES' is used but `moduledir' is undefined [...] autoreconf-2.65: automake failed with exit status: 1 Also, $ ./configure --help | grep module --with-nss Build with NSS module support (auto) In other words, no moduledir output in configure --help. Looks like dovecot.m4 is not being read. With the patch below: --- Makefile.am | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/Makefile.am b/Makefile.am index d037258..49514e4 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,3 +1,4 @@ +ACLOCAL_AMFLAGS = -I . aclocaldir = $(datadir)/aclocal SUBDIRS = \ --- I get moduledir option in configure and working autoreconf. -- Eray [1]: libtoolize: putting auxiliary files in `.'. libtoolize: copying file `./ltmain.sh' libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.in and libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree. libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am. src/plugins/acl/Makefile.am:11: `module_LTLIBRARIES' is used but `moduledir' is undefined src/plugins/acl/Makefile.am:14: variable `lib01_acl_plugin_la_SOURCES' is defined but no program or src/plugins/acl/Makefile.am:14: library has `lib01_acl_plugin_la' as canonical name (possible typo) src/plugins/acl/Makefile.am:9: variable `lib01_acl_plugin_la_LDFLAGS' is defined but no program or src/plugins/acl/Makefile.am:9: library has `lib01_acl_plugin_la' as canonical name (possible typo) src/plugins/autocreate/Makefile.am:9: `module_LTLIBRARIES' is used but `moduledir' is undefined src/plugins/autocreate/Makefile.am:12: variable `lib20_autocreate_plugin_la_SOURCES' is defined but no program or src/plugins/autocreate/Makefile.am:12: library has `lib20_autocreate_plugin_la' as canonical name (possible typo) src/plugins/autocreate/Makefile.am:7: variable `lib20_autocreate_plugin_la_LDFLAGS' is defined but no program or src/plugins/autocreate/Makefile.am:7: library has `lib20_autocreate_plugin_la' as canonical name (possible typo) src/plugins/expire/Makefile.am:19: `module_LTLIBRARIES' is used but `moduledir' is undefined src/plugins/expire/Makefile.am:22: variable `lib20_expire_plugin_la_SOURCES' is defined but no program or src/plugins/expire/Makefile.am:22: library has `lib20_expire_plugin_la' as canonical name (possible typo) src/plugins/expire/Makefile.am:17: variable `lib20_expire_plugin_la_LDFLAGS' is defined but no program or src/plugins/expire/Makefile.am:17: library has `lib20_expire_plugin_la' as canonical name (possible typo) src/plugins/fts-lucene/Makefile.am:11: `module_LTLIBRARIES' is used but `moduledir' is undefined src/plugins/fts-lucene/Makefile.am:17: variable `lib21_fts_lucene_plugin_la_SOURCES' is defined but no program or src/plugins/fts-lucene/Makefile.am:17: library has `lib21_fts_lucene_plugin_la' as canonical name (possible typo) src/plugins/fts-lucene/Makefile.am:14: variable `lib21_fts_lucene_plugin_la_LIBADD' is defined but no program or src/plugins/fts-lucene/Makefile.am:14: library has `lib21_fts_lucene_plugin_la' as canonical name (possible typo) src/plugins/fts-lucene/Makefile.am:9: variable `lib21_fts_lucene_plugin_la_LDFLAGS' is defined but no program or src/plugins/fts-lucene/Makefile.am:9: library has `lib21_fts_lucene_plugin_la' as canonical name (possible typo) src/plugins/fts-solr/Makefile.am:14: DOVECOT_PLUGIN_DEPS does not appear in AM_CONDITIONAL src/plugins/fts-solr/Makefile.am:11: `module_LTLIBRARIES' is used but `moduledir' is undefined src/plugins/fts-solr/Makefile.am:22: variable `lib21_fts_solr_plugin_la_SOURCES' is defined but no program or src/plugins/fts-solr/Makefile.am:22: library has `lib21_fts_solr_plugin_la' as canonical name (possible typo) src/plugins/fts-solr/Makefile.am:18: variable `lib21_fts_solr_plugin_la_LIBADD' is defined but no program or src/plugins/fts-solr/Makefile.am:18: library has `lib21_fts_solr_plugin_la' as canonical name (possible typo) src/plugins/fts-solr/Makefile.am:9: variable `lib21_fts_solr_plugin_la_LDFLAGS' is defined but no program or src/plugins/fts-solr/Makefile.am:9: library has `lib21_fts_solr_plugin_la' as canonical name (possible typo) src/plugins/fts-squat/Makefile.am:13: DOVECOT_PLUGIN_DEPS does not appear in AM_CONDITIONAL src/plugins/fts-squat/Makefile.am:10: `module_LTLIBRARIES' is used but `moduledir' is undefined src/plugins/fts-squat/Makefile.am:18: variable `lib21_fts_squat_plugin_la_SOURCES' is defined but no program or src/plugins/fts-squat/Makefile.am:18: library has `lib21_fts_squat_plugin_la' as canonical name (possible typo) src/plugins/fts-squat/Makefile.am:14: variable `lib21_fts_squat_plugin_la_LIBADD' is defined but no program or src/plugins/fts-squat/Makefile.am:14: library has `lib21_fts_squat_plugin_la' as canonical name (possible typo) src/plugins/fts-squat/Makefile.am:8: variable `lib21_fts_squat_plugin_la_LDFLAGS' is defined but no program or src/plugins/fts-squat/Makefile.am:8: library has `lib21_fts_squat_plugin_la' as canonical name (possible typo) src/plugins/fts/Makefile.am:10: `module_LTLIBRARIES' is used but `moduledir' is undefined src/plugins/fts/Makefile.am:13: variable `lib20_fts_plugin_la_SOURCES' is defined but no program or src/plugins/fts/Makefile.am:13: library has `lib20_fts_plugin_la' as canonical name (possible typo) src/plugins/fts/Makefile.am:8: variable `lib20_fts_plugin_la_LDFLAGS' is defined but no program or src/plugins/fts/Makefile.am:8: library has `lib20_fts_plugin_la' as canonical name (possible typo) src/plugins/imap-acl/Makefile.am:17: DOVECOT_PLUGIN_DEPS does not appear in AM_CONDITIONAL src/plugins/imap-quota/Makefile.am:16: DOVECOT_PLUGIN_DEPS does not appear in AM_CONDITIONAL src/plugins/imap-zlib/Makefile.am:17: DOVECOT_PLUGIN_DEPS does not appear in AM_CONDITIONAL src/plugins/lazy-expunge/Makefile.am:13: `module_LTLIBRARIES' is used but `moduledir' is undefined src/plugins/lazy-expunge/Makefile.am:16: variable `lib02_lazy_expunge_plugin_la_SOURCES' is defined but no program or src/plugins/lazy-expunge/Makefile.am:16: library has `lib02_lazy_expunge_plugin_la' as canonical name (possible typo) src/plugins/lazy-expunge/Makefile.am:11: variable `lib02_lazy_expunge_plugin_la_LDFLAGS' is defined but no program or src/plugins/lazy-expunge/Makefile.am:11: library has `lib02_lazy_expunge_plugin_la' as canonical name (possible typo) src/plugins/listescape/Makefile.am:10: `module_LTLIBRARIES' is used but `moduledir' is undefined src/plugins/listescape/Makefile.am:13: variable `lib20_listescape_plugin_la_SOURCES' is defined but no program or src/plugins/listescape/Makefile.am:13: library has `lib20_listescape_plugin_la' as canonical name (possible typo) src/plugins/listescape/Makefile.am:8: variable `lib20_listescape_plugin_la_LDFLAGS' is defined but no program or src/plugins/listescape/Makefile.am:8: library has `lib20_listescape_plugin_la' as canonical name (possible typo) src/plugins/mail-log/Makefile.am:16: DOVECOT_PLUGIN_DEPS does not appear in AM_CONDITIONAL src/plugins/mail-log/Makefile.am:13: `module_LTLIBRARIES' is used but `moduledir' is undefined src/plugins/mail-log/Makefile.am:21: variable `lib20_mail_log_plugin_la_SOURCES' is defined but no program or src/plugins/mail-log/Makefile.am:21: library has `lib20_mail_log_plugin_la' as canonical name (possible typo) src/plugins/mail-log/Makefile.am:17: variable `lib20_mail_log_plugin_la_LIBADD' is defined but no program or src/plugins/mail-log/Makefile.am:17: library has `lib20_mail_log_plugin_la' as canonical name (possible typo) src/plugins/mail-log/Makefile.am:11: variable `lib20_mail_log_plugin_la_LDFLAGS' is defined but no program or src/plugins/mail-log/Makefile.am:11: library has `lib20_mail_log_plugin_la' as canonical name (possible typo) src/plugins/mbox-snarf/Makefile.am:9: `module_LTLIBRARIES' is used but `moduledir' is undefined src/plugins/mbox-snarf/Makefile.am:12: variable `lib20_mbox_snarf_plugin_la_SOURCES' is defined but no program or src/plugins/mbox-snarf/Makefile.am:12: library has `lib20_mbox_snarf_plugin_la' as canonical name (possible typo) src/plugins/mbox-snarf/Makefile.am:7: variable `lib20_mbox_snarf_plugin_la_LDFLAGS' is defined but no program or src/plugins/mbox-snarf/Makefile.am:7: library has `lib20_mbox_snarf_plugin_la' as canonical name (possible typo) src/plugins/notify/Makefile.am:12: `module_LTLIBRARIES' is used but `moduledir' is undefined src/plugins/notify/Makefile.am:15: variable `lib15_notify_plugin_la_SOURCES' is defined but no program or src/plugins/notify/Makefile.am:15: library has `lib15_notify_plugin_la' as canonical name (possible typo) src/plugins/notify/Makefile.am:10: variable `lib15_notify_plugin_la_LDFLAGS' is defined but no program or src/plugins/notify/Makefile.am:10: library has `lib15_notify_plugin_la' as canonical name (possible typo) src/plugins/quota/Makefile.am:16: `module_LTLIBRARIES' is used but `moduledir' is undefined src/plugins/quota/Makefile.am:30: variable `nodist_lib10_quota_plugin_la_SOURCES' is defined but no program or src/plugins/quota/Makefile.am:30: library has `lib10_quota_plugin_la' as canonical name (possible typo) src/plugins/quota/Makefile.am:29: variable `lib10_quota_plugin_la_SOURCES' is defined but no program or src/plugins/quota/Makefile.am:29: library has `lib10_quota_plugin_la' as canonical name (possible typo) src/plugins/quota/Makefile.am:14: variable `lib10_quota_plugin_la_LDFLAGS' is defined but no program or src/plugins/quota/Makefile.am:14: library has `lib10_quota_plugin_la' as canonical name (possible typo) src/plugins/trash/Makefile.am:13: DOVECOT_PLUGIN_DEPS does not appear in AM_CONDITIONAL src/plugins/trash/Makefile.am:10: `module_LTLIBRARIES' is used but `moduledir' is undefined src/plugins/trash/Makefile.am:18: variable `lib11_trash_plugin_la_SOURCES' is defined but no program or src/plugins/trash/Makefile.am:18: library has `lib11_trash_plugin_la' as canonical name (possible typo) src/plugins/trash/Makefile.am:14: variable `lib11_trash_plugin_la_LIBADD' is defined but no program or src/plugins/trash/Makefile.am:14: library has `lib11_trash_plugin_la' as canonical name (possible typo) src/plugins/trash/Makefile.am:8: variable `lib11_trash_plugin_la_LDFLAGS' is defined but no program or src/plugins/trash/Makefile.am:8: library has `lib11_trash_plugin_la' as canonical name (possible typo) src/plugins/virtual/Makefile.am:11: `module_LTLIBRARIES' is used but `moduledir' is undefined src/plugins/virtual/Makefile.am:14: variable `lib20_virtual_plugin_la_SOURCES' is defined but no program or src/plugins/virtual/Makefile.am:14: library has `lib20_virtual_plugin_la' as canonical name (possible typo) src/plugins/virtual/Makefile.am:9: variable `lib20_virtual_plugin_la_LDFLAGS' is defined but no program or src/plugins/virtual/Makefile.am:9: library has `lib20_virtual_plugin_la' as canonical name (possible typo) src/plugins/zlib/Makefile.am:11: `module_LTLIBRARIES' is used but `moduledir' is undefined src/plugins/zlib/Makefile.am:24: variable `lib20_zlib_plugin_la_SOURCES' is defined but no program or src/plugins/zlib/Makefile.am:24: library has `lib20_zlib_plugin_la' as canonical name (possible typo) src/plugins/zlib/Makefile.am:21: variable `lib20_zlib_plugin_la_LIBADD' is defined but no program or src/plugins/zlib/Makefile.am:21: library has `lib20_zlib_plugin_la' as canonical name (possible typo) src/plugins/zlib/Makefile.am:9: variable `lib20_zlib_plugin_la_LDFLAGS' is defined but no program or src/plugins/zlib/Makefile.am:9: library has `lib20_zlib_plugin_la' as canonical name (possible typo) autoreconf-2.65: automake failed with exit status: 1
On Wed, 2010-10-13 at 22:08 +0300, Eray Aslan wrote:
In other words, no moduledir output in configure --help. Looks like dovecot.m4 is not being read. With the patch below:
+ACLOCAL_AMFLAGS = -I .
I get moduledir option in configure and working autoreconf.
Unfortunately ACLOCAL_AMFLAGS gives an error with the automake version in RHEL, so I can't do that. autogen.sh (which you should be using) does it by setting ACLOCAL environment.
On 14.10.2010 17:29, Timo Sirainen wrote:
Unfortunately ACLOCAL_AMFLAGS gives an error with the automake version in RHEL
Thats's a bug in RHEL then but fine.
so I can't do that. autogen.sh (which you should be using)
I am using shipped tarballs which do not contain autogen.sh
does it by setting ACLOCAL environment.
which is more of a hack than anything else. Besides, I'd rather not force our users to autogen.sh if possible.
I am not fond of ACLOCAL_AMFLAGS as well but it will get the work done for now. Thanks anyway.
Eray
On Thu, 2010-10-14 at 19:05 +0300, Eray Aslan wrote:
On 14.10.2010 17:29, Timo Sirainen wrote:
Unfortunately ACLOCAL_AMFLAGS gives an error with the automake version in RHEL
Thats's a bug in RHEL then but fine.
Not a bug, just an old automake version. Unless you consider that a bug :)
so I can't do that. autogen.sh (which you should be using)
I am using shipped tarballs which do not contain autogen.sh
Why are you regenerating the files? Are you patching configure/Makefile.am? Why?
On 14.10.2010 19:14, Timo Sirainen wrote:
Why are you regenerating the files? Are you patching configure/Makefile.am? Why?
Dovecot tests has automagic dependency on valgrind which might fail on unsopported CPUs (with SSE4a instructions for example) which results in unpredictible and unreproducible test results.
So I need to patch Makefile.am to make valgrind optional and/or to take it out.
Eray
On Thu, 2010-10-14 at 20:40 +0300, Eray Aslan wrote:
On 14.10.2010 19:14, Timo Sirainen wrote:
Why are you regenerating the files? Are you patching configure/Makefile.am? Why?
Dovecot tests has automagic dependency on valgrind which might fail on unsopported CPUs (with SSE4a instructions for example) which results in unpredictible and unreproducible test results.
So I need to patch Makefile.am to make valgrind optional and/or to take it out.
Can't you just make it run:
VALGRIND=no ./configure
participants (2)
-
Eray Aslan
-
Timo Sirainen