Wietse Venema:
> Postfix links the system libz because MYSQL_README requires it:
>
> Postfix pre 3.0:
>
> make -f Makefile.init makefiles \
> 'CCARGS=-DHAS_MYSQL -I/usr/local/mysql/include' \
> 'AUXLIBS=-L/usr/local/mysql/lib -lmysqlclient -lz -lm'
>
> So the next step is to remove the mysql client from the build.
And in that case the crash does not happen. The problem seems to
be with loading libz into a program that already has libz loaded
during process startup.
> If that works, then we could explore OpenSSL builds with libz
> support, but without libz dynamic loading.
I have a build running with zlib and no-zlib-dynamic.
Wietse
# /usr/local/bin/openssl s_client -no_ssl2 -cipher aNULL -connect localhost:25
-starttls smtp
WARNING: can't open config file: /usr/local/openssl/openssl.cnf
CONNECTED(00000003)
---
no peer certificate available
---
No client certificate CA names sent
---
SSL handshake has read 659 bytes and written 385 bytes
---
New, TLSv1/SSLv3, Cipher is AECDH-AES256-SHA
Secure Renegotiation IS supported
Compression: zlib compression
Expansion: zlib compression
SSL-Session:
Protocol : TLSv1.2
Cipher : AECDH-AES256-SHA
Session-ID: B857BC2E58D7BF07F28DE3E02EB2C6B1DEE897C2F28A67B3D9B36690F577FD3A
Session-ID-ctx:
Master-Key:
79E5D33084CE9B439E3A093DCE2BA1AEDC4671765D7CFFB53EE958E6EF5C77CC6CF1B22270E90519233F9967751E2947
Key-Arg : None
PSK identity: None
PSK identity hint: None
SRP username: None
TLS session ticket lifetime hint: 7200 (seconds)
TLS session ticket:
0000 - a1 23 1d 21 1f e5 7f ea-05 07 2d 3b da 81 81 86 .#.!......-;....
0010 - 89 a4 51 d7 1e 36 d8 ff-fb 3d 4a 5c e7 7a 10 94 ..Q..6...=J\.z..
0020 - b7 29 87 26 ec 1c 33 79-89 12 0b 32 e8 ef af 9a .).&..3y...2....
0030 - 42 30 b3 c2 fb 6e 0c 4c-b8 68 5f 25 9e 18 ac 2f B0...n.L.h_%.../
0040 - 9c ef af dd fb 30 9b 1f-81 63 96 19 9b cd 83 03 .....0...c......
0050 - 41 a5 01 2b dc 02 c4 0e-d1 8b e4 23 7c 2b 8f c8 A..+.......#|+..
0060 - 4f 26 22 89 42 68 bd 1b-30 5c 10 e3 df 60 ed 7d O&".Bh..0\...`.}
0070 - ef b3 be 4b b3 a9 89 65-0e 9e d9 31 37 9c 0d 1d ...K...e...17...
0080 - d8 d5 19 87 4b 24 b9 7a-a4 29 29 a1 38 3b e3 5f ....K$.z.)).8;._
0090 - f7 0d dc e1 26 a3 47 c9-5f 7a 58 54 b1 c2 49 53 ....&.G._zXT..IS
00a0 - 39 c2 f0 e9 39 be 86 fc-14 3e 88 fc a4 2d 8f d4 9...9....>...-..
Compression: 1 (zlib compression)
Start Time: 1427030174
Timeout : 300 (sec)
Verify return code: 0 (ok)
---
250 SMTPUTF8