[Dovecot] compiling issue 1.2.6 - Solaris
Heya,
I am expiriencing compiling issues on Solaris 8 and Solaris 10 boxes with dovecot 1.2.6. On Solaris 8 the compiler is gcc 64bit 3.2.2, on Solaris 10 gcc 3.4.3.
On both systems the compiling fails with: /bin/bash ../../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 -L/opt/gcc-3.1-64bit/lib -R/opt/gcc-3.1-64bit/lib -L/usr/local/ssl/lib -R/usr/local/ssl/lib -L/opt/kerberos-heimdal/lib -R/opt/kerberos-heimdal/lib -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 -lssl -lcrypto -ldl -lrt -lnsl -lsocket -lrt libtool: link: gcc -std=gnu99 -g -O2 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -o imap-login client.o client-authenticate.o imap-proxy.o -L/opt/gcc-3.1-64bit/lib -L/usr/local/ssl/lib -L/opt/kerberos-heimdal/lib ../login-common/liblogin-common.a ../lib-imap/libimap.a ../lib-auth/libauth.a ../lib/liblib.a -lssl -lcrypto -ldl -lnsl -lsocket -lrt -R/opt/gcc-3.1-64bit/lib -R/usr/local/ssl/lib -R/opt/kerberos-heimdal/lib Undefined first referenced symbol in file SSL_COMP_get_name ../login-common/liblogin-common.a(ssl-proxy-openssl.o) SSL_get_current_compression ../login-common/liblogin-common.a(ssl-proxy-openssl.o) ld: fatal: Symbol referencing errors. No output written to imap-login collect2: ld returned 1 exit status
The configure script is the same on both systems: CPPFLAGS='-I/usr/local/ssl/include -I/opt/kerberos-heimdal/include' LDFLAGS='-L/usr/local/ssl/lib -R/usr/local/ssl/lib -L/opt/kerberos-heimdal/lib -R/opt/kerberos-heimdal/lib' ./configure --prefix=/opt/dovecot --with-ssldir=/usr/local/ssl/certs --with-ssl=openssl --without-passwd-file --with-passwd --with-shadow --without-bsdauth --without-static-userdb --without-prefetch-userdb --without-checkpassword --with-gssapi=yes --without-pgsql --without-sql --without-ldap --without-vpopmail --without-sia --enable-header-install
Install prefix . : /opt/dovecot File offsets ... : 64bit I/O polling .... : poll I/O notifys .... : none SSL ............ : yes (OpenSSL) GSSAPI ......... : yes passdbs ........ : passwd shadow pam : -passwd-file -checkpassword -bsdauth -sia -ldap -sql -vpopmail userdbs ........ : passwd : -static -prefetch -passwd-file -checkpassword -ldap -sql -vpopmail -nss SQL drivers .... : : -pgsql -mysql -sqlite
Version 1.2.4 compiles with no problems...
regards, Jernej
On Oct 6, 2009, at 3:55 AM, Jernej Porenta wrote:
I am expiriencing compiling issues on Solaris 8 and Solaris 10 boxes
with dovecot 1.2.6. On Solaris 8 the compiler is gcc 64bit 3.2.2, on
Solaris 10 gcc 3.4.3.
Same type of problem here on OS X 10.5.8 Server.
Command line to configure: ./configure --with-ssldir=/System/Library/ OpenSSL --with-ssl=openssl
.. Undefined symbols: "_SSL_get_current_compression", referenced from: _ssl_proxy_get_security_string in liblogin-common.a(ssl-proxy- openssl.o) "_SSL_COMP_get_name", referenced from: _ssl_proxy_get_security_string in liblogin-common.a(ssl-proxy- openssl.o) ld: symbol(s) not found collect2: ld returned 1 exit status make[3]: *** [imap-login] Error 1 make[2]: *** [all-recursive] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2
Please let me know if you need any more information.
Thank you, B. Bodger
On Oct 6, 2009, at 9:00 AM, Bruce Bodger wrote:
On Oct 6, 2009, at 3:55 AM, Jernej Porenta wrote:
I am expiriencing compiling issues on Solaris 8 and Solaris 10
boxes with dovecot 1.2.6. On Solaris 8 the compiler is gcc 64bit
3.2.2, on Solaris 10 gcc 3.4.3.Same type of problem here on OS X 10.5.8 Server.
Command line to configure: ./configure --with-ssldir=/System/ Library/OpenSSL --with-ssl=openssl
.. Undefined symbols: "_SSL_get_current_compression", referenced from: _ssl_proxy_get_security_string in liblogin-common.a(ssl-proxy- openssl.o) "_SSL_COMP_get_name", referenced from: _ssl_proxy_get_security_string in liblogin-common.a(ssl-proxy- openssl.o)
What OpenSSL version do you have? I thought those compression
functions were new enough that everyone would have them by now..
Timo Sirainen wrote:
On Oct 6, 2009, at 9:00 AM, Bruce Bodger wrote:
On Oct 6, 2009, at 3:55 AM, Jernej Porenta wrote:
I am expiriencing compiling issues on Solaris 8 and Solaris 10 boxes with dovecot 1.2.6. On Solaris 8 the compiler is gcc 64bit 3.2.2, on Solaris 10 gcc 3.4.3.
Same type of problem here on OS X 10.5.8 Server.
Command line to configure: ./configure --with-ssldir=/System/Library/OpenSSL --with-ssl=openssl
.. Undefined symbols: "_SSL_get_current_compression", referenced from: _ssl_proxy_get_security_string in liblogin-common.a(ssl-proxy-openssl.o) "_SSL_COMP_get_name", referenced from: _ssl_proxy_get_security_string in liblogin-common.a(ssl-proxy-openssl.o)
What OpenSSL version do you have? I thought those compression functions were new enough that everyone would have them by now..
No problems compiling for me on Solaris 8, gcc 3.4.3, openssl-0.9.8k.
Best Wishes, Chris
-- --+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+- Christopher Wakelin, c.d.wakelin@reading.ac.uk IT Services Centre, The University of Reading, Tel: +44 (0)118 378 8439 Whiteknights, Reading, RG6 2AF, UK Fax: +44 (0)118 975 3094
Timo Sirainen wrote:
On Oct 6, 2009, at 9:00 AM, Bruce Bodger wrote:
Undefined symbols: "_SSL_get_current_compression", referenced from: _ssl_proxy_get_security_string in liblogin-common.a(ssl-proxy-openssl.o) "_SSL_COMP_get_name", referenced from: _ssl_proxy_get_security_string in liblogin-common.a(ssl-proxy-openssl.o)
What OpenSSL version do you have? I thought those compression functions were new enough that everyone would have them by now..
Mine is "OpenSSL 0.9.7d" and "OpenSSL 0.9.7i" which might be a little old :), but I had no troubles since that...
Anyway, I will build a new one and try to link dovecot with that...
thanks you,
regards, Jernej
Hello Timo,
Timo Sirainen, 06.10.2009 (d.m.y):
What OpenSSL version do you have? I thought those compression functions were new enough that everyone would have them by now..
I'm experiencing the same problem when buidling dovecot on Solaris 10 (SPARC). I just updated my OpenSSL to version 0.9.8k, but the error remains.
Regards, Christian Schmidt
-- It is a wise father that knows his own child. -- William Shakespeare, "The Merchant of Venice"
Christian Schmidt wrote:
Hello Timo,
Timo Sirainen, 06.10.2009 (d.m.y):
What OpenSSL version do you have? I thought those compression functions were new enough that everyone would have them by now..
I'm experiencing the same problem when buidling dovecot on Solaris 10 (SPARC). I just updated my OpenSSL to version 0.9.8k, but the error remains.
Regards, Christian Schmidt
Works for me on Solaris 10, gcc 3.4.3, openssl 0.9.8k. What do you have for your configure line? Are you sure you're picking up your compiled library and not the default Solaris one?
I've got something like:
CFLAGS="-I/usr/local/openssl/include -L/usr/local/openssl/lib
-g -O2"
./configure --prefix=/usr/local/dovecot --with-ssl=openssl
Best Wishes, Chris
-- --+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+- Christopher Wakelin, c.d.wakelin@reading.ac.uk IT Services Centre, The University of Reading, Tel: +44 (0)118 378 8439 Whiteknights, Reading, RG6 2AF, UK Fax: +44 (0)118 975 3094
Hello Chris,
Chris Wakelin, 06.10.2009 (d.m.y):
Works for me on Solaris 10, gcc 3.4.3, openssl 0.9.8k. What do you have for your configure line? Are you sure you're picking up your compiled library and not the default Solaris one?
I've got something like:
CFLAGS="-I/usr/local/openssl/include -L/usr/local/openssl/lib
-g -O2"
./configure --prefix=/usr/local/dovecot --with-ssl=openssl
I had to review my configure script. It now uses a fresh OpenSSL installation. Building dovecot works fine now.
Gruss/Regards, Christian Schmidt
-- Your society will be sought by people of taste and refinement.
What OpenSSL version do you have? I thought those compression functions were new enough that everyone would have them by now.. Same on NetBSD 3.1.0 (which admittedly is unsupported by now) with OpenSSL 0.9.7d. I can pull in a newer version from pkgsrc, of course.
On Tue, Oct 06, 2009 at 09:22:12AM -0400, Timo Sirainen wrote:
On Oct 6, 2009, at 9:00 AM, Bruce Bodger wrote:
On Oct 6, 2009, at 3:55 AM, Jernej Porenta wrote:
I am expiriencing compiling issues on Solaris 8 and Solaris 10 boxes with dovecot 1.2.6. On Solaris 8 the compiler is gcc 64bit 3.2.2, on Solaris 10 gcc 3.4.3.
Same type of problem here on OS X 10.5.8 Server.
Command line to configure: ./configure --with-ssldir=/System/ Library/OpenSSL --with-ssl=openssl
.. Undefined symbols: "_SSL_get_current_compression", referenced from: _ssl_proxy_get_security_string in liblogin-common.a(ssl-proxy- openssl.o) "_SSL_COMP_get_name", referenced from: _ssl_proxy_get_security_string in liblogin-common.a(ssl-proxy- openssl.o)
What OpenSSL version do you have? I thought those compression functions were new enough that everyone would have them by now..
Just to add another data point - it also failed on RHEL4 (openssl 0.9.7a), but your fix in hg already took care of it, thanks!
Axel.Thimm at ATrpms.net
On Tue, 2009-10-06 at 10:55 +0200, Jernej Porenta wrote:
SSL_COMP_get_name ../login-common/liblogin-common.a(ssl-proxy-openssl.o) SSL_get_current_compression ../login-common/liblogin-common.a(ssl-proxy-openssl.o) ld: fatal: Symbol referencing errors. No output written to imap-login collect2: ld returned 1 exit status
http://hg.dovecot.org/dovecot-1.2/rev/4add5c3f13ea fixes this.
participants (7)
-
Axel Thimm
-
Bruce Bodger
-
Chris Wakelin
-
Christian Schmidt
-
Edgar Fuß
-
Jernej Porenta
-
Timo Sirainen