On 1 May 2019, at 4:38 pm, James Brown via dovecot <dovecot@dovecot.org> wrote:

No problems with 2.3.5, but when I try to compile 2.3.6 with:

./configure --with-mysql --with-ssl=openssl

I get:

checking for dlopen... yes
checking for SSL_read in -lssl... no
configure: error: Can't build with OpenSSL: libssl not found

$ locate libssl
/Applications/BBEdit.app/Contents/XPCServices/GitIgnoreXPCService.xpc/Contents/Frameworks/libssl.dylib
/Applications/Navicat for MySQL.app/Contents/Frameworks/libssl.1.0.0.dylib
/Applications/assp/assp.mod/bin/libssl32.dll
/usr/lib/libssl.0.9.7.dylib
/usr/lib/libssl.0.9.8.dylib
/usr/lib/libssl.35.dylib
/usr/lib/libssl.43.dylib
/usr/lib/libssl.44.dylib
/usr/lib/libssl.dylib
/usr/local/Cellar/openssl/1.0.2r/lib/libssl.1.0.0.dylib
/usr/local/Cellar/openssl/1.0.2r/lib/libssl.a
/usr/local/Cellar/openssl/1.0.2r/lib/libssl.dylib
/usr/local/Cellar/openssl/1.0.2r/lib/pkgconfig/libssl.pc
/usr/local/Cellar/openssl@1.1/1.1.1b/lib/libssl.1.1.dylib
/usr/local/Cellar/openssl@1.1/1.1.1b/lib/libssl.a
/usr/local/Cellar/openssl@1.1/1.1.1b/lib/libssl.dylib
/usr/local/Cellar/openssl@1.1/1.1.1b/lib/pkgconfig/libssl.pc
/usr/local/lib/dovecot/libssl_iostream_openssl.a
/usr/local/lib/dovecot/libssl_iostream_openssl.la
/usr/local/lib/dovecot/libssl_iostream_openssl.so

Any suggestions?

Thanks,

James.

Sorry for the noise.

export CPPFLAGS="-I/usr/local/opt/mysql@5.7/include/mysql -I/usr/local/Cellar/openssl@1.1/1.1.1b/include"
export LDFLAGS="-L/usr/local/opt/mysql@5.7/lib -L/usr/local/opt/openssl@1.1/lib"

./configure --with-mysql --with-ssl=openssl

Worked.

James.