[Samba] Solaris 9 (sparc), Heimdal kerberos and Samba 3.0.9

Spicer, Kevin (MBLEA it) Kevin.Spicer at bmrb.co.uk
Thu Nov 25 20:26:14 GMT 2004

I've been having some problems with compiling samba 3.0 with kerberos
support using the heimdal libraries.  My problems are the same as those
detailed in these two archive posts (one from here, one from elsewhere)
Quick summary: Samba attempts to use both the Heimdal gssapi.h and the
Solaris native one, resulting in all sorts of conflicts...
It doesn't look like this problem has been adequately fixed yet.
I've done some digging and found that this is caused by Samba including
rpc.h, which in turn includes rpcsec_gss.h, which then includes
Solaris's gssapi.h
I finally manage to build by editing include.h and moving the gssapi.h
include above the rpc.h include and additionally defining _GSSAPI_H_  so
that the solaris native gssapi would ifndef itself out.  I'm hoping
thats nots going to have any unforseen consequences.  I've certainly
been able to join the AD domain and authenticate sucessfully.

BMRB International 
+44 (0)20 8566 5000
This message (and any attachment) is intended only for the 
recipient and may contain confidential and/or privileged 
material.  If you have received this in error, please contact the 
sender and delete this message immediately.  Disclosure, copying 
or other action taken in respect of this email or in 
reliance on it is prohibited.  BMRB International Limited 
accepts no liability in relation to any personal emails, or 
content of any email which does not directly relate to our 

More information about the samba mailing list