Menu

#1486 Make location of krb5-config configurable

closed-fixed
None
5
2015-04-01
2015-02-25
No

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)

Discussion

  • Michael Osipov

    Michael Osipov - 2015-03-13

    That would add even more options. Is that really necessary? GSS-API detection is already a complex block in the autoconf script.

     
  • Dagobert Michelsen

    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.patch

     
  • Daniel Stenberg

    Daniel Stenberg - 2015-03-30

    Thanks, this fix has now been merged as commit 5b66860652.

     
  • Daniel Stenberg

    Daniel Stenberg - 2015-03-30
    • status: open --> closed-fixed
    • assigned_to: Daniel Stenberg