Created attachment 13465 [details]
'lib' option is needed to CHECK_STRUCTURE_MEMBER
If the header is not in /usr/include test will fail. There is no option to pass the -Ipath optin to cc when building test.c
example: Solaris place krb5 headers into /usr/include/kerberosv5[/krb5.h]
Patch is picked from Bug 12124 to distinguish the ldap, krb5 specific parts from this waf core fix.
Fixed with another code issue.