[Dovecot] dovecot2 beta and gcc3(?) - compile problem
Andre Hübner
andre.huebner at gmx.de
Tue Apr 20 16:18:03 EEST 2010
Hello,
try to compile current dovecot2 beta on older machine with gcc 3.3
Compiling results in error:
libtool: link:
gcc -std=gnu99 -g -O2 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith
-Wchar-subscripts -Wformat=2 -Wbad-function-cast -o .libs/imap-login
client.o client-authenticate.o imap-login-settings.o imap-proxy.o
../../src/login-common/.libs/libdovecot-login.so
../../src/lib-dovecot/.libs/libdovecot.so -lrt -Wl,-rpath -Wl,/usr/lib/dovecot
../../src/login-common/.libs/libdovecot-login.so: undefined reference to
`ERR_peek_last_error'
collect2: ld returned 1 exit status
make[3]: *** [imap-login] Error 1
make[3]: Leaving directory
`/usr/src/dovecot-1.1.rc12/dovecot-2.0.beta4/src/imap-login'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/dovecot-1.1.rc12/dovecot-2.0.beta4/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/dovecot-1.1.rc12/dovecot-2.0.beta4'
make: *** [all] Error 2
Is there something missed on my side or problem with older gcc?
dovecot 1.2.11 compiles just fine with same configure-line
also there are some warnings like this:
libtool: compile:
gcc -DHAVE_CONFIG_H -I. -I../../../.. -I../../../../src/lib -I../../../../src/lib-settings
-I../../../../src/lib-mail -I../../../../src/lib-imap -I../../../../src/lib-index
-I../../../../src/lib-storage -I../../../../src/lib-storage/index -std=gnu99
-g -O2 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith
-Wchar-subscripts -Wformat=2 -Wbad-function-cast -MT
dbox-sync-rebuild.lo -MD -MP -MF .deps/dbox-sync-rebuild.Tpo -c
dbox-sync-rebuild.c -fPIC -DPIC -o .libs/dbox-sync-rebuild.o
In file included from dbox-sync-rebuild.c:5:
../../../../src/lib-index/mail-index-modseq.h:34: warning: parameter has
incomplete type
../../../../src/lib-index/mail-index-modseq.h:52: warning: parameter has
incomplete type
or
libtool: compile:
gcc -DHAVE_CONFIG_H -I. -I../../../.. -I../../../../src/lib -I../../../../src/lib-settings
-I../../../../src/lib-mail -I../../../../src/lib-imap -I../../../../src/lib-index
-I../../../../src/lib-storage -I../../../../src/lib-storage/index -I../../../../src/lib-storage/index/dbox-common
-std=gnu99 -g -O2 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith
-Wchar-subscripts -Wformat=2 -Wbad-function-cast -MT
mdbox-file.lo -MD -MP -MF .deps/mdbox-file.Tpo -c
mdbox-file.c -fPIC -DPIC -o .libs/mdbox-file.o
In file included from mdbox-storage.h:5,
from mdbox-file.c:16:
../../../../src/lib-storage/mailbox-list-private.h:158: warning: parameter
has incomplete type
Thanks,
Andre
More information about the dovecot
mailing list