Re: bind is'nt compilable MKKERBEROS=no
On Sun, Mar 10, 2024 at 07:22:31PM +0100, Havard Eidnes wrote: > > 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:24:10: > > fatal error: gssapi/gssapi.h: No such file or directory > >24 | #include > > | ^ > > compilation terminated. > > nbmkdep: compile failed. > > Hm, yes... Our in-tree BIND ships with a "static" config.h file > which has "#define HAVE_GSSAPI 1", and while BIND has a configure > option --without-gssapi which would probably make HAVE_GSSAPI not > be defined, the configure script isn't used in our setup. > > You could try to comment out HAVE_GSSAPI in the include/config.h > file and see how that goes. Yep, applying the following patch let compiling new bind succeed: Index: external/mpl/bind/include/config.h === RCS file: /cvsroot/src/external/mpl/bind/include/config.h,v retrieving revision 1.16 diff -u -r1.16 config.h --- external/mpl/bind/include/config.h 21 Feb 2024 22:52:52 - 1.16 +++ external/mpl/bind/include/config.h 11 Mar 2024 13:12:15 - @@ -178,6 +178,7 @@ /* Define to 1 if you have the header file. */ #define HAVE_GLOB_H 1 +#if (USE_KERBEROS != no) /* Define to 1 if you have the Kerberos Framework available */ #define HAVE_GSSAPI 1 @@ -195,6 +196,7 @@ /* Define to 1 if you have the `gss_acquire_cred' function. */ #define HAVE_GSS_ACQUIRE_CRED 1 +#endif /* Define to 1 if you have the header file. */ /* #undef HAVE_IDN2_H */ @@ -214,6 +216,7 @@ /* Use json-c library */ /* #undef HAVE_JSON_C */ +#if (USE_KERBEROS != no) /* Define to 1 if you have the header file. */ /* #undef HAVE_KRB5_H */ @@ -222,6 +225,7 @@ /* Define to 1 if you have the header file. */ #define HAVE_KRB5_KRB5_H 1 +#endif /* Define if libidn2 was found */ /* #undef HAVE_LIBIDN2 */
Re: bind is'nt compilable MKKERBEROS=no
> 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:24:10: > fatal error: gssapi/gssapi.h: No such file or directory >24 | #include > | ^ > compilation terminated. > nbmkdep: compile failed. Hm, yes... Our in-tree BIND ships with a "static" config.h file which has "#define HAVE_GSSAPI 1", and while BIND has a configure option --without-gssapi which would probably make HAVE_GSSAPI not be defined, the configure script isn't used in our setup. You could try to comment out HAVE_GSSAPI in the include/config.h file and see how that goes. Regards, - HÃ¥vard
bind is'nt compilable MKKERBEROS=no
TSSIA: 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:24:10: fatal error: gssapi/gssapi.h: No such file or directory 24 | #include | ^ compilation terminated. nbmkdep: compile failed. *** Failed target: gssapictx.d *** Failed command: CC=/u/NetBSD/arch/amd64/TOOLS/bin/x86_64--netbsd-gcc /u/NetBSD/arch/amd64/TOOLS/bin/nbmkdep -f gssapictx.d.tmp -- -std=gnu18 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wsystem-headers -Wno-traditional -Wa,--fatal-warnings -Werror -Wno-pointer-sign --sysroot=/u/NetBSD/arch/amd64/dest -I/u/NetBSD/src.ks/external/mit/libuv/dist/include -include /u/NetBSD/src.ks/external/mpl/bind/lib/libdns/../../include/config.h -I/u/NetBSD/src.ks/external/mpl/bind/lib/libdns/../../include -I/u/NetBSD/src.ks/external/mpl/bind/lib/libdns/../../dist -I/u/NetBSD/src.ks/external/mpl/bind/lib/libdns/../../dist/lib/bind9/include -I/u/NetBSD/src.ks/external/mpl/bind/lib/libdns/../../dist/lib/dns/include -I/u/NetBSD/src.ks/external/mpl/bind/lib/libdns/../../dist/lib/ns/include -I/u/NetBSD/src.ks/external/mpl/bind/lib/libdns/../../dist/lib/irs/include -I/u/NetBSD/src.ks/external/mpl/bind/lib/libdns/../../dist/lib/isc/include -I/u/NetBSD/src.ks/external/mpl/bind/lib/libdns/../../dist/lib/isc/unix/include -I/u/NetBSD/src.ks/external/mpl/bind/lib/libdns/../../dist/lib/isccfg/include -I/u/NetBSD/src.ks/external/mpl/bind/lib/libdns/../../dist/lib/isccc/include -DSESSION_KEYFILE=\"/var/run/named/session.key\" -DNAMED_CONFFILE=\"/etc/named.conf\" -I/u/NetBSD/src.ks/external/mpl/bind/lib/libdns/../../dist/lib/isc/pthreads/include -I/u/NetBSD/src.ks/external/mpl/bind/lib/libdns/../../include/dns -I/u/NetBSD/src.ks/external/mpl/bind/lib/libdns/../../dist/lib/dns -I/u/NetBSD/src.ks/external/mpl/bind/lib/libdns/../../dist/lib/isc -I/u/NetBSD/src.ks/external/mpl/bind/lib/libdns/../../dist/lib/isc/pthreads/include /u/NetBSD/src.ks/external/mpl/bind/lib/libdns/../../dist/lib/dns/gssapictx.c && mv -f gssapictx.d.tmp gssapictx.d *** Error code 1 Stop. Compiled from source cvs updated half an hour ago and empty obj and dest... Regards, Kurt