<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/xhtml; charset=utf-8">
</head>
<body><div style="font-family: sans-serif;"><div class="markdown" style="white-space: normal;">
<p dir="auto">Hi Jaco,</p>
<p dir="auto">Ondřej is right, for Solaris build I have to patch two Makefiles to change the order of the library paths such that the OpenSSL 3 libraries are found.<br>
Once Solaris 11.4 moves OpenSSL 1 out of the way the patch wont be needed but until then...</p>
<p dir="auto"><a href="https://github.com/oracle/solaris-userland/blob/master/components/bind/patches/006-OpenSSL-3.patch" style="color: #3983C4;">https://github.com/oracle/solaris-userland/blob/master/components/bind/patches/006-OpenSSL-3.patch</a></p>
<p dir="auto">See also <a href="https://gitlab.isc.org/isc-projects/bind9/-/issues/3414" style="color: #3983C4;">https://gitlab.isc.org/isc-projects/bind9/-/issues/3414</a></p>
<p dir="auto">Regards,</p>
<p dir="auto">Stacey</p>
<p dir="auto">On 14 Aug 2024, at 14:03, Ondřej Surý wrote:</p>
</div><div class="plaintext" style="white-space: normal;"><blockquote style="margin: 0 0 5px; padding-left: 5px; border-left: 2px solid #777777; color: #777777;"><p dir="auto">Hi Jaco,</p>
<p dir="auto">my guees is that you are compiling this against OpenSSL 3.x headers, but linking it to old libssl.so <<a href="http://libssl.so/" style="color: #777777;">http://libssl.so/</a>> .1</p>
<p dir="auto">Using gmake V=1 should give you more insight about the linker flags and paths used, but generally
<br>
having two different versions of libssl.so <<a href="http://libssl.so/" style="color: #777777;">http://libssl.so/</a>> (development version) is not supported as it is impossible
<br>
to get right when mixing libraries from different directories.</p>
<p dir="auto">I would suggest uninstalling the system development OpenSSL libraries (keeping just the shared libs)
<br>
and trying again.</p>
<p dir="auto">Ondrej
<br>
--
<br>
Ondřej Surý (He/Him)
<br>
ondrej@isc.org</p>
<p dir="auto">My working hours and your working hours may be different. Please do not feel obligated to reply outside your normal working hours.</p>
<blockquote style="margin: 0 0 5px; padding-left: 5px; border-left: 2px solid #777777; border-left-color: #999999; color: #999999;"><p dir="auto">On 14. 8. 2024, at 13:43, Jaco Lesch <jacol@saix.net> wrote:</p>
<p dir="auto">Hi all</p>
<p dir="auto">Having a problem to get BIND 9.18.28 to compile on Solaris 11.4 on x86 and SPARC. Getting the following errors when running "gmake", similar errors on both x86 and SPARC :
<br>
==================================================================
<br>
Making all in misc
<br>
gmake[3]: Entering directory '/usr/local/src/bind-9.18.28/doc/misc'
<br>
  CC       cfg_test-cfg_test.o
<br>
  CCLD     cfg_test
<br>
ld: warning: file /usr/local/src/bind-9.18.28/lib/dns/.libs/libdns.so: linked to ../../lib/dns/.libs/libdns.so: attempted multiple inclusion of file
<br>
ld: warning: file /usr/local/src/bind-9.18.28/lib/isc/.libs/libisc.so: linked to ../../lib/isc/.libs/libisc.so: attempted multiple inclusion of file
<br>
Undefined            first referenced
<br>
 symbol                  in file
<br>
TLS_client_method                   ../../lib/isc/.libs/libisc.so
<br>
SSL_CTX_set_options                 ../../lib/isc/.libs/libisc.so
<br>
SSL_CTX_set0_tmp_dh_pkey            ../../lib/isc/.libs/libisc.so
<br>
SSL_SESSION_is_resumable            ../../lib/isc/.libs/libisc.so
<br>
.
<br>
.
<br>
.</p>
<p dir="auto">EVP_MD_CTX_free                     ../../lib/isc/.libs/libisc.so
<br>
SSL_session_reused                  ../../lib/isc/.libs/libisc.so
<br>
X509_getm_notBefore                 ../../lib/isc/.libs/libisc.so
<br>
ld: fatal: symbol referencing errors
<br>
collect2: error: ld returned 1 exit status
<br>
gmake[3]: *** [Makefile:597: cfg_test] Error 1
<br>
gmake[3]: Leaving directory '/usr/local/src/bind-9.18.28/doc/misc'
<br>
gmake[2]: *** [Makefile:452: all-recursive] Error 1
<br>
gmake[2]: Leaving directory '/usr/local/src/bind-9.18.28/doc'
<br>
gmake[1]: *** [Makefile:629: all-recursive] Error 1
<br>
gmake[1]: Leaving directory '/usr/local/src/bind-9.18.28'
<br>
gmake: *** [Makefile:535: all] Error 2
<br>
===================================================================</p>
<p dir="auto">I configure with the following variables set:
<br>
=============================
<br>
CC=/usr/bin/gcc
<br>
CFLAGS="-m64 -fPIC -DPIC -O3"
<br>
LDFLAGS=""
<br>
CPPFLAGS="-m64"
<br>
PKG_CONFIG_PATH=/usr/openssl/3/lib/64/pkgconfig:/usr/lib/amd64/pkgconfig
<br>
MAKE=/usr/gnu/bin/make
<br>
=============================</p>
<p dir="auto">And have attempted both the Solaris "ld" and GNU "ld" with similar results. Any advice and guidance regarding this matter will be appreciated.</p>
<p dir="auto">Thanks</p>
<p dir="auto">-- 
<br>
---
<br>
Jaco Lesch
<br>
SAIX HLS
<br>
Email: jacol@saix.net</p>
<p dir="auto">-- 
<br>
Visit <a href="https://lists.isc.org/mailman/listinfo/bind-users" style="color: #999999;">https://lists.isc.org/mailman/listinfo/bind-users</a> to unsubscribe from this list</p>
<p dir="auto">ISC funds the development of this software with paid support subscriptions. Contact us at <a href="https://www.isc.org/contact/" style="color: #999999;">https://www.isc.org/contact/</a> for more information.</p>
<p dir="auto">bind-users mailing list
<br>
bind-users@lists.isc.org
<br>
<a href="https://lists.isc.org/mailman/listinfo/bind-users" style="color: #999999;">https://lists.isc.org/mailman/listinfo/bind-users</a></p>
</blockquote><p dir="auto">-- 
<br>
Visit <a href="https://lists.isc.org/mailman/listinfo/bind-users" style="color: #777777;">https://lists.isc.org/mailman/listinfo/bind-users</a> to unsubscribe from this list</p>
<p dir="auto">ISC funds the development of this software with paid support subscriptions. Contact us at <a href="https://www.isc.org/contact/" style="color: #777777;">https://www.isc.org/contact/</a> for more information.</p>
<p dir="auto">bind-users mailing list
<br>
bind-users@lists.isc.org
<br>
<a href="https://lists.isc.org/mailman/listinfo/bind-users" style="color: #777777;">https://lists.isc.org/mailman/listinfo/bind-users</a></p>
</blockquote></div>
<div class="markdown" style="white-space: normal;">
<p dir="auto">--<br>
<a href="https://staceymarshall.wordpress.com/" style="color: #3983C4;">Stacey</a></p>

</div>
</div>
</body>

</html>