[Dovecot] dovecot2 beta and gcc3(?) - compile problem
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
Hello,
Your OpenSSL library is too old.
ahh, i can fix this. I already use additional OpensslInstallation for other software in subfolder. but seems that configure dont has a option to change path for ssl-libs like apache or php do. there is only a option to change the path for certificates.
It is not important for me at this time. i use 1.2.11 and iam happy with it. i hope sometimes when dovecot2 is really needed my older machines are replaced.
Thanks, Andre
On 21.4.2010, at 10.19, Andre Hübner wrote:
ahh, i can fix this. I already use additional OpensslInstallation for other software in subfolder. but seems that configure dont has a option to change path for ssl-libs like apache or php do. there is only a option to change the path for certificates.
http://wiki.dovecot.org/CompilingSource has an example how to set SSL (or any) paths.
participants (2)
-
Andre Hübner
-
Timo Sirainen