[OpenAFS-devel] IRIX 6.5, PAM and OpenAFS

Atro Tossavainen Atro.Tossavainen@helsinki.fi
Tue, 29 Nov 2005 16:10:49 +0200 (EET)


Hello,

The ready-made kit of OpenAFS for SGI IRIX 6.5 does not contain the
OpenAFS PAM module.  However, IRIX has included the possibility to use
PAM for a while now, and I would very much like to make use of it as
one of the most annoying AFS gotchas on IRIX, that of not being able
to use the built-in screensaver, ought to go away when authentication
is performed against PAM instead of the built-in hooks to afs*authlib.so
in login, xdm and Visual Login, but not in xlock...

I have also tried to build OpenAFS 1.4.0 from source myself on this
IRIX 6.5.28 system, using

configure --disable-afsdb --enable-transarc-paths --with-afs-sysname=sgi_65

more or less as I would on a Linux system.  The system has gcc 3.4.2
and MIPSpro 7.3 compilers installed.  The configure says "checking for
gcc" and finds it but picks the MIPSpro compiler anyway, it seems.
Not that I particularly mind.  But it fails, in PAM:

set -x; \
if test "yes" = "yes"; then \
        cd src && cd pam && gmake all ; \
else \
        echo Skipping pam for sgi_65 ; \
fi
+ test yes = yes
+ cd src
+ cd pam
+ gmake all
gmake[3]: Entering directory `/tmp/oafs-cc/src/pam'
/usr/bin/cc  -I/tmp/oafs-cc/src/config -I/tmp/oafs-cc/include   -c test_pam.c
cc-1140 cc: WARNING File = test_pam.c, Line = 27
  A value of type
          "int (*)(int, struct pam_message **, struct pam_response **, void *)"
          cannot be used to initialize an entity of type "int (*)(int, const
          struct pam_message **, struct pam_response **, void *)".

  static struct pam_conv pam_conv = { &my_conv, NULL };
                                      ^

cc-1164 cc: ERROR File = test_pam.c, Line = 137
  Argument of type "int" is incompatible with parameter of type "const char *".

                r->resp = strdup(getpassphrase(m->msg));
                                 ^

1 error detected in the compilation of "test_pam.c".
gmake[3]: *** [test_pam.o] Error 2
gmake[3]: Leaving directory `/tmp/oafs-cc/src/pam'
gmake[2]: *** [pam] Error 2
gmake[2]: Leaving directory `/tmp/oafs-cc'
gmake[1]: *** [build] Error 2
gmake[1]: Leaving directory `/tmp/oafs-cc'
gmake: *** [all] Error 2

The PAM development kit is installed:

$ versions | grep pam
I  eoe.sw.pam           11/22/2005  Irix PAM Support
I  eoe.sw.pam_dev       11/22/2005  Irix PAM Development Hdrs/Libs


-- 
Atro Tossavainen (Mr.)               / The Institute of Biotechnology at
Systems Analyst, Techno-Amish &     / the University of Helsinki, Finland,
+358-9-19158939  UNIX Dinosaur     / employs me, but my opinions are my own.
< URL : http : / / www . helsinki . fi / %7E atossava / > NO FILE ATTACHMENTS