我按照http://www.linuxfans.org/nuke/modules.php?name=Forums&file=viewtopic&t=52251的帖子来做的。我用的是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