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..
What version and distribution of the Krb5 libs are you using?
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.
closing, we have a different waf build system now, a solaris build worked for me recently also.