Christian Schmidt
2005-Oct-07 13:07 UTC
[Dovecot] Building dovecot with SSL support on Solaris
Hi all, I'm just trying to build dovecot-1.0.alpha3 on a Solaris 9 machine with SSL support. No matter which options I call ./configure with - it always results in: Install prefix ...................... : /usr/local File offsets ........................ : 64bit I/O loop method ..................... : poll File change notification method ..... : none Building with SSL support ........... : no <-- ! Building with IPv6 support .......... : yes Building with pop3 server ........... : yes Building with mail delivery agent .. : yes Building with user database modules . : static passdb passwd passwd-file checkpassword (modules) Building with password lookup modules : passwd passwd-file shadow pam checkpassword (modules) Some more details: $ uname -a SunOS ns 5.9 Generic_117171-08 sun4u sparc SUNW,Sun-Fire-280R $ /usr/local/ssl/bin/openssl version OpenSSL 0.9.7e 25 Oct 2004 On another system, the build succeeds - including SSL support: $ uname -a SunOS excalibur 5.9 Generic_117171-08 sun4u sparc SUNW,Sun-Blade-100 $ /usr/local/ssl/bin/openssl version OpenSSL 0.9.7d 17 Mar 2004 I have tried lots of hints Google found in the mailing list archives, but none of them succeeded. I'm looking forward to getting any further hints. If you need some further information, I will post it. Regards & thanks in advance, Christian -- Alle Dinge geschehen aus Notwendigkeit. Es gibt in der Natur kein Gutes und kein Schlechtes. -- Baruch de Spinoza
Jeff A. Earickson
2005-Oct-07 13:22 UTC
[Dovecot] Building dovecot with SSL support on Solaris
Hi, I run alpha3 on Solaris 9, with openssl in /opt. Here is my configure for dovecot: #!/usr/bin/sh VERSION=1.0-alpha3 CC=gcc CFLAGS="-g -O" CPPFLAGS=-I/opt/openssl/include LDFLAGS=-L/opt/openssl/lib \ ./configure --prefix=/opt/dovecot.$VERSION --with-ssl=openssl \ --with-ssldir=/opt/openssl/ssl > configure.out I also have /opt/openssl/lib dfined in my load path via "crle" so apps can find it. That may be your problem. My output from "crle": [3] % crle Configuration file [version 3]: /var/ld/ld.config Default Library Path (ELF): /usr/lib:/opt/openssl/lib:/opt/BerkeleyDB/lib:/usr/local/lib Trusted Directories (ELF): /usr/lib/secure (system default) Command line: crle -c /var/ld/ld.config -l /usr/lib:/opt/openssl/lib:/opt/BerkeleyDB/lib:/usr/local/lib Jeff Earickson Colby College On Fri, 7 Oct 2005, Christian Schmidt wrote:> Date: Fri, 7 Oct 2005 15:07:07 +0200 > From: Christian Schmidt <christian at siebenbergen.de> > To: dovecot at dovecot.org > Subject: [Dovecot] Building dovecot with SSL support on Solaris > > Hi all, > > I'm just trying to build dovecot-1.0.alpha3 on a Solaris 9 machine > with SSL support. > No matter which options I call ./configure with - it always results in: > > Install prefix ...................... : /usr/local > File offsets ........................ : 64bit > I/O loop method ..................... : poll > File change notification method ..... : none > Building with SSL support ........... : no <-- ! > Building with IPv6 support .......... : yes > Building with pop3 server ........... : yes > Building with mail delivery agent .. : yes > Building with user database modules . : static passdb passwd > passwd-file checkpassword (modules) > Building with password lookup modules : passwd passwd-file shadow pam > checkpassword (modules) > > Some more details: > $ uname -a > SunOS ns 5.9 Generic_117171-08 sun4u sparc SUNW,Sun-Fire-280R > $ /usr/local/ssl/bin/openssl version > OpenSSL 0.9.7e 25 Oct 2004 > > On another system, the build succeeds - including SSL support: > $ uname -a > SunOS excalibur 5.9 Generic_117171-08 sun4u sparc SUNW,Sun-Blade-100 > $ /usr/local/ssl/bin/openssl version > OpenSSL 0.9.7d 17 Mar 2004 > > I have tried lots of hints Google found in the mailing list archives, but > none of them succeeded. > > I'm looking forward to getting any further hints. > If you need some further information, I will post it. > > Regards & thanks in advance, > Christian > > -- > Alle Dinge geschehen aus Notwendigkeit. Es gibt in der Natur kein > Gutes und kein Schlechtes. > -- Baruch de Spinoza >
What version of OpenSSL are you using? I had this problem and it turned out to be a problem with OpenSSL. I had originally installed OpenSSL 0.9.8 and had the same problem you are having. I had to go back to OpenSSL 0.9.7d and it worked fine with no other changes. There might be a version between 0.9.7d and 0.9.8 but I didn't check because I already had the other version on the system. There were some major changes in OpenSSL 0.9.8 and I didn't have time to sort them out so I went with an earlier version. -- Andy Christian Schmidt wrote:>Hi all, > >I'm just trying to build dovecot-1.0.alpha3 on a Solaris 9 machine >with SSL support. >No matter which options I call ./configure with - it always results in: > >Install prefix ...................... : /usr/local >File offsets ........................ : 64bit >I/O loop method ..................... : poll >File change notification method ..... : none >Building with SSL support ........... : no <-- ! >Building with IPv6 support .......... : yes >Building with pop3 server ........... : yes >Building with mail delivery agent .. : yes >Building with user database modules . : static passdb passwd >passwd-file checkpassword (modules) >Building with password lookup modules : passwd passwd-file shadow pam >checkpassword (modules) > >Some more details: >$ uname -a >SunOS ns 5.9 Generic_117171-08 sun4u sparc SUNW,Sun-Fire-280R >$ /usr/local/ssl/bin/openssl version >OpenSSL 0.9.7e 25 Oct 2004 > >On another system, the build succeeds - including SSL support: >$ uname -a >SunOS excalibur 5.9 Generic_117171-08 sun4u sparc SUNW,Sun-Blade-100 >$ /usr/local/ssl/bin/openssl version >OpenSSL 0.9.7d 17 Mar 2004 > >I have tried lots of hints Google found in the mailing list archives, but >none of them succeeded. > >I'm looking forward to getting any further hints. >If you need some further information, I will post it. > >Regards & thanks in advance, >Christian > > >
Christian Schmidt
2005-Oct-09 15:27 UTC
[Dovecot] [SOLVED] Building dovecot with SSL support on Solaris
Hi all, Christian Schmidt, 07.10.2005 (d.m.y):> I'm just trying to build dovecot-1.0.alpha3 on a Solaris 9 machine > with SSL support. > No matter which options I call ./configure with - it always results in: > > Install prefix ...................... : /usr/local > File offsets ........................ : 64bit > I/O loop method ..................... : poll > File change notification method ..... : none > Building with SSL support ........... : no <-- ! > Building with IPv6 support .......... : yes > Building with pop3 server ........... : yes > Building with mail delivery agent .. : yes > Building with user database modules . : static passdb passwd > passwd-file checkpassword (modules) > Building with password lookup modules : passwd passwd-file shadow pam > checkpassword (modules)I finally managed to make ./configure result in returning. Building with SSL support ........... : yes (OpenSSL) I achieved this by adding "-ldl" to LDFLAGS. At the moment, my configure script looks like this: (Attention: First line may have been broken!) #! /bin/sh CC=gcc CFLAGS="-g -O" CPPFLAGS=-I/usr/local/ssl/include LDFLAGS='-L/usr/local/ssl/lib -ldl' ./configure \ --prefix=/usr/local \ --with-ssl=openssl \ --with-ssldir=/usr/local/ssl/certs As I'm not very familiar with all the stuff concerning programming etc., I don't know exactly what this option "-ldl" means. All I can say is that it refers to how the binary to be produced will be linked against libraries. Maybe someone can drop some words on this...? Thanks to all of you who spent some brain on my problem! Regards, Christian -- Smileys werden nur von Leuten verwendet die das, was sie meinen, nicht sagen, und das, was sie sagen, so nicht meinen. -- Klaus Schilling