Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Compiling bind w/ MKKERBEROS=no fails



On Sat, May 31, 2025 at 06:22:19PM +0000, Christos Zoulas wrote:
> In article <aDrfynCivQSkQb_p%hmacs.keks@localhost-at-home.local>,
> K. Schreiner <ks%ub.uni-mainz.de@localhost> wrote:
> > ...
> >     create  libdns/gssapictx.d
> >/u/NetBSD/src.ks/external/mpl/bind/lib/libdns/../../dist/lib/dns/gssapictx.c:24:10: fatal error: gssapi/gssapi.h: No such file or directory
> >   24 | #include <gssapi/gssapi.h>
> >      |          ^~~~~~~~~~~~~~~~~
> >compilation terminated.
> >nbmkdep: compile failed.
> ...

 
> Fixed.

thanks, but unfortunately it's not completly fixed:

...
dependall ===> lib/../external/mpl/bind/lib/libdns
     create  libdns/gssapictx.d
/u/NetBSD/src.ks/external/mpl/bind/lib/libdns/../../dist/lib/dns/gssapictx.c:36:10: fatal error: krb5/krb5.h: No such file or directory
   36 | #include <krb5/krb5.h>
      |          ^~~~~~~~~~~~~
compilation terminated.
nbmkdep: compile failed.
...

The following diff helps:

Index: Makefile
===================================================================
RCS file: /cvsroot/src/external/mpl/bind/lib/libdns/Makefile,v
retrieving revision 1.14
diff -u -r1.14 Makefile
--- Makefile   1 Jun 2025 00:44:45 -0000	1.14
+++ Makefile   2 Jun 2025 09:44:41 -0000
@@ -22,12 +22,12 @@
 COPTS.${f}.c+=  -Wno-pointer-sign -fno-strict-aliasing
 .endfor
 
-DNSSEC_SRCS=    dst_api.c dst_parse.c gssapictx.c hmac_link.c key.c \
+DNSSEC_SRCS=    dst_api.c dst_parse.c hmac_link.c key.c \
 		 	   openssl_link.c opensslrsa_link.c opensslecdsa_link.c \
 			   		  openssleddsa_link.c
 
 .if ${MKKERBEROS} != "no"
-DNSSEC_SRCS+=   gssapi_link.c
+DNSSEC_SRCS+=   gssapictx.c gssapi_link.c
 
 CWARNFLAGS.clang+=	-Wno-error=tautological-constant-compare
 .endif


But dns.expsym has to be adaptet, too:

--- dns.expsym	 2025-06-01 04:10:54.277492437 +0200
+++ libdns.so.23.1.actsym   2025-06-01 04:10:54.308314231 +0200
@@ -1649,13 +1649,6 @@
 dst_context_verify
 dst_context_verify2
 dst_ds_digest_supported
-dst_gssapi_acceptctx
-dst_gssapi_acquirecred
-dst_gssapi_deletectx
-dst_gssapi_identitymatchesrealmkrb5
-dst_gssapi_identitymatchesrealmms
-dst_gssapi_initctx
-dst_gssapi_releasecred
 dst_hmac_algorithm_totext
 dst_key_alg
 dst_key_attach
@@ -1746,8 +1739,6 @@
 fetchctx_detach
 fetchctx_ref
 fetchctx_unref
-gss_error_tostring
-gss_log
 irs_resconf_destroy
 irs_resconf_getattempts
 irs_resconf_getnameservers
libdns.so.23.1: error: actual symbols differ from expected symbols


Kurt


Home | Main Index | Thread Index | Old Index