Dominique Feyer
2006-Jun-16 19:55 UTC
[Dovecot] Problem compile dovecot-sieve under Debian
I get the source from CVS: # cvs -d :pserver:anonymous@dovecot.org:/home/cvs co dovecot-sieve Edit configure.in to change - AC_CONFIG_HEADERS([dsieve-config.h]) + AC_CONFIG_HEADERS(dsieve-config.h) Launch autogen.sh, and I have some errors: configure.in: 4: `automake requires `AM_CONFIG_HEADER', not `AC_CONFIG_HEADER' configure.in: 11: automake requires `AM_PROG_LEX', not `AC_PROG_LEX' automake: src/libsieve/Makefile.am: not supported: source file `../map.c' is in subdirectory automake: src/libsieve/Makefile.am: not supported: source file `../imparse.c' is in subdirectory automake: src/libsieve/Makefile.am: lex source seen but `AC_DECL_YYTEXT' not in `configure.in' If i try to build: # ./configure --with-dovecot=../dovecot-1.0.beta9 No error: ... configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating src/libsieve/Makefile config.status: creating stamp.h config.status: creating dsieve-config.h config.status: dsieve-config.h is unchanged # make gcc -std=gnu99 -g -O2 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -o sievec sievec.o libsieve.a /usr/src/dovecot-1.0.beta9/src/lib/liblib.a libsieve.a(script.o)(.text+0xa23): In function `sieve_script_load': /usr/src/dovecot-sieve/src/libsieve/script.c:435: undefined reference to `map_refresh' libsieve.a(script.o)(.text+0xaf0): In function `sieve_script_unload': /usr/src/dovecot-sieve/src/libsieve/script.c:462: undefined reference to `map_free' libsieve.a(sieve.o)(.text+0x1e6e): In function `verify_flag': /usr/src/dovecot-sieve/src/libsieve/sieve.y:951: undefined reference to `imparse_isatom' collect2: ld returned 1 exit status make[3]: *** [sievec] Erreur 1 make[3]: Leaving directory `/usr/src/dovecot-sieve/src/libsieve' make[2]: *** [all-recursive] Erreur 1 make[2]: Leaving directory `/usr/src/dovecot-sieve/src' make[1]: *** [all-recursive] Erreur 1 make[1]: Leaving directory `/usr/src/dovecot-sieve' make: *** [all-recursive-am] Erreur 2 I try to install cyrus-dev or cyrus21-dev with apt-get, but nothing change, always the same error. Does someone have success with plugin dovecot-sieve ? Thanks -- Dominique Feyer Administrateur Syst?me Ch. de la Colline 5bis CH-1007 Lausanne dfeyer@net4all.ch
Marcus Rueckert
2006-Jun-16 21:10 UTC
[Dovecot] Problem compile dovecot-sieve under Debian
On 2006-06-16 18:53:14 +0200, Dominique Feyer wrote:> I try to install cyrus-dev or cyrus21-dev with apt-get, but nothing > change, always the same error.dovecot-sieve has its own sieve library copy intree> Does someone have success with plugin dovecot-sieve ?yes. as you see here http://software.opensuse.org/download/server:/mail/SuSE_Linux_10.1/ darix -- openSUSE - SUSE Linux is my linux openSUSE is good for you www.opensuse.org
On 6/17/06, Dominique Feyer <dfeyer@net4all.ch> wrote:> I get the source from CVS: > > # cvs -d :pserver:anonymous@dovecot.org:/home/cvs co dovecot-sieve > > Edit configure.in to change > > - AC_CONFIG_HEADERS([dsieve-config.h]) > + AC_CONFIG_HEADERS(dsieve-config.h) > > Launch autogen.sh, and I have some errors: > > configure.in: 4: `automake requires `AM_CONFIG_HEADER', not > `AC_CONFIG_HEADER' > configure.in: 11: automake requires `AM_PROG_LEX', not `AC_PROG_LEX' > automake: src/libsieve/Makefile.am: not supported: source file > `../map.c' is in subdirectory > automake: src/libsieve/Makefile.am: not supported: source file > `../imparse.c' is in subdirectory > automake: src/libsieve/Makefile.am: lex source seen but `AC_DECL_YYTEXT' > not in `configure.in'IIRC, this is caused by automake <= 1.4 I think, if you update to a newer automake, autogen.sh will work, can't remember if you still need to change that line at the top. Tim -- Linux Counter user #273956