> 
> This is AIX?
> 
> Samba 2.0.7 with --with-afs built properly here; AFS headers and 
> libraries 
> are in the standard /usr/afsws/{include,lib}.
> 
> Minimal libraries to add for AIX:
> 
> -lafsauthent -lafsrpc -lrxkad -lrx -llwp -ldes -lpthreads_compat
> 

Thank you for your help.

Yes, it's AIX 4.3.3, AFS 3.6, Samba 2.0.7, gcc 2.95.2. I did
couple more tests and it seems that it compiles/links identically 
even with only 

-lafsauthent -lafsrpc -llwp -lpthreads_compat

However, no matter what I do (I tried all recommendations
posted here and couple more), there remains one mysterious
problem. Some users work just fine, others never authenticate
and smbd crashes. AIX reports this additional info (errpt -a):

ADDITIONAL INFORMATION
pthread_k 88
??
_p_raise 64
raise 34
abort B8
__assert 240
des_key_s 4C
StringToK B8
ka_String BC
ka_UserAu F4
afs_auth 60
password_ 20
pass_chec 23C
password_ 104
reply_ses 9F8
switch_me 528
construct AC
process_s 1D0
smbd_proc 190
main 7B8
__start 8C

SYMPTOM CODE
PCSS/SPI2 FLDS/smbd SIG/6 FLDS/des_key_s VALU/4c

> I did have to apply the following patch to Samba to resolve some 
> conflicts on various platforms:
> 
> --- samba-2.0.7-dist/source/include/includes.h        Tue Apr 25 
> 19:06:46 2000
> +++ samba-2.0.7/source/include/includes.h     Mon Jun 12 14:22:00 2000
> @@ -336,7 +336,7 @@
> 
>  #ifdef HAVE_SYS_SECURITY_H
>  #include <sys/security.h>
> -#include <prot.h>
> +#include </usr/include/prot.h>
>  #define PASSWORD_LENGTH 16
>  #endif  /* HAVE_SYS_SECURITY_H */

There is no prot.h on our system so this was not necessary.

> 
> --- samba-2.0.7-dist/source/passdb/pass_check.c       Tue Jul 20 
> 21:25:12 1999
> +++ samba-2.0.7/source/passdb/pass_check.c    Mon Jun 12 14:23:30 2000
> @@ -137,6 +137,8 @@
> 
>  #ifdef WITH_AFS
> 
> +#define DES_DEFS
> +#define __XDR_INCLUDE__
>  #include <afs/stds.h>
>  #include <afs/kautils.h>
> 

The DES_DEFS made no difference but the __XDR_INCLUDE__ 
indeed solves the rx vs. rpc header conflicts. I also tried
the other alternative (including only rx headers)
but it did not make any difference.

Since the SAMBA AFS code is fairly simple, I suspect 
there is a problem with AFS-supplied libraries on AIX 4.3.3.

Honza ([EMAIL PROTECTED])

Reply via email to