Jaco Lesch via Postfix-users:
> Hello
>
> Has anyone been able to compile Postfix 3.8 on Solaris 11.4 using GCC,
> current "gcc version 12.2.0 (GCC)", with TLS support?
>
> Attempting to compile with the follow settings, with OpenSSL 3.0.8
> (Library: OpenSSL 3.0.8 7 Feb 2023):
> make makefiles \
> CC="/usr/bin/gcc" \
> CCARGS="-m64 -DHAS_DB -DNO_NIS -DUSE_TLS
> -I/usr/openssl/3/include" \
> AUXLIBS="-R/usr/openssl/3/lib -L/usr/openssl/3/lib -ldb -lssl
> -lcrypto" \
> openssl_path="/usr/openssl/3/bin/openssl"
>
> Getting the following compilation errors:
> =========================================================================
> Undefined first referenced
> symbol in file
> SSL_in_init ../../lib/libtls.a(tls_session.o)
[many more libssl functions missing]
Such errors are symptomatic of an include file / library file
mismatch. You appear to be compiling with the OpenSSL 3.x include
file, but linking with an older libssl version. The SSL_in_init()
function does not exist in OpenSSL 1.0.1 libssl, but it does exist
in OpenSSL 1.1.0 and later libssl.
Maybe twiddle the linker options:
AUXLIBS="-ldb -R/usr/openssl/3/lib -L/usr/openssl/3/lib -lssl ..."
Wietse
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]