[SUMMARY] trouble compiling Dovecot 2.2.31 on Solaris 10 SPARC - libssl_iostream_openssl.so is not portable!

Jerry Kemp dovecot at oryx.us
Sat Aug 26 23:37:35 EEST 2017


I'm done.  Good to go.  Good compile + new binaries all built against the latest 
OpenSSL libraries.

Big thank you to James, Joseph Tam and Aki Tuomi who game me pointers and kept 
me in the right direction.
........................................................................

These are the settings that made everything work for me.

First, needed a current, up-to-date version of OpenSSL in place.  Generally 
pretty easy task.  I discovered that OpenSSL will not create shared libraries on 
Solaris using GNU make.  No problem, everything worked just fine using the 
system /usr/ccs/bin/make .

Back to Dovecot.

Environmental variables - this is what I needed for my system.  Although I'm a 
Sys V guy, never cared for the /opt thing, and ended up adopting /Applications 
from NeXT .

setenv CPPFLAGS "-I/Applications/openssl-1.0.2l.32/include 
-I/Applications/openssl-1.0.2l.32/include/openssl"
setenv LDFLAGS "-L/Applications/openssl-1.0.2l.32/lib"
setenv SSL_CFLAGS "-I/Applications/openssl-1.0.2l.32/include 
-I/Applications/openssl-1.0.2l.32/include/openssl"
setenv SSL_LIBS "-R/Applications/openssl-1.0.2l.32/lib 
-L/Applications/openssl-1.0.2l.32/lib"
setenv LIBS "-lcrypto -lssl"
setenv LD_LIBRARY_PATH 
"/Applications/openssl-1.0.2l.32/lib:/usr/lib:/usr/local/lib:/usr/xpg4/lib:/usr/openwin/lib:/usr/dt/lib"

........................................................................

Config statement:

./configure \
--prefix=/Applications/dovecot-2.2.32.32 \
--with-ssl=openssl \
--with-ssldir=/Applications/dovecot-2.2.32.31/certs

........................................................................

 From there, it was run "make" then wait for the compile to finish.

It had been a while since I did a fresh Dovecot compile, and in the past, I had 
just used the system provided OpenSSL install.

This took a bit more work.

Hope this can help out someone else in the future.

Thank you,

Jerry






























More information about the dovecot mailing list