LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1020|回复: 3

proftp+mysql+quota 的问题!忙了一下午了没有做出来!

[复制链接]
发表于 2004-2-6 14:57:27 | 显示全部楼层 |阅读模式
我按照http://www.linuxsir.cn/forum.php?mod=viewthread&tid=86815
的帖子来做的。我用的是RH8.0 在上面安装好了apache+mysql+php
用的软件包分别是:
mysql-4.0.17.tar.gz
httpd-2.0.47.tar.gz
php-4.3.3.tar.bz2
这几个软件包我安装在了/opt目录下面!
然后我开始进行proftp+mysql+quota 前几步都做完了在进行./configure我写的语句是
./configure \
--prefix=/opt/proftpd \
--with-modules=mod_sql:mod_sql_mysql:mod_quotatab\
:mod_quotatab_sql:mod_ratio \
--with-includes=/opt/mysql/include/mysql \
--with-libraries=/opt/mysql/lib/mysql
这一步也是正常。但是当我用#make 的时候以为没有问题,我过了一会儿过来看的时候在编译了一段时间后提示:(请大家帮忙了)
mod_sql_mysql.c:1300: warning: type defaults to `int' in declaration of `sql_log'
mod_sql_mysql.c:1300: warning: data definition has no type or storage class
/usr/include/gconv.h:172: warning: array `__data' assumed to have one element
/usr/include/bits/socket.h:237: warning: array `__cmsg_data' assumed to have one element
mod_sql_mysql.c:213: register name not specified for `__result'
mod_sql_mysql.c:1298: register name not specified for `__result'
make[1]: *** [mod_sql_mysql.o] Error 1
make[1]: Leaving directory `/home/temp/proftpd-1.2.9/modules'
make: *** [modules] Error 2
发表于 2004-2-6 18:42:11 | 显示全部楼层
--with-includes=/opt/mysql/include/mysql \
--with-libraries=/opt/mysql/lib/mysql

这两个选项再看一下configure的说明。
 楼主| 发表于 2004-2-8 00:47:46 | 显示全部楼层
问题没有解决呀!!!
发表于 2004-2-8 02:28:42 | 显示全部楼层
vi proftpd-1.2.9/contrib/mod_sql_mysql.c
找到#include 这一行,将mysql.h改成你的系统中此文件所在的路径,如/usr/local/mysql/include/mysql/mysql.h
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表