免费注册 查看新帖 |

Chinaunix

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

suse9 make pam-mysql出错! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-11-13 08:36 |只看该作者 |倒序浏览
从网上下的pam_mysql-0.5.tar.gz
做make时,出错,错误提示如下:

suseliu:/tmp/pam_mysql # make
mkdir -p ./dynamic
gcc -O2 -Dlinux -DLINUX_PAM -ansi -D_POSIX_SOURCE -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wtraditional -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -pedantic -fPIC -DPAM_DYNAMIC  -c pam_mysql.c -o dynamic/pam_mysql.o
pam_mysql.c:56:34: security/pam_modules.h: No such file or directory
pam_mysql.c:57:31: security/pam_misc.h: No such file or directory
pam_mysql.c:106: error: parse error before '*' token
pam_mysql.c:109: warning: function declaration isn't a prototype
pam_mysql.c:111: error: parse error before '*' token
pam_mysql.c:113: warning: function declaration isn't a prototype
pam_mysql.c:115: error: syntax error before "int"
pam_mysql.c:115: error: parse error before '*' token
pam_mysql.c:116: warning: function declaration isn't a prototype
pam_mysql.c:117: error: syntax error before "int"
pam_mysql.c:117: error: parse error before '*' token
pam_mysql.c:118: warning: function declaration isn't a prototype
pam_mysql.c:119: error: syntax error before "int"
pam_mysql.c:119: error: parse error before '*' token
pam_mysql.c:120: warning: function declaration isn't a prototype
pam_mysql.c:121: error: syntax error before "int"
pam_mysql.c:121: error: parse error before '*' token
pam_mysql.c:122: warning: function declaration isn't a prototype
pam_mysql.c:123: error: syntax error before "int"
pam_mysql.c:123: error: parse error before '*' token
pam_mysql.c:124: warning: function declaration isn't a prototype
pam_mysql.c:125: error: syntax error before "int"
pam_mysql.c:125: error: parse error before '*' token
pam_mysql.c:126: warning: function declaration isn't a prototype
pam_mysql.c:133: error: parse error before '*' token
pam_mysql.c:133: warning: function declaration isn't a prototype
pam_mysql.c: In function `breakArgs':
pam_mysql.c:157: warning: traditional C rejects ISO C style function definitions
pam_mysql.c: In function `parseArgs':
pam_mysql.c:233: warning: traditional C rejects ISO C style function definitions
pam_mysql.c: In function `db_connect':
pam_mysql.c:391: warning: traditional C rejects ISO C style function definitions
pam_mysql.c:392: error: `PAM_AUTH_ERR' undeclared (first use in this function)
pam_mysql.c:392: error: (Each undeclared identifier is reported only once
pam_mysql.c:392: error: for each function it appears in.)
pam_mysql.c:399: error: `PAM_SUCCESS' undeclared (first use in this function)
pam_mysql.c: In function `db_close':
pam_mysql.c:420: warning: traditional C rejects ISO C style function definitions
pam_mysql.c: In function `db_checkpasswd':
pam_mysql.c:429: warning: traditional C rejects ISO C style function definitions
pam_mysql.c:440: error: `PAM_AUTH_ERR' undeclared (first use in this function)
pam_mysql.c:456: error: `PAM_BUF_ERR' undeclared (first use in this function)
pam_mysql.c:589: error: `PAM_SUCCESS' undeclared (first use in this function)
pam_mysql.c: At top level:
pam_mysql.c:611: error: parse error before '*' token
pam_mysql.c:613: warning: function declaration isn't a prototype
pam_mysql.c: In function `converse':
pam_mysql.c:617: warning: implicit declaration of function `pam_get_item'
pam_mysql.c:617: error: `pamh' undeclared (first use in this function)
pam_mysql.c:617: error: `PAM_CONV' undeclared (first use in this function)
pam_mysql.c:617: warning: dereferencing type-punned pointer will break strict-aliasing rules
pam_mysql.c:619: error: `PAM_SUCCESS' undeclared (first use in this function)
pam_mysql.c:620: error: dereferencing pointer to incomplete type
pam_mysql.c:620: error: `nargs' undeclared (first use in this function)
pam_mysql.c:621: error: `message' undeclared (first use in this function)
pam_mysql.c:622: error: `response' undeclared (first use in this function)
pam_mysql.c:622: error: dereferencing pointer to incomplete type
pam_mysql.c:623: error: `PAM_CONV_AGAIN' undeclared (first use in this function)
pam_mysql.c:625: warning: implicit declaration of function `pam_strerror'
pam_mysql.c:625: warning: format argument is not a pointer (arg 3)
pam_mysql.c:628: warning: function `pam_strerror' was previously declared within a block
pam_mysql.c:628: warning: format argument is not a pointer (arg 3)
pam_mysql.c: In function `saltify':
pam_mysql.c:636: warning: traditional C rejects ISO C style function definitions
pam_mysql.c:648: warning: implicit declaration of function `time'
pam_mysql.c: In function `updatePasswd':
pam_mysql.c:675: warning: traditional C rejects ISO C style function definitions
pam_mysql.c:681: error: `PAM_AUTH_ERR' undeclared (first use in this function)
pam_mysql.c:699: error: `PAM_BUF_ERR' undeclared (first use in this function)
pam_mysql.c:793: error: `PAM_SUCCESS' undeclared (first use in this function)
pam_mysql.c: At top level:
pam_mysql.c:799: error: parse error before '*' token
pam_mysql.c:800: warning: function declaration isn't a prototype
pam_mysql.c: In function `askForPassword':
pam_mysql.c:801: warning: array type has incomplete element type
pam_mysql.c:801: error: storage size of `msg' isn't known
pam_mysql.c:807: error: `pwprompt' undeclared (first use in this function)
pam_mysql.c:811: error: `PAM_BUF_ERR' undeclared (first use in this function)
pam_mysql.c:817: error: `PAM_PROMPT_ECHO_OFF' undeclared (first use in this function)
pam_mysql.c:820: error: `pamh' undeclared (first use in this function)
pam_mysql.c:823: warning: implicit declaration of function `_pam_overwrite'
pam_mysql.c:824: warning: implicit declaration of function `_pam_drop'
pam_mysql.c:827: error: `PAM_SUCCESS' undeclared (first use in this function)
pam_mysql.c:829: warning: implicit declaration of function `_pam_drop_reply'
pam_mysql.c:830: error: `PAM_CONV_AGAIN' undeclared (first use in this function)
pam_mysql.c:831: error: `PAM_INCOMPLETE' undeclared (first use in this function)
pam_mysql.c:831: error: `PAM_AUTHINFO_UNAVAIL' undeclared (first use in this function)
pam_mysql.c:836: warning: implicit declaration of function `pam_set_item'
pam_mysql.c:836: error: `pwtype' undeclared (first use in this function)
pam_mysql.c:836: error: dereferencing pointer to incomplete type
pam_mysql.c:801: warning: unused variable `msg'
pam_mysql.c: In function `sqlLog':
pam_mysql.c:839: warning: traditional C rejects ISO C style function definitions
pam_mysql.c:849: error: `PAM_SUCCESS' undeclared (first use in this function)
pam_mysql.c:861: error: `PAM_AUTH_ERR' undeclared (first use in this function)
pam_mysql.c:890: error: `PAM_BUF_ERR' undeclared (first use in this function)
pam_mysql.c: At top level:
pam_mysql.c:978: error: syntax error before "int"
pam_mysql.c:978: error: parse error before '*' token
pam_mysql.c:982: warning: function declaration isn't a prototype
pam_mysql.c: In function `pam_sm_authenticate':
pam_mysql.c:995: error: `argc' undeclared (first use in this function)
pam_mysql.c:995: error: `argv' undeclared (first use in this function)
pam_mysql.c:999: warning: implicit declaration of function `pam_get_user'
pam_mysql.c:999: error: `pamh' undeclared (first use in this function)
pam_mysql.c:1001: error: `PAM_SUCCESS' undeclared (first use in this function)
pam_mysql.c:1006: error: `PAM_USER_UNKNOWN' undeclared (first use in this function)
pam_mysql.c:1009: warning: function `pam_get_item' was previously declared within a block
pam_mysql.c:1009: error: `PAM_AUTHTOK' undeclared (first use in this function)
pam_mysql.c:1009: warning: dereferencing type-punned pointer will break strict-aliasing rules
pam_mysql.c:1014: warning: dereferencing type-punned pointer will break strict-aliasing rules
pam_mysql.c:1017: error: `PAM_AUTHINFO_UNAVAIL' undeclared (first use in this function)
pam_mysql.c: At top level:
pam_mysql.c:1045: error: syntax error before "int"
pam_mysql.c:1045: error: parse error before '*' token
pam_mysql.c:1047: warning: function declaration isn't a prototype
pam_mysql.c: In function `pam_sm_acct_mgmt':
pam_mysql.c:1051: error: `PAM_SUCCESS' undeclared (first use in this function)
pam_mysql.c: At top level:
pam_mysql.c:1055: error: syntax error before "int"
pam_mysql.c:1055: error: parse error before '*' token
pam_mysql.c:1057: warning: function declaration isn't a prototype
pam_mysql.c: In function `pam_sm_setcred':
pam_mysql.c:1061: error: `PAM_SUCCESS' undeclared (first use in this function)
pam_mysql.c: At top level:
pam_mysql.c:1067: error: syntax error before "int"
pam_mysql.c:1067: error: parse error before '*' token
pam_mysql.c:1069: warning: function declaration isn't a prototype
pam_mysql.c: In function `pam_sm_chauthtok':
pam_mysql.c:1083: error: `argc' undeclared (first use in this function)
pam_mysql.c:1083: error: `argv' undeclared (first use in this function)
pam_mysql.c:1087: warning: function `pam_get_user' was previously declared within a block
pam_mysql.c:1087: error: `pamh' undeclared (first use in this function)
pam_mysql.c:1088: error: `PAM_SUCCESS' undeclared (first use in this function)
pam_mysql.c:1093: error: `PAM_USER_UNKNOWN' undeclared (first use in this function)
pam_mysql.c:1104: error: `flags' undeclared (first use in this function)
pam_mysql.c:1104: error: `PAM_PRELIM_CHECK' undeclared (first use in this function)
pam_mysql.c:1109: error: `PAM_CHANGE_EXPIRED_AUTHTOK' undeclared (first use in this function)
pam_mysql.c:1112: warning: function `pam_get_item' was previously declared within a block
pam_mysql.c:1112: error: `PAM_OLDAUTHTOK' undeclared (first use in this function)
pam_mysql.c:1113: warning: dereferencing type-punned pointer will break strict-aliasing rules
pam_mysql.c:1120: warning: dereferencing type-punned pointer will break strict-aliasing rules
pam_mysql.c:1122: error: `PAM_AUTHTOK_ERR' undeclared (first use in this function)
pam_mysql.c:1141: error: `PAM_UPDATE_AUTHTOK' undeclared (first use in this function)
pam_mysql.c:1146: warning: function `pam_get_item' was previously declared within a block
pam_mysql.c:1146: error: `PAM_AUTHTOK' undeclared (first use in this function)
pam_mysql.c:1147: warning: dereferencing type-punned pointer will break strict-aliasing rules
pam_mysql.c:1158: warning: dereferencing type-punned pointer will break strict-aliasing rules
pam_mysql.c:1173: warning: dereferencing type-punned pointer will break strict-aliasing rules
pam_mysql.c:1180: warning: dereferencing type-punned pointer will break strict-aliasing rules
pam_mysql.c: At top level:
pam_mysql.c:1199: error: syntax error before "int"
pam_mysql.c:1199: error: parse error before '*' token
pam_mysql.c:1201: warning: function declaration isn't a prototype
pam_mysql.c: In function `pam_sm_open_session':
pam_mysql.c:1205: error: `PAM_SUCCESS' undeclared (first use in this function)
pam_mysql.c: At top level:
pam_mysql.c:1209: error: syntax error before "int"
pam_mysql.c:1209: error: parse error before '*' token
pam_mysql.c:1211: warning: function declaration isn't a prototype
pam_mysql.c: In function `pam_sm_close_session':
pam_mysql.c:1215: error: `PAM_SUCCESS' undeclared (first use in this function)
make: *** [dynamic/pam_mysql.o] Error 1

这是什么原因?
修改pam_mysql.c

#define DEBUG  为 /* #define DEBUG */
也没有任何作用,还是一样有错误提示!

论坛徽章:
0
2 [报告]
发表于 2004-11-13 08:45 |只看该作者

suse9 make pam-mysql出错!

原帖由 "oranger2001"]pam_mysql.o 发表:
Error 1

这是什么原因?
修改pam_mysql.c

#define DEBUG  为 /* #define DEBUG */
也没有任何作用,还是一样有错误提示!


需要安装 pam-devel

论坛徽章:
0
3 [报告]
发表于 2004-11-13 10:14 |只看该作者

suse9 make pam-mysql出错!

楼上大侠的贴为正确答案!
make已经通过!
非常感谢
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP