> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, 22 July 1999 15.38
>
> I'm having trouble getting the latest Samba (2.0.5) to compile
> on an rs_aix42 machine - after I've added "-I/usr/afsws/include",
> I wind up with all sorts of whining about duplicate
> declarations when it
> gets to passdb/pass_check.c. Am I missing something obvious?
I spent quite a bit of time getting Samba 2.0.4b to work. AFS support is not fully implemented in Samba 2.0.x. Some changes had to be made to the pass_check.c file, the Makefile and the configure file.
I looked at the Release Notes for 2.0.5 and I don't see that they have fixed any of these problems so I assume that the changes that had to be made to 2.0.4 are still valid.
I'll attach the updated pass_check.c file here along with the a diff files for the configure and Makefile.in.
You should drop the new pass_check.c file in place and apply the two diff files and then run configure with the --with-afs option. Once you do that and the Makefile is built you may have to go in and reverse the order of -laudit and
-lauth in the AFS_LIBS line. In addition, if you are doing this under AFS 3.4a you will have to add the path to your domestic libraries (probably
-L/afs/afsws/domestic/lib).
It is possible that some of the code in pass_check.c has changed from 2.0.4b to 2.0.5 so here are the changes that were applied to that file in the event that they need to be added manually.
Look in the file for this original section
#ifdef WITH_AFS
#include <afs/stds.h>
#include <afs/kautils.h>
and replace it with
#ifdef WITH_AFS
#define KA_USERAUTH_VERSION 1
#define KA_USERAUTH_DOSETPAG 0x10000
That should do it under AIX. Note: I haven't actually compiled this under AIX, I did it all under Solaris but the person that helped me get started had done the above under AIX.
For those that are interested, there are several other changes that have to be made to make this work under Solaris 2.6 or 7.
Let me know if there are any questions. Also let me know if MS Outlook corrupts the attachments and I will resend them from a REAL system. :) (The company makes me use Outlook).
Erik
Sr. System Administrator, MCIWorldcom
Makefile.in.diff