Bug 4515 - Solaris 2.6 RPC headers need early gss defines
Solaris 2.6 RPC headers need early gss defines
Status: NEW
Product: Samba 3.0
Classification: Unclassified
Component: Build environment
3.0.23
Other Solaris
: P3 normal
: none
Assigned To: Tim Potter
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-04-16 00:18 UTC by David Leonard (550 5.7.1 Unable to deliver)
Modified: 2007-04-16 00:20 UTC (History)
0 users

See Also:


Attachments
the patch I'm using (956 bytes, patch)
2007-04-16 00:20 UTC, David Leonard (550 5.7.1 Unable to deliver)
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Leonard (550 5.7.1 Unable to deliver) 2007-04-16 00:18:34 UTC
When building on Solaris 2.6 sparc, I found that the gssapi.h headers had to be included earlier than rpc/rpc.h because the sub-included <rpc/rpcsec_gss.h> contains this nastiness:

#ifndef _GSSAPI_H_
typedef void * gss_ctx_id_t;
typedef void * gss_cred_id_t;
typedef void * gss_channel_bindings_t;
#endif

I also ended up adding a #define _GSSAPI_H_ kludge because I was building against a 3rd party gssapi library that typedef'd those pointers differently (as pointers to struct, which is what the RFC says) but didn't define _GSSAPI_H_.

This is only a problem on Solaris 2.6.. and not on Solaris 2.8.
Comment 1 David Leonard (550 5.7.1 Unable to deliver) 2007-04-16 00:20:35 UTC
Created attachment 2386 [details]
the patch I'm using