cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Curl and heimdal

From: Michal Marek <mmarek_at_suse.cz>
Date: Fri, 03 Oct 2008 10:23:16 +0200

[full quote because the mail didn't reach the mailing list apparently]

Quanah Gibson-Mount wrote:
> This appears to be still broken in curl 7.18.2 and curl 7.19.0.
>
> I have heimdal installed into /opt/zimbra/heimdal-1.2.1:
>
> [root_at_build11 curl-7.19.0]# ls /opt/zimbra/heimdal-1.2.1/lib
> libasn1.a libcom_err.so libeditline.so.0.0.0 libhcrypto.la
> libheimntlm.so.0 libkrb5.a libroken.so libsl.so.0.2.1
> libasn1.la libcom_err.so.1 libgssapi.a libhcrypto.so
> libheimntlm.so.0.1.0 libkrb5.la libroken.so.18 libwind.a
> libasn1.so libcom_err.so.1.1.3 libgssapi.la
> libhcrypto.so.4 libhx509.a libkrb5.so
> libroken.so.18.1.0 libwind.la
> libasn1.so.8 libeditline.a libgssapi.so
> libhcrypto.so.4.1.0 libhx509.la libkrb5.so.25 libsl.a
> libwind.so
> libasn1.so.8.0.0 libeditline.la libgssapi.so.2 libheimntlm.a
> libhx509.so libkrb5.so.25.0.0 libsl.la libwind.so.0
> libcom_err.a libeditline.so libgssapi.so.2.0.0 libheimntlm.la
> libhx509.so.4 libroken.a libsl.so
> libwind.so.0.0.0
> libcom_err.la libeditline.so.0 libhcrypto.a libheimntlm.so
> libhx509.so.4.0.0 libroken.la libsl.so.0
>
> [root_at_build11 curl-7.19.0]# ls /opt/zimbra/heimdal/include/
> asn1_err.h com_right.h editline.h hcrypto heimntlm-protos.h
> hx509-protos.h krb5_ccapi.h krb5-protos.h parse_time.h pkcs9_asn1.h
> roken sl.h
> base64.h der.h getarg.h heim_asn1.h hex.h
> k524_err.h krb5_err.h krb5-types.h parse_units.h pkinit_asn1.h
> roken-common.h wind_err.h
> cms_asn1.h der-protos.h gssapi heim_err.h hx509_err.h krb5
> krb5.h kx509_asn1.h pkcs12_asn1.h resolve.h roken.h
> wind.h
> com_err.h digest_asn1.h gssapi.h heimntlm.h hx509.h
> krb5_asn1.h krb5-private.h parse_bytes.h pkcs8_asn1.h
> rfc2459_asn1.h rtbl.h xdbm.h
>
> [root_at_build11 curl-7.19.0]# ls /opt/zimbra/heimdal/include/gssapi
> gkrb5_err.h gssapi.h gssapi_krb5.h gssapi_spnego.h
>
> I configure curl appropriately:
>
> cd curl-7.19.0; \
> make ca-bundle; \
>
> LD_RUN_PATH=/opt/zimbra/openssl-0.9.8i:/opt/zimbra/heimdal-1.2.1/lib \
> CFLAGS="-g -O2" \
> ./configure --prefix=/opt/zimbra/curl-7.19.0 --disable-ldap
> --disable-ldaps \
> --with-gssapi=/opt/zimbra/heimdal-1.2.1 \
> --with-ssl=/opt/zimbra/openssl-0.9.8i \
>
> --with-ca-bundle=/opt/zimbra/curl-7.19.0/share/curl/ca-bundle.crt \
> --with-zlib=/usr/lib64 \
> --with-libidn=/usr/lib64;\
>
> However, when I build curl, the following occurs:
>
> checking if GSSAPI support is requested... yes
> checking gss.h usability... no
> checking gss.h presence... no
> checking for gss.h... no
> checking gssapi/gssapi.h usability... yes
> checking gssapi/gssapi.h presence... yes
> checking for gssapi/gssapi.h... yes
> checking gssapi/gssapi_generic.h usability... no
> checking gssapi/gssapi_generic.h presence... yes
> configure: WARNING: gssapi/gssapi_generic.h: present but cannot be compiled
> configure: WARNING: gssapi/gssapi_generic.h: check for missing
> prerequisite headers?
> configure: WARNING: gssapi/gssapi_generic.h: see the Autoconf documentation
> configure: WARNING: gssapi/gssapi_generic.h: section "Present But
> Cannot Be Compiled"
> configure: WARNING: gssapi/gssapi_generic.h: proceeding with the
> preprocessor's result
> configure: WARNING: gssapi/gssapi_generic.h: in the future, the compiler
> will take precedence
> configure: WARNING: ##
> ------------------------------------------------------------------------ ##
> configure: WARNING: ## Report this to a suitable curl mailing list =>
> http://curl.haxx.se/mail/ ##
> configure: WARNING: ##
> ------------------------------------------------------------------------ ##
> checking for gssapi/gssapi_generic.h... yes
> checking gssapi/gssapi_krb5.h usability... yes
> checking gssapi/gssapi_krb5.h presence... yes
> checking for gssapi/gssapi_krb5.h... yes
> checking if gssapi headers declare GSS_C_NT_HOSTBASED_SERVICE... no
>
>
> Because it found gssapi_generic.h (in /usr/include/gssapi), it now thinks
> I'm using MIT:
>
> [root_at_build11 curl-7.19.0]# grep HAVE_GSS config.log
> #define HAVE_GSSAPI_GSSAPI_H 1
> #define HAVE_GSSAPI_GSSAPI_GENERIC_H 1
> #define HAVE_GSSAPI_GSSAPI_KRB5_H 1
> #define HAVE_GSSMIT 1
> #define HAVE_GSSAPI 1
>
> which is obviously wrong.

Sou you have both the MIT libraries and Heimdal installed, which
confuses the configure script, right? Do you have an idea how to fix it
for your case? :)

> Adding the:
>
> --with-gssapi-includes=DIR
> Specify location of GSSAPI header
> --with-gssapi-libs=DIR Specify location of GSSAPI libs
>
> flags doesn't help any either.
>
> Note: I'm not on curl-library list, so replies only to it won't reach me.

But you should subscribe (with mail delivery disabled if you wish),
otherwise your mail won't reach the list.

Michal
Received on 2008-10-03