Bug 5331 - Configure breaks due to not validating results from krb5-config
Summary: Configure breaks due to not validating results from krb5-config
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: Build environment (show other bugs)
Version: 3.0.28a
Hardware: Sparc Solaris
: P3 normal
Target Milestone: none
Assignee: Tim Potter
QA Contact: Samba QA Contact
Depends on:
Reported: 2008-03-17 08:58 UTC by Markus Strangl (dead mail address)
Modified: 2021-01-04 16:18 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 (dead mail address) 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 (dead mail address) 2008-03-17 09:08:43 UTC
What version and distribution of the Krb5 libs are you using?
Comment 2 Markus Strangl (dead mail address) 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.
Comment 3 Björn Jacke 2021-01-04 16:18:39 UTC
closing, we have a different waf build system now, a solaris build worked for me recently also.