At the moment krb5-config is used from $GSSAPI_ROOT/bin/krb5-config
. When building for 64 bit on Solaris the location is .../bin/sparcv9/krb5-config
or .../bin/amd64/krb5-config
. It would be nice if the location would be adjustable, e.g. when $KRB5CONFIG
is defined that location is used.
The present implementation requires setting GSSAPI_INCS and GSSAPI_LIB_DIR manually:
GSSAPI_INCS = $($(bindir)/krb5config --cflags gssapi) GSSAPI_LIB_DIR = $($(bindir)/krb5config --libs gssapi)
That would add even more options. Is that really necessary? GSS-API detection is already a complex block in the autoconf script.
Unfortunately it is necessary because the binary directory in Solaris has the ISA as subdirectory. Hardwiring it to
.../bin/krb5-config
makes it impossible to build 64 bit.The above workaround seemed to work, but actually does not. I ended up allowing to explicitly set the location of
krb5-config
: https://buildfarm.opencsw.org/source/xref/opencsw/csw/mgar/pkg/curl/trunk/files/0001-Use-KRB5CONFIG.patchThanks, this fix has now been merged as commit 5b66860652.
Hi Daniel,
two lines need to be removed or the patch won't work as described in the commit comment:
https://github.com/bagder/curl/commit/5b668606527613179d0349f21b4ab0df2971e3d2#commitcomment-10473445