[torquedev] [PATCH] Problems with PAM

Garrick Staples garrick at usc.edu
Thu Nov 1 12:39:05 MDT 2007


On Thu, Nov 01, 2007 at 01:48:31PM +0100, Adrian Knoth alleged:
> Hi!
> 
> Though I have been able to compile torque with PAM support in the past,
> there are now some problems.
> 
> I haven't checked whether it is my PAM version (0.99.7.1) or something
> else, but here's the snippet from config.log:
> 
> 
> | extern int
> | pam_get_user(
> |         pam_handle_t *pamh,             /* PAM handle */
> |         char **user,                    /* User Name */
> |         const char *prompt              /* Prompt */
> | );
> | 
> | 
> | int
> | main ()
> | {
> | 
> |                   char* username;
> |                   pam_get_user(0,&username,0);
> | 
> |   ;
> |   return 0;
> | }
> configure:23228: gcc -c -g -O2 -W -Wall -Wno-unused-parameter -Wno-long-long -pedantic -Werror -D_LARGEFILE64_SOURCE  conftest.c >&5
> cc1: warnings being treated as errors
> conftest.c: In function 'main':
> conftest.c:98: warning: null argument where non-null required (argument 1)
> configure:23234: $? = 1
> 
> Afterwards, pam_get_user_2nd_arg_t is defined as "none", thus breaking
> pam_pbssimpleauth.c:64.
> 
> The attached patch corrects the problem, but I guess there is some
> configure.ac or a bunch of m4 files to be patched instead.
> 
> (the patch is what I'm doing for the Torque Debian package to get a
> working configure and by this a valid value for pam_get_user_2nd_arg_t)

Yes, configure.ac is the correct file to patch.

Thanks, I've committed this to trunk and 2.1-fixes.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.supercluster.org/pipermail/torquedev/attachments/20071101/15f52932/attachment.bin


More information about the torquedev mailing list