PDA

View Full Version : Compile error Dovecot 1.2.6



aKra
10-08-2009, 03:44 PM
I've got problems with the new 'upgrade' @ custombuild :mad:

Lastlog @ compile (./build dovecot d)


Making all in imap-login
make[3]: Entering directory `/usr/local/directadmin/custombuild/dovecot-1.2.6/src/imap-login'
gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src/lib -I../../src/lib-auth -I../../src/lib-imap -I../../src/login-common -I/usr/kerberos/include -std=gnu99 -g -O2 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -I/usr/kerberos/include -MT client.o -MD -MP -MF .deps/client.Tpo -c -o client.o client.c
gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src/lib -I../../src/lib-auth -I../../src/lib-imap -I../../src/login-common -I/usr/kerberos/include -std=gnu99 -g -O2 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -I/usr/kerberos/include -MT client-authenticate.o -MD -MP -MF .deps/client-authenticate.Tpo -c -o client-authenticate.o client-authenticate.c
gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src/lib -I../../src/lib-auth -I../../src/lib-imap -I../../src/login-common -I/usr/kerberos/include -std=gnu99 -g -O2 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -I/usr/kerberos/include -MT imap-proxy.o -MD -MP -MF .deps/imap-proxy.Tpo -c -o imap-proxy.o imap-proxy.c
mv -f .deps/client-authenticate.Tpo .deps/client-authenticate.Po
mv -f .deps/client.Tpo .deps/client.Po
mv -f .deps/imap-proxy.Tpo .deps/imap-proxy.Po
/bin/sh ../../libtool --tag=CC --mode=link gcc -std=gnu99 -g -O2 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -I/usr/kerberos/include -o imap-login client.o client-authenticate.o imap-proxy.o ../login-common/liblogin-common.a ../lib-imap/libimap.a ../lib-auth/libauth.a ../lib/liblib.a -L/usr/kerberos/lib -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz -lrt
libtool: link: gcc -std=gnu99 -g -O2 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -I/usr/kerberos/include -o imap-login client.o client-authenticate.o imap-proxy.o ../login-common/liblogin-common.a ../lib-imap/libimap.a ../lib-auth/libauth.a ../lib/liblib.a -L/usr/kerberos/lib -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz -lrt
../login-common/liblogin-common.a(ssl-proxy-openssl.o)(.text+0x78c): In function `ssl_proxy_get_security_string':
/usr/local/directadmin/custombuild/dovecot-1.2.6/src/login-common/ssl-proxy-openssl.c:647: undefined reference to `SSL_get_current_compression'
../login-common/liblogin-common.a(ssl-proxy-openssl.o)(.text+0x7a2):/usr/local/directadmin/custombuild/dovecot-1.2.6/src/login-common/ssl-proxy-openssl.c:648: undefined reference to `SSL_COMP_get_name'
collect2: ld returned 1 exit status
make[3]: *** [imap-login] Error 1
make[3]: Leaving directory `/usr/local/directadmin/custombuild/dovecot-1.2.6/src/imap-login'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/directadmin/custombuild/dovecot-1.2.6/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/directadmin/custombuild/dovecot-1.2.6'
make: *** [all] Error 2


Running OpenSSL 0.9.7a-43.17.el4_7.2 on CentOS release 4.8 (Final).

Do you guys have any clues?

aKra
10-08-2009, 03:52 PM
Found another similar thread at:
http://www.directadmin.com/forum/showthread.php?t=33112

scsi
10-09-2009, 06:24 AM
Fix:

http://directadmin.com/forum/showpost.php?p=166458&postcount=12

aKra
10-09-2009, 08:51 AM
Works for me, thanks! :-)

DeCAD
10-13-2009, 02:00 PM
Add these two lines in build script.

Search for doDovecot() function

[...]
tar xzf ${FILE}
# Fix for OpenSSL 0.9.7 and older
wget -O /usr/local/directadmin/custombuild/dovecot-1.2.6/configure.in "http://hg.dovecot.org/dovecot-1.2/raw-file/4add5c3f13ea/configure.in"
wget -O /usr/local/directadmin/custombuild/dovecot-1.2.6/src/login-common/ssl-proxy-openssl.c "http://hg.dovecot.org/dovecot-1.2/raw-file/4add5c3f13ea/src/login-common/ssl-proxy-openssl.c"
echo "Done.";
[...]

So the update procces finish correctly. Thanks to scsi