The with-krb5 option ignores the location specified and attempts to locate the kerberos installation automatically. This is a problem when attempting to compile against hemdal on a machine with both MIT krb5 and heimdal installed. configure options: ./configure --prefix=/usr/local --with-readline --with-privatedir=/etc/samba/private --with-configdir=/etc/samba --with-lockdir=/var/samba/locks --localstatedir=/var/samba --with-ssl=/usr/local/ssl --with-sslinc=/usr/local/ssl/include --with-krb5=/usr/heimdal results in the following output by configure: Using libraries: LIBS = -lsec -lgen -lresolv -lsocket -lnsl -ldl KRB5_LIBS = -L/usr/krb5/lib -R/usr/krb5/lib -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lgen LDAP_LIBS = -llber -lldap AUTH_LIBS =
assigning to me
Created attachment 134 [details] Use krb5-config from --with-krb5 directory Here's the start of a patch to fix this. Configure will now detect and use a krb5-config in the --with-krb5 directory. Samba still doesnt't compile with both MIT and Heimdal kerberos installed if MIT is installed in /usr/include.
Moving to Samba HEAD product. The configure scripts are too fragile to be poked at just before a release.
*** Bug 600 has been marked as a duplicate of this bug. ***
Bring this back to Samba 3.0 - it's not just a HEAD problem.
*** Bug 664 has been marked as a duplicate of this bug. ***
will someone do something with this ? Thanks.
reseting target milestone. 3.0.1 has been frozen. WIll have to re-evaluate these.
workaround is to set CPPFLASG, CFLAGS, and LDFLAGS.
(In reply to comment #9) > workaround is to set CPPFLASG, CFLAGS, and LDFLAGS. Actually I do not have kerberos installed, but by default on Solaris 9, the gssapi header files are installed from the package SUNWhea This does not work even on samba-3.0.9: [oak source]$ printenv | grep FLAGS CPPFLAGS=-I/opt/local/include -I/opt/local/include/sasl LDFLAGS=-L/opt/local/lib -L/opt/local/lib/sasl2 CFLAGS=-O2 -mcpu=v9 Then I run configure:[oak source]$ ./configure --prefix=/opt/local/encap/samba-3.0.9/samba--sysconfdir=/etc/samba --localstatedir=/var/samba --with-privatedir=/etc/samba/private --with-configdir=/etc/samba --with-smbwrapper --with-ldap --with-automount --with-syslog --with-quotas --with-acl-support--with-krb5=/opt/local Then when i run make, There is an error in dynconfig.c about the header files conflicting between: /usr/include/gssapi (from the SUNWhea package) and /opt/local/incude (from the heimdal package). I can send config.log upon request. Diego