Hi, recently I tried to complie TLS with postfix 2.4.5 and 2.6.5 on centos 4.8 and I'm getting an error. The server that I'm trying to get TLS working already is running postfix 2.4.5 with SASL with no issues.
When I run make makefiles CCARGS="-DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl -DUSE_TLS -I/usr/include" \ AUXLIBS="-L/usr/lib/sasl2 -lsasl2 -L/usr/lib -lcrypto" I get the following error after the make command. ../../lib/libtls.a(tls_misc.o)(.text+0x65): In function `tls_exclude_missing': /root/downloads/postfix-2.4.5/src/tls/tls_misc.c:243: undefined reference to `SSL_new' ../../lib/libtls.a(tls_misc.o)(.text+0x90):/root/downloads/postfix-2.4.5/src /tls/tls_misc.c:261: undefined reference to `SSL_set_cipher_list' ../../lib/libtls.a(tls_misc.o)(.text+0xa0):/root/downloads/postfix-2.4.5/src /tls/tls_misc.c:261: undefined reference to `SSL_get_ciphers' ../../lib/libtls.a(tls_misc.o)(.text+0xec):/root/downloads/postfix-2.4.5/src /tls/tls_misc.c:269: undefined reference to `SSL_CIPHER_get_bits' ../../lib/libtls.a(tls_misc.o)(.text+0x107):/root/downloads/postfix-2.4.5/sr c/tls/tls_misc.c:271: undefined reference to `SSL_CIPHER_get_name' ../../lib/libtls.a(tls_misc.o)(.text+0x138):/root/downloads/postfix-2.4.5/sr c/tls/tls_misc.c:275: undefined reference to `SSL_free' ../../lib/libtls.a(tls_misc.o)(.text+0x1d4): In function `tls_set_cipher_list': ... ... /root/downloads/postfix-2.4.5/src/tls/tls_bio_ops.c:270: undefined reference to `SSL_get_error' ../../lib/libtls.a(tls_verify.o)(.text+0x38): In function `tls_verify_certificate_callback': /root/downloads/postfix-2.4.5/src/tls/tls_verify.c:127: undefined reference to `SSL_get_ex_data_X509_STORE_CTX_idx' ../../lib/libtls.a(tls_verify.o)(.text+0x53):/root/downloads/postfix-2.4.5/s rc/tls/tls_verify.c:128: undefined reference to `SSL_get_ex_data' ../../lib/libtls.a(tls_verify.o)(.text+0xa6):/root/downloads/postfix-2.4.5/s rc/tls/tls_verify.c:138: undefined reference to `SSL_get_verify_depth' ../../lib/libtls.a(tls_certkey.o)(.text+0x33): In function `tls_set_ca_certificate_info': /root/downloads/postfix-2.4.5/src/tls/tls_certkey.c:85: undefined reference to `SSL_CTX_load_verify_locations' ../../lib/libtls.a(tls_certkey.o)(.text+0x5c):/root/downloads/postfix-2.4.5/ src/tls/tls_certkey.c:90: undefined reference to `SSL_CTX_set_default_verify_paths' ../../lib/libtls.a(tls_certkey.o)(.text+0x9f): In function `set_cert_stuff': /root/downloads/postfix-2.4.5/src/tls/tls_certkey.c:111: undefined reference to `SSL_CTX_use_certificate_chain_file' ../../lib/libtls.a(tls_certkey.o)(.text+0xcc):/root/downloads/postfix-2.4.5/ src/tls/tls_certkey.c:116: undefined reference to `SSL_CTX_use_PrivateKey_file' ../../lib/libtls.a(tls_certkey.o)(.text+0xf6):/root/downloads/postfix-2.4.5/ src/tls/tls_certkey.c:125: undefined reference to `SSL_CTX_check_private_key' collect2: ld returned 1 exit status make: *** [smtpd] Error 1 make: *** [update] Error 1 can anyone point me to a good TLS install reference for the listed version of postfix above or give me any suggestions. Thanks, Paul rpm -qa *ssl* xmlsec1-openssl-1.2.6-3.1 openssl-devel-0.9.7a-43.17.el4_8.5 openssl-0.9.7a-43.17.el4_8.5 rpm -qa *sasl* cyrus-sasl-plain-2.1.19-14 cyrus-sasl-2.1.19-14 cyrus-sasl-devel-2.1.19-14 cyrus-sasl-md5-2.1.19-14