Chinaunix

标题: pam_mysql & mysql & FreeBSD [打印本页]

作者: 弯弯    时间: 2003-08-03 10:20
标题: pam_mysql & mysql & FreeBSD
FreeBSD4.8
Mysql4.0.14
pam_mysql0.5

如果用ports安装pam_mysql0.4.7的话,非要替我安上Mysql3,如果自己下载pam_mysql的话,不知怎么才能装上。

"Makefile", line 3: Need an operator
"Makefile", line 4: Need an operator
"Makefile", line 5: Need an operator
"Makefile", line 10: Need an operator
"Makefile", line 11: Need an operator
"Makefile", line 12: Need an operator
"Makefile", line 13: Need an operator
"Makefile", line 27: Need an operator
"Makefile", line 29: Need an operator
"Makefile", line 31: Need an operator
"Makefile", line 33: Need an operator
"Makefile", line 46: Need an operator
"Makefile", line 48: Need an operator
"Makefile", line 49: Need an operator
"Makefile", line 51: Need an operator
"Makefile", line 54: Need an operator
"Makefile", line 56: Need an operator
"Makefile", line 58: Need an operator
"Makefile", line 60: Need an operator
"Makefile", line 62: Need an operator
"Makefile", line 66: Need an operator
"Makefile", line 68: Need an operator
"Makefile", line 70: Need an operator
"Makefile", line 72: Need an operator
"Makefile", line 75: Need an operator
"Makefile", line 79: Need an operator
"Makefile", line 81: Need an operator
make: fatal errors encountered -- cannot continue
作者: dwolf    时间: 2003-11-21 09:48
标题: pam_mysql & mysql & FreeBSD
解压后有个Makefile.bsd替换掉默认的Makefile
但是我编译还报错!
=======
mdunix# mv Makefile Makefile.linux
mdunix# mv Makefile.bsd Makefile
mdunix# ls
CREDITS         Changelog       Makefile        Makefile.linux  Readme          pam_mysql.c
mdunix# make
Warning: Object directory not changed from original /home/tools/mail/pam_mysql
cc -O -pipe -mcpu=pentiumpro -Wall -I/usr/src/contrib/libpam/libpam/include -I/usr/local/include -DHAVE_MD5DATA  -c pam_mysql.c -o pam_mysql.o
pam_mysql.c:35:25: mysql/mysql.h: No such file or directory
pam_mysql.c:57:31: security/pam_misc.h: No such file or directory
pam_mysql.c:81: syntax error before '*' token
pam_mysql.c:81: warning: type defaults to `int' in declaration of `mysql_auth'
pam_mysql.c:81: warning: data definition has no type or storage class
pam_mysql.c:141: syntax error before '*' token
pam_mysql.c:143: syntax error before '*' token
pam_mysql.c:151: syntax error before '*' token
pam_mysql.c:391: syntax error before '*' token
pam_mysql.c: In function `db_connect':
pam_mysql.c:401: warning: implicit declaration of function `mysql_init'
pam_mysql.c:401: `auth_sql_server' undeclared (first use in this function)
pam_mysql.c:401: (Each undeclared identifier is reported only once
pam_mysql.c:401: for each function it appears in.)
pam_mysql.c:402: warning: implicit declaration of function `mysql_real_connect'
pam_mysql.c:404: warning: assignment makes pointer from integer without a cast
pam_mysql.c:407: warning: implicit declaration of function `mysql_select_db'
pam_mysql.c:411: warning: implicit declaration of function `mysql_error'
pam_mysql.c:411: warning: format argument is not a pointer (arg 3)
pam_mysql.c: In function `db_close':
pam_mysql.c:424: warning: implicit declaration of function `mysql_close'
pam_mysql.c: At top level:
pam_mysql.c:428: syntax error before '*' token
pam_mysql.c: In function `db_checkpasswd':
pam_mysql.c:438: `MYSQL_RES' undeclared (first use in this function)
pam_mysql.c:438: `result' undeclared (first use in this function)
pam_mysql.c:439: syntax error before "row"
pam_mysql.c:452: `user' undeclared (first use in this function)
pam_mysql.c:462: warning: implicit declaration of function `mysql_escape_string'
pam_mysql.c:509: warning: implicit declaration of function `mysql_query'
pam_mysql.c:509: `auth_sql_server' undeclared (first use in this function)
pam_mysql.c:513: warning: implicit declaration of function `mysql_store_result'
pam_mysql.c:516: warning: format argument is not a pointer (arg 3)
pam_mysql.c:517: warning: implicit declaration of function `mysql_free_result'
pam_mysql.c:521: warning: implicit declaration of function `mysql_num_rows'
pam_mysql.c:528: `row' undeclared (first use in this function)
pam_mysql.c:528: warning: implicit declaration of function `mysql_fetch_row'
pam_mysql.c:531: warning: format argument is not a pointer (arg 3)
pam_mysql.c:536: `passwd' undeclared (first use in this function)
pam_mysql.c:576: warning: implicit declaration of function `make_scrambled_password'
pam_mysql.c: In function `converse':
pam_mysql.c:617: warning: implicit declaration of function `pam_get_item'
pam_mysql.c:623: `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: format argument is not a pointer (arg 3)
pam_mysql.c: In function `saltify':
pam_mysql.c:648: warning: implicit declaration of function `time'
pam_mysql.c: At top level:
pam_mysql.c:673: syntax error before '*' token
pam_mysql.c: In function `updatePasswd':
pam_mysql.c:690: `user' undeclared (first use in this function)
pam_mysql.c:690: `newpass' undeclared (first use in this function)
pam_mysql.c:692: `oldpass' undeclared (first use in this function)
pam_mysql.c:692: `isRoot' undeclared (first use in this function)
pam_mysql.c:786: `my' undeclared (first use in this function)
pam_mysql.c:789: warning: format argument is not a pointer (arg 3)
pam_mysql.c: In function `askForPassword':
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:829: warning: implicit declaration of function `_pam_drop_reply'
pam_mysql.c:830: `PAM_CONV_AGAIN' undeclared (first use in this function)
pam_mysql.c:831: `PAM_INCOMPLETE' undeclared (first use in this function)
pam_mysql.c:836: warning: implicit declaration of function `pam_set_item'
pam_mysql.c: At top level:
pam_mysql.c:839: syntax error before '*' token
pam_mysql.c: In function `sqlLog':
pam_mysql.c:886: `user' undeclared (first use in this function)
pam_mysql.c:893: `msg' undeclared (first use in this function)
pam_mysql.c:952: warning: implicit declaration of function `mysql_real_query'
pam_mysql.c:952: `auth_sql_server' undeclared (first use in this function)
pam_mysql.c:963: warning: format argument is not a pointer (arg 3)
pam_mysql.c: In function `pam_sm_authenticate':
pam_mysql.c:989: syntax error before "auth_sql_server"
pam_mysql.c:999: warning: implicit declaration of function `pam_get_user'
pam_mysql.c:1019: `auth_sql_server' undeclared (first use in this function)
pam_mysql.c: In function `pam_sm_chauthtok':
pam_mysql.c:1077: syntax error before "auth_sql_server"
pam_mysql.c:1100: `auth_sql_server' undeclared (first use in this function)
/usr/include/machine/endian.h: At top level:
pam_mysql.c:1047: warning: `pam_sm_acct_mgmt' defined but not used
pam_mysql.c:982: warning: `pam_sm_authenticate' defined but not used
pam_mysql.c:1069: warning: `pam_sm_chauthtok' defined but not used
pam_mysql.c:1211: warning: `pam_sm_close_session' defined but not used
pam_mysql.c:1201: warning: `pam_sm_open_session' defined but not used
pam_mysql.c:1057: warning: `pam_sm_setcred' defined but not used
*** Error code 1
作者: swimcat    时间: 2003-11-30 14:57
标题: pam_mysql & mysql & FreeBSD
我现在的问题和你差不多,主要是MYSQL.H文件找不到,我晕.
我的SQL现在服务都能起,看上去好象不什么问题,可能是还要先装其它包的问题.




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2