免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1375 | 回复: 0
打印 上一主题 下一主题

pam_smb_auth在Solaris系统下的编译 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-01-13 14:09 |只看该作者 |倒序浏览
解开包pam_smb-2.0.0-rc6.tar,consigure;make;
报错:
make[1]: Leaving directory `/users/lyc/tmp/pam_smb-2.0.0-rc6/pamsmbd'
make[1]: Entering directory `/users/lyc/tmp/pam_smb-2.0.0-rc6/pamsmbm'
gcc -DHAVE_CONFIG_H -I../include -I.. -fPIC   -c pam_smb_auth.c -o pam_smb_auth.o
In file included from pam_smb_auth.c:85:
/usr/include/security/pam_modules.h:17: parse error before `*'
/usr/include/security/pam_modules.h:24: parse error before `*'
/usr/include/security/pam_modules.h:31: parse error before `*'
/usr/include/security/pam_modules.h:38: parse error before `*'
/usr/include/security/pam_modules.h:45: parse error before `*'
/usr/include/security/pam_modules.h:59: parse error before `*'
/usr/include/security/pam_modules.h:71: parse error before `*'
/usr/include/security/pam_modules.h:74: parse error before `*'
/usr/include/security/pam_modules.h:83: parse error before `*'
pam_smb_auth.c:108: parse error before `*'
pam_smb_auth.c:113: parse error before `*'
pam_smb_auth.c:117: parse error before `*'
pam_smb_auth.c:121: parse error before `*'
pam_smb_auth.c:140: parse error before `*'
pam_smb_auth.c: In function `_pam_auth_smb':
pam_smb_auth.c:174: `argc' undeclared (first use in this function)
pam_smb_auth.c:174: (Each undeclared identifier is reported only once
pam_smb_auth.c:174: for each function it appears in.)
pam_smb_auth.c:176: `argv' undeclared (first use in this function)
pam_smb_auth.c:201: `pamh' undeclared (first use in this function)
pam_smb_auth.c:201: `PAM_SUCCESS' undeclared (first use in this function)
pam_smb_auth.c:211: `flags' undeclared (first use in this function)
pam_smb_auth.c:217: `PAM_AUTHTOK' undeclared (first use in this function)
pam_smb_auth.c:225: `PAM_AUTHINFO_UNAVAIL' undeclared (first use in this function)
pam_smb_auth.c:267: `PAM_DISALLOW_NULL_AUTHTOK' undeclared (first use in this function)
pam_smb_auth.c:291: `PAM_USER_UNKNOWN' undeclared (first use in this function)
pam_smb_auth.c:334: `PAM_USER' undeclared (first use in this function)
pam_smb_auth.c:358: `PAM_AUTH_ERR' undeclared (first use in this function)
pam_smb_auth.c: At top level:
pam_smb_auth.c:369: parse error before `*'
pam_smb_auth.c: In function `_pam_set_credentials_smb':
pam_smb_auth.c:375: `PAM_SUCCESS' undeclared (first use in this function)
pam_smb_auth.c: At top level:
pam_smb_auth.c:388: parse error before `*'
pam_smb_auth.c: In function `pam_sm_authenticate':
pam_smb_auth.c:393: `pamh' undeclared (first use in this function)
pam_smb_auth.c:393: `flags' undeclared (first use in this function)
pam_smb_auth.c:393: `argc' undeclared (first use in this function)
pam_smb_auth.c:393: `argv' undeclared (first use in this function)
pam_smb_auth.c: At top level:
pam_smb_auth.c:397: parse error before `*'
pam_smb_auth.c: In function `pam_sm_setcred':
pam_smb_auth.c:402: `pamh' undeclared (first use in this function)
pam_smb_auth.c:402: `flags' undeclared (first use in this function)
pam_smb_auth.c:402: `argc' undeclared (first use in this function)
pam_smb_auth.c:402: `argv' undeclared (first use in this function)
make[1]: *** [pam_smb_auth.o] Error 1
make[1]: Leaving directory `/users/lyc/tmp/pam_smb-2.0.0-rc6/pamsmbm'
make: *** [subdirs] Error 2
上网google了一下,相同错误的不少,大都说没有开发环境如pam-lib,没办法,不能偷懒了。步步跟踪下来,原来是没有使用头文件/usr/include/security/pam_appl.h,为什么没有使用了,原来是configure时生成的config.h不对,至于为什么不对,就不去深究了,呵呵,看样子5y没到家啊~~~
configure执行完后,修改include/config.h,添加红色部分:
/* Define if you have the  header file.  */
/* #undef HAVE_SECURITY_PAM_APPL_H */
/* added by lyc */
#define HAVE_SECURITY_PAM_APPL_H 1
/* added by lyc end */
/* Define if you have the  header file.  */
#define HAVE_SECURITY_PAM_MODULES_H 1
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/13045/showart_67602.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP