[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

On non-PIC PAM module for OpenSolaris.

From: Mats Erik Andersson
Subject: On non-PIC PAM module for OpenSolaris.
Date: Fri, 5 Oct 2012 14:49:02 +0200
User-agent: Mutt/1.5.18 (2008-05-17)

Hello there,

there is a problem with in OpenSolaris
and OpenIndiana. The module builds well with "--with-pic",
but fails completely without PIC.

The reason is found in

   //  extra/pam_shishi/pam_shishi.c

   #ifndef PIC
   # define PAM_STATIC

   #ifdef PAM_STATIC
   struct pam_module _pam_shishi_modstruct = {
     // ...

Solaris does _not_ provide "struct pam_module",
whence "pam_shishi.o" is not buildable without
"--with-pic". Furthermore, Solaris does not know
the macro PAM_EXTERN. All prototypes are of the form

   // <security/pam_module.h>

  extern int

The interplay between PIC, PAM_STATIC, and PAM_EXTERN
must be improved in "pam_shishi.c".

  Mats Erik Andersson

reply via email to

[Prev in Thread] Current Thread [Next in Thread]