[Dovecot] 2.2.4 + metadata plugin: autoconf failed
Hello,
(had disabled maildelivery for the list, so I can't reply) I changed the minimal version from 2.65 to 2.59
then I run ./autogen.sh && ./configure --foo ...
sles9: (autoconf-2.59)
- cd dovecot-metadata-plugin-2a17386d4dbc
- ./autogen.sh
- creating m4/ ...
- running autoreconf ... configure.ac:13: error: possibly undefined macro: AC_PROG_CC_C99 If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. autoreconf: /usr/bin/autoconf failed with exit status: 1
sles10: (autoconf-2.59)
- cd dovecot-metadata-plugin-2a17386d4dbc
- ./autogen.sh
- creating m4/ ...
- running autoreconf ... configure.ac:13: error: possibly undefined macro: AC_PROG_CC_C99 If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. autoreconf: /usr/bin/autoconf failed with exit status: 1
sles11: (autoconf-2.63)
- cd dovecot-metadata-plugin-2a17386d4dbc
- ./autogen.sh
- creating m4/ ...
- running autoreconf ...
libtoolize: putting auxiliary files in
.'. libtoolize: copying file
./ltmain.sh' libtoolize: putting macros in AC_CONFIG_MACRO_DIR,m4'. libtoolize: copying file
m4/libtool.m4' libtoolize: copying filem4/ltoptions.m4' libtoolize: copying file
m4/ltsugar.m4' libtoolize: copying filem4/ltversion.m4' libtoolize: copying file
m4/lt~obsolete.m4' configure.ac:7: installing./config.guess' configure.ac:7: installing
./config.sub' configure.ac:4: installing./install-sh' configure.ac:4: installing
./missing' src/Makefile.am:33: DOVECOT_PLUGIN_DEPS does not appear in AM_CONDITIONAL src/Makefile.am:41: DOVECOT_PLUGIN_DEPS does not appear in AM_CONDITIONAL src/Makefile.am:10:dovecot_pkglib_LTLIBRARIES' is used but
dovecot_pkglibdir' is undefined src/Makefile.am: installing./depcomp' src/Makefile.am:13: variable
libdovecot_metadata_la_SOURCES' is defined but no program or src/Makefile.am:13: library has `libdovecot_metadata_la' as canonic name (possible typo) autoreconf: automake failed with exit status: 1
openSUSE_Factory: (autoconf-2.69)
- cd dovecot-metadata-plugin-2a17386d4dbc
- ./autogen.sh
- creating m4/ ...
- running autoreconf ...
libtoolize: putting auxiliary files in
.'. libtoolize: copying file
./ltmain.sh' libtoolize: putting macros in AC_CONFIG_MACRO_DIR,m4'. libtoolize: copying file
m4/libtool.m4' libtoolize: copying filem4/ltoptions.m4' libtoolize: copying file
m4/ltsugar.m4' libtoolize: copying filem4/ltversion.m4' libtoolize: copying file
m4/lt~obsolete.m4' configure.ac:7: installing './config.guess' configure.ac:7: installing './config.sub' configure.ac:4: installing './install-sh' configure.ac:4: installing './missing' src/Makefile.am:33: error: DOVECOT_PLUGIN_DEPS does not appear in AM_CONDITIONAL src/Makefile.am:41: error: DOVECOT_PLUGIN_DEPS does not appear in AM_CONDITIONAL src/Makefile.am:10: error: 'dovecot_pkglib_LTLIBRARIES' is used but 'dovecot_pkglibdir' is undefined src/Makefile.am: installing './depcomp' src/Makefile.am:13: warning: variable 'libdovecot_metadata_la_SOURCES' is defined but no program or src/Makefile.am:13: library has 'libdovecot_metadata_la' as canonical name (possible typo) autoreconf: automake failed with exit status: 1
-- Andreas Schulze Internetdienste | P252
DATEV eG 90329 Nürnberg | Telefon +49 911 319-0 | Telefax +49 911 319-3196 E-Mail info @datev.de | Internet www.datev.de Sitz: 90429 Nürnberg, Paumgartnerstr. 6-14 | Registergericht Nürnberg, GenReg Nr.70 Vorstand Prof. Dieter Kempf (Vorsitzender) Dipl.-Kfm. Wolfgang Stegmann (stellvertretender Vorsitzender) Dipl.-Kfm. Michael Leistenschneider Dipl.-Kfm. Dr. Robert Mayr Jörg Rabe v. Pappenheim Dipl.-Vw. Eckhard Schwarzer Vorsitzender des Aufsichtsrates: Reinhard Verholen
Am 23.07.2013 07:32 schrieb Andreas Schulze:
sles9: (autoconf-2.59)
autoreconf: /usr/bin/autoconf failed with exit status: 1
sles10: (autoconf-2.59)
autoreconf: /usr/bin/autoconf failed with exit status: 1
sles11: (autoconf-2.63)
autoreconf: automake failed with exit status: 1
openSUSE_Factory: (autoconf-2.69)
autoreconf: automake failed with exit status: 1
Hello,
Now I finaly had success compiling the metadata plugin on archaic systems. First I had to include dovecot.m4 in my dovecot-devel package. This is unnessesary when building the pigeonhole plugin and so I did not notice my packaging fault.
After that I had to apply two patches to the metadata source.
- Fix configure.ac
- lower needed autoconf version
- lower needed automake version
- add libtool
- don't use C99 extension
- As my system have no C99 capable compiler I had to adjust the source to move the declaration of loop variables outside the loops.
patch && compile && install && work
Thanks to all pointing me in the right direction... Andreas
-- Andreas Schulze Internetdienste | P252
DATEV eG 90329 Nürnberg | Telefon +49 911 319-0 | Telefax +49 911 319-3196 E-Mail info @datev.de | Internet www.datev.de Sitz: 90429 Nürnberg, Paumgartnerstr. 6-14 | Registergericht Nürnberg, GenReg Nr.70 Vorstand Prof. Dieter Kempf (Vorsitzender) Dipl.-Kfm. Wolfgang Stegmann (stellvertretender Vorsitzender) Dipl.-Kfm. Michael Leistenschneider Dipl.-Kfm. Dr. Robert Mayr Jörg Rabe v. Pappenheim Dipl.-Vw. Eckhard Schwarzer Vorsitzender des Aufsichtsrates: Reinhard Verholen
participants (1)
-
Andreas Schulze