免费注册 查看新帖 |

Chinaunix

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

[FTP] vsftpd+mysql出错求解 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-03-27 22:41 |只看该作者 |倒序浏览
本人想搭建一个vsftpd+mysql的环境,但是编译pam_mysql.so出错,用高人知道这报的是什么错误不,请指点一下

[root@localhost pam_mysql-0.7pre3]# make
/bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/security -I/usr/include    -g -O2 -I/usr/include/mysql -g -pipe -m32 -march=i386 -mtune=pentium4 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE    -c pam_mysql.c
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/security -I/usr/include -g -O2 -I/usr/include/mysql -g -pipe -m32 -march=i386 -mtune=pentium4 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -c pam_mysql.c  -fPIC -DPIC -o .libs/pam_mysql.o
pam_mysql.c:38:1: warning: "_GNU_SOURCE" redefined
<command line>:2:1: warning: this is the location of the previous definition
In file included from pam_mysql.c:124:
/usr/include/md5.h:27: error: syntax error before "UINT4"
/usr/include/md5.h:30: error: syntax error before '}' token
/usr/include/md5.h:38: error: syntax error before "PROTO_LIST"
/usr/include/md5.h:39: error: syntax error before "PROTO_LIST"
/usr/include/md5.h:41: error: syntax error before "PROTO_LIST"
/usr/include/md5.h:43: error: syntax error before "PROTO_LIST"
make: *** [pam_mysql.lo] Error 1

谢谢!!!

论坛徽章:
0
2 [报告]
发表于 2008-03-27 23:11 |只看该作者
补允一下,我用的是CENTOS4.6,用系统自带的MYSQL-4.1.7,另外vsftpd也是系统自带的.pam_mysql用的是pam_mysql-0.7pre3.

论坛徽章:
1
双子座
日期:2015-01-04 14:25:06
3 [报告]
发表于 2008-03-28 14:38 |只看该作者
装mysql-devel包了没有
在编译./configure 时加上--with-openssl

论坛徽章:
1
双子座
日期:2015-01-04 14:25:06
4 [报告]
发表于 2008-03-28 14:40 |只看该作者
或者去
http://rpm.pbone.net/index.php3
下载一个pam_mysql的rpm包试试

论坛徽章:
0
5 [报告]
发表于 2008-03-28 16:10 |只看该作者
谢谢各位,问题解决了,用./configure --with-openssl编译后,make就不会出错了,谢谢三楼的!!!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP