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 at 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
On Oct 6, 2009, at 8:26 AM, Bruce Bodger wrote:>>> >>> 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.. > > > bash-3.2# /usr/bin/OpenSSL version > OpenSSL 0.9.7l 28 Sep 2006A bit of oddity I just discovered by viewing source code at http://www.opensource.apple.com/ OS X 10.5.8 - OpenSSL 0.9.7l 28 Sep 2006 OS X 10.6.0 - OpenSSL 0.9.6l 04 Nov 2003 OS X 10.6.1 - OpenSSL 0.9.6l 04 Nov 2003 Looks like they moved back to 0.96l in later versions. B. Bodger
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 statushttp://hg.dovecot.org/dovecot-1.2/rev/4add5c3f13ea fixes this. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20091006/58eff14e/attachment-0002.bin>
On Oct 6, 2009, at 10:21 AM, Bruce Bodger wrote:>>>> 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.. >> >> >> bash-3.2# /usr/bin/OpenSSL version >> OpenSSL 0.9.7l 28 Sep 2006 > > A bit of oddity I just discovered by viewing source code at http:// > www.opensource.apple.com/ > > OS X 10.5.8 - OpenSSL 0.9.7l 28 Sep 2006 > OS X 10.6.0 - OpenSSL 0.9.6l 04 Nov 2003 > OS X 10.6.1 - OpenSSL 0.9.6l 04 Nov 2003 > > Looks like they moved back to 0.96l in later versions.A SIX YEAR OLD release?! -- Dave McGuire Port Charlotte, FL
> 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.