I am working on a centOS 5.5 OS.
It shows error that /security/pam_appl.h and /security/misc.h file is missing.
Actually my rshd.c does not load
For people who find this through the search engines, the following worked for me on CentOS 7:
yum install pam-devel