[RESOLVED] PAM missing files

General support questions
saleh
Posts: 97
Joined: 2011/02/18 18:35:11
Location: ~/egypt/alexandria
Contact:

[RESOLVED] PAM missing files

Postby saleh » 2012/07/24 01:34:49

Hello all,
Using CentOS 6.2, when I'm trying to include 'pam_appl.h' and 'pam_misc.h' in a C application, I can't find them as shown below.

Code: Select all

#include <security/pam_appl.h>
#include <security/pam_misc.h>



Code: Select all

pam_app.c:12:31: error: security/pam_appl.h: No such file or directory


So, what can I do? Should I install PAM source and recompile it or what I should do?

Thanks in advance :)

stevemowbray
Posts: 356
Joined: 2012/06/26 14:20:47

Re: PAM missing files

Postby stevemowbray » 2012/07/24 07:57:41

yum install pam-devel

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

[RESOLVED] PAM missing files

Postby pschaff » 2012/07/24 13:55:52

If you should take the recommended step of RPM packaging your C application be sure to include "BuildRequires pam-devel" in your spec file to spare others from the same issue.

saleh
Posts: 97
Joined: 2011/02/18 18:35:11
Location: ~/egypt/alexandria
Contact:

Re: [RESOLVED] PAM missing files

Postby saleh » 2012/07/24 16:53:56

@stevemowbray
Thanks very much, I really appreciate it.

@pschaff
That's an important issue. Thanks a lot, sir.