pam_appl.h和pam_misc.h缺失,在rshd.c源代码中 [英] pam_appl.h and pam_misc.h missing, in rshd.c source code

查看:2244
本文介绍了pam_appl.h和pam_misc.h缺失,在rshd.c源代码中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 centOS 5.5 OS



它显示错误/security/pam_appl.h和/ security / misc。 h文件丢失。



实际上我的rshd.c不加载PAM模块,可能是通过放这个库,它帮助我工作我的rshd罚款。这是我发布此问题的原因。



错误: -



< rshd.c:90:31:error:security / pam_appl.h:没有这样的文件或目录
rshd.c:91:31:error:security / pam_misc.h:没有这样的文件或目录



我搜索了很多,但没有得到任何有用的rpm给这些文件。 p>

一些链接是此处。但不适合centOS。



帮助我。请告诉我如何克服这个问题。



编辑1



您的第三个链接似乎有用。当我尝试安装pam-devel时,它显示一些错误。



当我运行

  ./ configure --prefix = / usr \ 
--sysconfdir = / etc \
--docdir = / usr / share / doc / Linux-PAM- 6 \
--disable-nis&&&
make

它检查一些变量,然后它使对象文件,它显示,

  make [3]:*** [pam_xauth.lo]错误1 
make [3] :离开目录`〜/ Linux-PAM-1.1.6 / modules / pam_xauth'
make [2]:*** [all-recursive]错误1
make [2]:离开目录`〜 /Linux-PAM-1.1.6/modules'
make [1]:*** [all-recursive]错误1
make [1]:离开目录`〜/ Linux-PAM-1.1。 6'
make:*** [all]错误2



当我按照你的命令,它显示我下面的错误,在结束。



这个错误来了,当我运行 make&& make install

  pam_xauth.c:64:27:error:selinux / label.h:No这样的文件或目录
pam_xauth.c:在函数âpam_sm_open_sessionâ:
pam_xauth.c:616:错误:âSELABEL_CTX_FILEâundeclared(第一次使用在这个函数)
pam_xauth.c:616:错误:每个未声明的标识符只报告一次
pam_xauth.c:616:error:对于每个函数它出现在
pam_xauth.c:616:warning:初始化使指针从整数没有转换
make [3]:*** [pam_xauth.lo]错误1
make [3]:离开目录`/root/Linux-PAM-1.1.6/modules/pam_xauth'
make [2 ]:*** [all-recursive]错误1
make [2]:离开目录`/root/Linux-PAM-1.1.6/modules'
make [1]:*** [ all-recursive]错误1
make [1]:离开目录`/root/Linux-PAM-1.1.6'
make:*** [all]错误2


解决方案

我目前没有CentOS,但似乎这是一个常见的问题。有关信息,请参见此处,建议您安装pam-devel,以使您没有通过以下方式从源代码构建:

  yum install pam-devel 

每次我找到网站,其中问题是相同的作为您的修复是安装此。我正在下载CentOS 5.5,现在试一试,但你是否只是尝试运行该命令?



如果你安装了它,它仍然找不到头文件我会尝试一下:

  cd / 
sudo find。 -namepam_appl.h
sudo find。 -namepam_misc.h

这可能是他们安装的,没有进入你的标准include路径,或没有进入 security / 目录,在这种情况下,您需要移动它们或更改标头包含在代码中的方式。



注意对于 sudo 命令,您必须输入密码。 / p>

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 loads PAM module, may be by putting this libraries, it helps me to work my rshd fine. That's why I posted this question.

Error:-

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

I search a lot but didn't get any useful rpm that gives these files.

Some links are here. But not suitable for centOS.

Help me. Tell me how can I overcome from this problem.

Edit no 1

Your third link seems useful. When I try to install pam-devel , it shows some error.

When I run

./configure --prefix=/usr \
            --sysconfdir=/etc \
            --docdir=/usr/share/doc/Linux-PAM-1.1.6 \
            --disable-nis &&
make

it checks for some variables , then it makes object file, but at the end it shows,

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

Edit No. 2

As I followed your command, it shows me below error, at the end.

This error came, when I run make && make install

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

解决方案

I don't have CentOS at the moment, but it seems like this is a common problem. See here for information, it's suggested you install pam-devel so you don't have to build from source via:

yum install pam-devel

Seems everytime I find a site where the problem is the same as yours the fix is to install this. I'm downloading CentOS 5.5 to give it a try now, but did you just try running that command?

If you did install that and it's still not finding the header files I'd give this a try:

cd /
sudo find . -name "pam_appl.h"
sudo find . -name "pam_misc.h"

It's possible that they were installed and didn't go into your standard include path, or didn't go into the security/ directory, in which case you'll need to either move them or change the way the header is included in your code.

Note for the sudo commands you'll have to enter your password.

这篇关于pam_appl.h和pam_misc.h缺失,在rshd.c源代码中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆