Bug 5331 - Configure breaks due to not validating results from krb5-config
Configure breaks due to not validating results from krb5-config
Status: NEW
Product: Samba 3.0
Classification: Unclassified
Component: Build environment
Sparc Solaris
: P3 normal
: none
Assigned To: Tim Potter
Samba QA Contact
Depends on:
  Show dependency treegraph
Reported: 2008-03-17 08:58 UTC by Markus Strangl
Modified: 2008-03-17 09:30 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Markus Strangl 2008-03-17 08:58:23 UTC
The configure script in my 3.0.28a sources breaks when enabling AD, during the search for Kerberos libraries.
configure at some point runs 'krb5-config gssapi' and uses the output from that command unvalidated as part of the next configure steps / gcc command lines. However, with the krb5 libraries distributed by such popular sites as sunfreeware.com or blastwave.org (i.e. anything not cutting-edge version), the krb5-config script does not know about the gssapi parameter and will return an error, which ends up in the gcc command line.
This leads to such nice entries in the config.log as this:
Failed command was: "gcc -o test.o -I/usr/include Unknown option gssapi, run krb5-config --help for information -I/opt/whatever/include -g -O3 -some -more -gcc -options"

Please have configure validate whether krb5-config is actually returning anything remotely sane for the gssapi check..
Comment 1 Gerald (Jerry) Carter 2008-03-17 09:08:43 UTC
What version and distribution of the Krb5 libs are you using?
Comment 2 Markus Strangl 2008-03-17 09:30:14 UTC
krb5-config --version
Solaris Kerberos (based on MIT Kerberos 5 release 1.2.1/1.3.0)

I've just checked.. this Kerberos doesn't come from the MIT packages at SFW/Blastwave, but is the native version included with Solaris 10.. so please disregard this hint in my initial report.