title: pam_appl.h and pam_misc.h missing, in rshd.c source code
body: <p>I am working on a <strong>centOS 5.5 OS</strong>.</p>
  
  <p>It shows error that /security/pam_appl.h and /security/misc.h file is missing.</p>
  
  <p>Actually my rshd.c does not loads PAM module, may be by putting this libraries, it helps me to work my rshd fine. That's why I posted this question.</p>
  
  <p><strong>Error:-</strong></p>
  
  <pre><code>rshd.c:90:31: error: security/pam_appl.h: No such file or directory
  rshd.c:91:31: error: security/pam_misc.h: No such file or directory
  </code></pre>
  
  <p>I search a lot but didn't get any useful rpm that gives these files.</p>
  
  <p>Some links are <a href="http://rpmfind.net/linux/rpm2html/search.php?query=/usr/include/security/pam_appl.h" rel="noreferrer">here</a>. But not suitable for centOS. </p>
  
  <p>Help me. Tell me how can I overcome from this problem.</p>
  
  <p><strong>Edit no 1</strong></p>
  
  <p>Your third link seems useful. When I try to install pam-devel , it shows some error.</p>
  
  <p>When I run </p>
  
  <pre><code>./configure --prefix=/usr \
              --sysconfdir=/etc \
              --docdir=/usr/share/doc/Linux-PAM-1.1.6 \
              --disable-nis &amp;&amp;
  make
  </code></pre>
  
  <p>it checks for some variables , then it makes object file, but at the end it shows,</p>
  
  <pre><code>make[3]: *** [pam_xauth.lo] Error 1
  make[3]: Leaving directory `~/Linux-PAM-1.1.6/modules/pam_xauth'
  make[2]: *** [all-recursive] Error 1
  make[2]: Leaving directory `~/Linux-PAM-1.1.6/modules'
  make[1]: *** [all-recursive] Error 1
  make[1]: Leaving directory `~/Linux-PAM-1.1.6'
  make: *** [all] Error 2
  </code></pre>
  
  <p><strong>Edit No. 2</strong></p>
  
  <p>As I followed your command, it shows me below error, at the end.</p>
  
  <p>This error came, when I run  <code>make &amp;&amp; make install</code></p>
  
  <pre><code>pam_xauth.c:64:27: error: selinux/label.h: No such file or directory
  pam_xauth.c: In function âpam_sm_open_sessionâ:
  pam_xauth.c:616: error: âSELABEL_CTX_FILEâ undeclared (first use in this function)
  pam_xauth.c:616: error: (Each undeclared identifier is reported only once
  pam_xauth.c:616: error: for each function it appears in.)
  pam_xauth.c:616: warning: initialization makes pointer from integer without a cast
  make[3]: *** [pam_xauth.lo] Error 1
  make[3]: Leaving directory `/root/Linux-PAM-1.1.6/modules/pam_xauth'
  make[2]: *** [all-recursive] Error 1
  make[2]: Leaving directory `/root/Linux-PAM-1.1.6/modules'
  make[1]: *** [all-recursive] Error 1
  make[1]: Leaving directory `/root/Linux-PAM-1.1.6'
  make: *** [all] Error 2
  </code></pre>