Build issue, hooking DNS KDC resolution back in

Jelmer Vernooij jelmer at vernstok.nl
Thu Sep 1 01:19:37 GMT 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

Andrew Bartlett wrote:

> I've been trying over the last few days (without success) to add
> DNS KDC location back into the embedded Heimdal code in Samba4.
>
> To do this, I've tried to separate out the Heimdal tests from their
> cf/roken-frag.m4 into cf/resolv.m4, and call them from Samba. The
> tests need to add a RESOLV lib (-lresolv) to our system, and check
> for the right internal functions for resolving SRV records. It all
> looks a bit hairy (in lib/roken/resolv.c), and eventually I want to
> replace this code with an async DNS resolver, which can fit into
> our events system.
>
> However, for the moment I really need the 'just works' part of
> kerberos to 'just work', so I can enable kerberos by default.
>
> Index: heimdal_build/config.m4
> ===================================================================
> --- heimdal_build/config.m4 (revision 9849) +++
> heimdal_build/config.m4 (working copy) @@ -175,6 +175,30 @@
> #include <netdb.h> #endif])
>
> +sinclude(heimdal/cf/find-func.m4)
> +sinclude(heimdal/cf/find-func-no-libs.m4)
> +sinclude(heimdal/cf/find-func-no-libs2.m4)
> +sinclude(heimdal/cf/resolv.m4) + +smb_save_LIBS=$LIBS
> +RESOLV_LIBS="" +LIBS="" + +dnl This fills in the global LIBS...
> +rk_RESOLV + +dnl AC_CHECK_LIB_EXT(resolv, RESOLV_LIBS, res_search)
> + SMB_EXT_LIB_ENABLE(RESOLV,YES) + +if test x"$LIBS" != "x"; then
> + RESOLV_LIBS=$LIBS +fi + +LIBS=$smb_save_LIBS +
> +SMB_EXT_LIB(RESOLV,[${RESOLV_LIBS}],[${RESOLV_CFLAGS}],[${RESOLV_CPPFLAGS],[${RESOLV_LDFLAGS}])
>
Took me some time as well, but it looks like the problem is the fact
that there is no } after ${RESOLVE_CPPFLAGS... adding that and it
configures fine here.

Cheers,

Jelmer
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFDFlcoPa9Uoh7vUnYRAigeAJ45fkYA+nUT26Qnpba3voatLTIUgQCfVVLZ
4MOB1XpeHrbl7wIUB3nQdLM=
=CbnH
-----END PGP SIGNATURE-----



More information about the samba-technical mailing list