Problems compiling BIND 9.18.28 on Solaris 11.4

Stacey Marshall stacey.marshall at gmail.com
Wed Aug 14 13:11:41 UTC 2024


Hi Jaco,

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.
Once Solaris 11.4 moves OpenSSL 1 out of the way the patch wont be 
needed but until then...

https://github.com/oracle/solaris-userland/blob/master/components/bind/patches/006-OpenSSL-3.patch

See also https://gitlab.isc.org/isc-projects/bind9/-/issues/3414

Regards,

Stacey

On 14 Aug 2024, at 14:03, Ondřej Surý wrote:

> Hi Jaco,
>
> my guees is that you are compiling this against OpenSSL 3.x headers, 
> but linking it to old libssl.so <http://libssl.so/> .1
>
> Using gmake V=1 should give you more insight about the linker flags 
> and paths used, but generally
> having two different versions of libssl.so <http://libssl.so/> 
> (development version) is not supported as it is impossible
> to get right when mixing libraries from different directories.
>
> I would suggest uninstalling the system development OpenSSL libraries 
> (keeping just the shared libs)
> and trying again.
>
> Ondrej
> --
> Ondřej Surý (He/Him)
> ondrej at isc.org
>
> My working hours and your working hours may be different. Please do 
> not feel obligated to reply outside your normal working hours.
>
>> On 14. 8. 2024, at 13:43, Jaco Lesch <jacol at saix.net> wrote:
>>
>> Hi all
>>
>> 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 :
>> ==================================================================
>> Making all in misc
>> gmake[3]: Entering directory '/usr/local/src/bind-9.18.28/doc/misc'
>>   CC       cfg_test-cfg_test.o
>>   CCLD     cfg_test
>> 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
>> 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
>> Undefined            first referenced
>>  symbol                  in file
>> TLS_client_method                   ../../lib/isc/.libs/libisc.so
>> SSL_CTX_set_options                 ../../lib/isc/.libs/libisc.so
>> SSL_CTX_set0_tmp_dh_pkey            ../../lib/isc/.libs/libisc.so
>> SSL_SESSION_is_resumable            ../../lib/isc/.libs/libisc.so
>> .
>> .
>> .
>>
>> EVP_MD_CTX_free                     ../../lib/isc/.libs/libisc.so
>> SSL_session_reused                  ../../lib/isc/.libs/libisc.so
>> X509_getm_notBefore                 ../../lib/isc/.libs/libisc.so
>> ld: fatal: symbol referencing errors
>> collect2: error: ld returned 1 exit status
>> gmake[3]: *** [Makefile:597: cfg_test] Error 1
>> gmake[3]: Leaving directory '/usr/local/src/bind-9.18.28/doc/misc'
>> gmake[2]: *** [Makefile:452: all-recursive] Error 1
>> gmake[2]: Leaving directory '/usr/local/src/bind-9.18.28/doc'
>> gmake[1]: *** [Makefile:629: all-recursive] Error 1
>> gmake[1]: Leaving directory '/usr/local/src/bind-9.18.28'
>> gmake: *** [Makefile:535: all] Error 2
>> ===================================================================
>>
>> I configure with the following variables set:
>> =============================
>> CC=/usr/bin/gcc
>> CFLAGS="-m64 -fPIC -DPIC -O3"
>> LDFLAGS=""
>> CPPFLAGS="-m64"
>> PKG_CONFIG_PATH=/usr/openssl/3/lib/64/pkgconfig:/usr/lib/amd64/pkgconfig
>> MAKE=/usr/gnu/bin/make
>> =============================
>>
>> And have attempted both the Solaris "ld" and GNU "ld" with similar 
>> results. Any advice and guidance regarding this matter will be 
>> appreciated.
>>
>> Thanks
>>
>> -- 
>> ---
>> Jaco Lesch
>> SAIX HLS
>> Email: jacol at saix.net
>>
>> -- 
>> Visit https://lists.isc.org/mailman/listinfo/bind-users to 
>> unsubscribe from this list
>>
>> ISC funds the development of this software with paid support 
>> subscriptions. Contact us at https://www.isc.org/contact/ for more 
>> information.
>>
>>
>> bind-users mailing list
>> bind-users at lists.isc.org
>> https://lists.isc.org/mailman/listinfo/bind-users
>
> -- 
> Visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
> from this list
>
> ISC funds the development of this software with paid support 
> subscriptions. Contact us at https://www.isc.org/contact/ for more 
> information.
>
>
> bind-users mailing list
> bind-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/bind-users


--
[Stacey](https://staceymarshall.wordpress.com/)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/bind-users/attachments/20240814/3d04b0cd/attachment.htm>


More information about the bind-users mailing list