[Dovecot] Cant compile managesieve 0.11.11 on Solaris10
hi,
i can't compile managesieve-0.11.11 on Solaris 10 against Sieve 0.1.17 and Dovecot 1.2.13:
[...]
gcc -std=gnu99 -g -O2 -Wall -W -Wmissing-prototypes
-Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2
-Wbad-function-cast -I/usr/sfw/include -o managesieve-login client.o
client-authenticate.o managesieve-capability.o managesieve-proxy.o
cmd-noop.o /usr/local/dovecot/src/dovecot-1.2-sieve-0.1.17/src/lib-sieve/.libs/libsieve.a /usr/local/dovecot/src/dovecot-1.2.13/src/login-common/liblogin-common.a ../../src/lib-managesieve/libmanagesieve.a ../../src/lib-sievestorage/libsievestorage.a /usr/local/dovecot/src/dovecot-1.2.13/src/lib-storage/libstorage.a /usr/local/dovecot/src/dovecot-1.2.13/src/lib-index/libindex.a /usr/local/dovecot/src/dovecot-1.2.13/src/lib-imap/libimap.a /usr/local/dovecot/src/dovecot-1.2.13/src/lib-mail/libmail.a /usr/local/dovecot/src/dovecot-1.2.13/src/lib-charset/libcharset.a /usr/local/dovecot/src/dovecot-1.2.13/src/lib-auth/libauth.a /usr/local/dovecot/src/dovecot-1.2.13/src/lib/liblib.a -L/usr/sfw/lib -lssl -lcrypto -ldl -lldap -lnsl -lsocket -lrt -lsendfile -R/usr/sfw/lib
Undefined first referenced
symbol in file
SSL_COMP_get_name /usr/local/dovecot/src/dovecot-1.2.13/src/login-common/liblogin-common.a(ssl-proxy-openssl.o)
SSL_get_current_compression /usr/local/dovecot/src/dovecot-1.2.13/src/login-common/liblogin-common.a(ssl-proxy-openssl.o)
ld: fatal: Symbol referencing errors. No output written to
managesieve-login
collect2: ld returned 1 exit status
gmake[3]: *** [managesieve-login] Error 1
gmake[3]: Leaving directory
/usr/local/dovecot/src/dovecot-1.2-managesieve-0.11.11/src/managesieve-login' gmake[2]: *** [all-recursive] Error 1 gmake[2]: Leaving directory
/usr/local/dovecot/src/dovecot-1.2-managesieve-0.11.11/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory
`/usr/local/dovecot/src/dovecot-1.2-managesieve-0.11.11'
gmake: *** [all] Error 2
[...]
I use OpenSSL from OpenSolaris.
any suggestions?
cu denny
Hello,
Please show me configure and Comple Options. $ ./configure OPTIONS
and let me resulu of command: $ echo $PATH $ crle
ld: fatal: Symbol referencing errors. No output written to So, I think OS cannot find OpenSolaris-OpenSSL Library and Header. Where OpenSolaris-OpenSSL was installed in ? /usr/sfw ?
Denny Schierz Wrote:
hi,
i can't compile managesieve-0.11.11 on Solaris 10 against Sieve 0.1.17 and Dovecot 1.2.13:
[...]
gcc -std=gnu99 -g -O2 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -I/usr/sfw/include -o managesieve-login client.o client-authenticate.o managesieve-capability.o managesieve-proxy.o cmd-noop.o /usr/local/dovecot/src/dovecot-1.2-sieve-0.1.17/src/lib-sieve/.libs/libsieve.a /usr/local/dovecot/src/dovecot-1.2.13/src/login-common/liblogin-common.a ../../src/lib-managesieve/libmanagesieve.a ../../src/lib-sievestorage/libsievestorage.a /usr/local/dovecot/src/dovecot-1.2.13/src/lib-storage/libstorage.a /usr/local/dovecot/src/dovecot-1.2.13/src/lib-index/libindex.a /usr/local/dovecot/src/dovecot-1.2.13/src/lib-imap/libimap.a /usr/local/dovecot/src/dovecot-1.2.13/src/lib-mail/libmail.a /usr/local/dovecot/src/dovecot-1.2.13/src/lib-charset/libcharset.a /usr/local/dovecot/src/dovecot-1.2.13/src/lib-auth/libauth.a /usr/local/dovecot/src/dovecot-1.2.13/src/lib/liblib.a -L/usr/sfw/lib -lssl -lcrypto -ldl -lldap -lnsl -lsocket -lrt -lsendfile -R/usr/sfw/lib Undefined first referenced symbol in file SSL_COMP_get_name /usr/local/dovecot/src/dovecot-1.2.13/src/login-common/liblogin-common.a(ssl-proxy-openssl.o) SSL_get_current_compression /usr/local/dovecot/src/dovecot-1.2.13/src/login-common/liblogin-common.a(ssl-proxy-openssl.o) ld: fatal: Symbol referencing errors. No output written to managesieve-login collect2: ld returned 1 exit status gmake[3]: *** [managesieve-login] Error 1 gmake[3]: Leaving directory
/usr/local/dovecot/src/dovecot-1.2-managesieve-0.11.11/src/managesieve-login' gmake[2]: *** [all-recursive] Error 1 gmake[2]: Leaving directory
/usr/local/dovecot/src/dovecot-1.2-managesieve-0.11.11/src' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/usr/local/dovecot/src/dovecot-1.2-managesieve-0.11.11' gmake: *** [all] Error 2[...]
I use OpenSSL from OpenSolaris.
any suggestions?
cu denny
-- /*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/* Kenji Iuchi mail to: gc00004 @ m2.gyao.ne.jp kenji.iuchi @ gmail.com /*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*
Am Donnerstag, den 29.07.2010, 23:53 +0900 schrieb Kenji Iuchi:
Please show me configure and Comple Options. $ ./configure OPTIONS
./configure --prefix=/usr/local/dovecot/managesieve-0.11 --with-dovecot=/usr/local/dovecot/src/dovecot-1.2.11 --with-dovecot-sieve=/usr/local/dovecot/src/dovecot-1.2-sieve-0.1.16
and let me resulu of command: $ echo $PATH
$PATH:/usr/pkg/bin:/usr/pkg/sbin:/usr/bin:/usr/sbin:/usr/ccs/bin:/usr/sfw/bin:/usr/local/bin:/usr/local/sbin:/bin:/sbin:/opt/csw/sbin:/opt/csw/bin:/usr/sfw/bin:/usr/sfw/sbin:/root/bin:/usr/public/bin:/usr/ccs/bin
$ crle
Configuration file [version 4]: /var/ld/ld.config
Default Library Path
(ELF): /lib:/usr/lib:/usr/local/lib:/opt/csw/lib:/opt/csw/lib/amd64:/opt/csw/lib/i386:/opt/csw/postgresql/lib
Trusted Directories (ELF): /lib/secure:/usr/lib/secure (system
default)
Command line: crle -c /var/ld/ld.config -l /lib:/usr/lib:/usr/local/lib:/opt/csw/lib:/opt/csw/lib/amd64:/opt/csw/lib/i386:/opt/csw/postgresql/lib
ld: fatal: Symbol referencing errors. No output written to So, I think OS cannot find OpenSolaris-OpenSSL Library and Header. Where OpenSolaris-OpenSSL was installed in ? /usr/sfw ?
root:/usr/local/dovecot/src/dovecot-1.2-managesieve-0.11.11# find /usr/ /opt/ -name ssl.h /usr/sfw/include/openssl/ssl.h /opt/csw/include/openssl/ssl.h
the second ssl.h ist from pkgutil (blastwave), cause of Apache2/Postfix
cu denny
On Tue, 2010-07-27 at 16:16 +0200, Denny Schierz wrote:
SSL_COMP_get_name /usr/local/dovecot/src/dovecot-1.2.13/src/login-common/liblogin-common.a(ssl-proxy-openssl.o) SSL_get_current_compression /usr/local/dovecot/src/dovecot-1.2.13/src/login-common/liblogin-common.a(ssl-proxy-openssl.o)
Oh. I think you can't compile even unpatched Dovecot? For a while I was confused why this would break only with managesieve, but I think it's only because managesieve-login gets compiled before imap/pop3-login. But if you don't have those functions in SSL library, why do you have HAVE_SSL_COMPRESSION defined in config.h? Maybe configure is finding different libssl than what make is later using?
hi,
Am Montag, den 02.08.2010, 13:29 +0100 schrieb Timo Sirainen:
On Tue, 2010-07-27 at 16:16 +0200, Denny Schierz wrote:
SSL_COMP_get_name /usr/local/dovecot/src/dovecot-1.2.13/src/login-common/liblogin-common.a(ssl-proxy-openssl.o) SSL_get_current_compression /usr/local/dovecot/src/dovecot-1.2.13/src/login-common/liblogin-common.a(ssl-proxy-openssl.o)
Oh. I think you can't compile even unpatched Dovecot? For a while I was
I had two problems:
1.) I was able to get everything working with 1.2.11, cause i had OpenLdap 2.3.x installed
Managesieve was also no problem, but in the second try, I've forgotten to set the LDD flags:
LDFLAGS="-L/opt/csw/lib -L/usr/lib -R/opt/csw/lib/" ./configure --prefix=/usr/local/dovecot/managesieve-0.11 --with-dovecot=/usr/local/dovecot/src/dovecot-1.2.13 --with-dovecot-sieve=/usr/local/dovecot/src/dovecot-1.2-sieve-0.1.17
With setting the flags (as I used for DoveCot himself), it works.
- ) The second problem was, I've got an update from OpenLDAP via pkgutil OpenLdap 2.4.so.2.5.5, so ./configure says, there is no libldap. It seems, that the API has changed.
Now I have DoveCot 1.2.13 running. Stil solving the other problem with %d for Maildir.
cu denny
participants (3)
-
Denny Schierz
-
Kenji Iuchi
-
Timo Sirainen