Chinaunix

标题: vpopmail-5.4.5 make时候发生的问题和gcc有关么? [打印本页]

作者: 李暮楚    时间: 2004-09-18 19:16
标题: vpopmail-5.4.5 make时候发生的问题和gcc有关么?
[root@localhost vpopmail-5.4.5]# make
make  all-recursive
make[1]: Entering directory `/home/pkg/vpopmail-5.4.5'
Making all in cdb
make[2]: Entering directory `/home/pkg/vpopmail-5.4.5/cdb'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/pkg/vpopmail-5.4.5/cdb'
make[2]: Entering directory `/home/pkg/vpopmail-5.4.5'
gcc -I. -I/usr/local/mysql/include  -I. -I. -I.     -g -O2 -Wall -c `test -f 'vauth.c' || echo './'`vauth.c
vauth.c: In function `load_connection_info':
vauth.c:140: warning: assignment of read-only location
vauth.c:140: incompatible types in assignment
vauth.c:145: warning: assignment of read-only location
vauth.c:145: incompatible types in assignment
vauth.c:147: warning: assignment of read-only location
vauth.c:147: incompatible types in assignment
vauth.c:159: warning: assignment of read-only location
vauth.c:159: incompatible types in assignment
vauth.c:161: warning: assignment of read-only location
vauth.c:161: incompatible types in assignment
vauth.c:162: warning: assignment of read-only location
vauth.c:162: incompatible types in assignment
vauth.c:166: warning: assignment of read-only location
vauth.c:166: incompatible types in assignment
vauth.c:171: warning: assignment of read-only location
vauth.c:171: incompatible types in assignment
vauth.c:173: warning: assignment of read-only location
vauth.c:173: incompatible types in assignment
make[2]: *** [vauth.o] Error 1
make[2]: Leaving directory `/home/pkg/vpopmail-5.4.5'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/pkg/vpopmail-5.4.5'
make: *** [all] Error 2
作者: 李暮楚    时间: 2004-09-18 19:37
标题: vpopmail-5.4.5 make时候发生的问题和gcc有关么?
刚才重新configure了一下,发现错误又多了
vauth.c:33:19: mysql.h: 没有那个文件或目录
vauth.c:40: parse error before "mysql_update"
vauth.c:40: warning: type defaults to `int' in declaration of `mysql_update'
vauth.c:40: warning: data definition has no type or storage class
vauth.c:41: parse error before "mysql_read_getall"
vauth.c:41: warning: type defaults to `int' in declaration of `mysql_read_getall'
vauth.c:41: warning: data definition has no type or storage class
vauth.c:59: parse error before '*' token
vauth.c:59: warning: type defaults to `int' in declaration of `res_update'
vauth.c:59: warning: data definition has no type or storage class
vauth.c:60: parse error before '*' token
vauth.c:60: warning: type defaults to `int' in declaration of `res_read_getall'
vauth.c:60: warning: data definition has no type or storage class
vauth.c:68: parse error before "row"
vauth.c:68: warning: type defaults to `int' in declaration of `row'
vauth.c:68: warning: data definition has no type or storage class
vauth.c:69: parse error before "row_getall"
vauth.c:69: warning: type defaults to `int' in declaration of `row_getall'
vauth.c:69: warning: data definition has no type or storage class
vauth.c: In function `load_connection_info':
vauth.c:140: warning: assignment of read-only location
vauth.c:140: incompatible types in assignment
vauth.c:145: warning: assignment of read-only location
vauth.c:145: incompatible types in assignment
vauth.c:147: warning: assignment of read-only location
vauth.c:147: incompatible types in assignment
vauth.c:159: warning: assignment of read-only location
vauth.c:159: incompatible types in assignment
vauth.c:161: warning: assignment of read-only location
vauth.c:161: incompatible types in assignment
vauth.c:162: warning: assignment of read-only location
vauth.c:162: incompatible types in assignment
vauth.c:166: warning: assignment of read-only location
vauth.c:166: incompatible types in assignment
vauth.c:171: warning: assignment of read-only location
vauth.c:171: incompatible types in assignment
vauth.c:173: warning: assignment of read-only location
vauth.c:173: incompatible types in assignment
vauth.c: In function `vauth_open_update':
vauth.c:203: warning: implicit declaration of function `mysql_init'
vauth.c:204: warning: implicit declaration of function `mysql_options'
vauth.c:204: `MYSQL_OPT_CONNECT_TIMEOUT' undeclared (first use in this function)
vauth.c:204: (Each undeclared identifier is reported only once
vauth.c:204: for each function it appears in.)
vauth.c:207: warning: implicit declaration of function `mysql_real_connect'
vauth.c:217: warning: implicit declaration of function `mysql_select_db'
vauth.c:221: warning: implicit declaration of function `mysql_query'
vauth.c:226: warning: implicit declaration of function `mysql_error'
vauth.c:226: warning: format argument is not a pointer (arg 3)
vauth.c: In function `vauth_adduser':
vauth.c:394: warning: format argument is not a pointer (arg 3)
vauth.c: In function `vauth_getpw':
vauth.c:444: warning: format argument is not a pointer (arg 3)
vauth.c:448: warning: implicit declaration of function `mysql_store_result'
vauth.c:448: warning: assignment makes pointer from integer without a cast
vauth.c:453: warning: implicit declaration of function `mysql_num_rows'
vauth.c:454: warning: implicit declaration of function `mysql_free_result'
vauth.c:472: warning: implicit declaration of function `mysql_fetch_row'
vauth.c:473: subscripted value is neither array nor pointer
vauth.c:473: subscripted value is neither array nor pointer
vauth.c:473: subscripted value is neither array nor pointer
vauth.c:473: subscripted value is neither array nor pointer
vauth.c:473: subscripted value is neither array nor pointer
还有很多 ....直到1535行也有错
作者: 李暮楚    时间: 2004-09-18 20:00
标题: vpopmail-5.4.5 make时候发生的问题和gcc有关么?
把mysql*.h都 拷过去后结果成这个秧子
In file included from vauth.c:33:
mysql.h:110:22: my_alloc.h: 没有那个文件或目录
In file included from vauth.c:33:
mysql.h:116: parse error before "MEM_ROOT"
mysql.h:116: warning: no semicolon at end of struct or union
mysql.h:117: warning: type defaults to `int' in declaration of `MYSQL_DATA'
mysql.h:117: warning: data definition has no type or storage class
mysql.h:174: parse error before "MEM_ROOT"
mysql.h:174: warning: no semicolon at end of struct or union
mysql.h:205: parse error before '}' token
mysql.h:205: warning: type defaults to `int' in declaration of `MYSQL'
mysql.h:205: warning: data definition has no type or storage class
mysql.h:211: parse error before "MYSQL_DATA"
mysql.h:211: warning: no semicolon at end of struct or union
mysql.h:214: parse error before '*' token
mysql.h:214: warning: type defaults to `int' in declaration of `handle'
mysql.h:214: warning: data definition has no type or storage class
mysql.h:215: parse error before "field_alloc"
mysql.h:215: warning: type defaults to `int' in declaration of `field_alloc'
mysql.h:215: warning: data definition has no type or storage class
mysql.h:220: parse error before '}' token
mysql.h:220: warning: type defaults to `int' in declaration of `MYSQL_RES'
mysql.h:220: warning: data definition has no type or storage class
mysql.h:282: parse error before '*' token
mysql.h:283: parse error before '*' token
mysql.h:284: parse error before '*' token
mysql.h:285: parse error before '*' token
mysql.h:287: parse error before '*' token
mysql.h:288: parse error before '*' token
mysql.h:289: parse error before '*' token
mysql.h:291: parse error before '*' token
mysql.h:292: parse error before '*' token
mysql.h:293: parse error before '*' token
mysql.h:294: parse error before '*' token
mysql.h:295: parse error before '*' token
作者: 李暮楚    时间: 2004-09-18 20:13
标题: vpopmail-5.4.5 make时候发生的问题和gcc有关么?
我重新设定参数--enable-incdir=/usr/local/mysql/include --enable-incdir=/usr/local/mysql/lib
结果好了,绕了一大圈,又回来了 :
make[2]: Leaving directory `/home/pkg/vpopmail-5.4.5/cdb'
make[2]: Entering directory `/home/pkg/vpopmail-5.4.5'
gcc -I. -I/usr/local/mysql/include  -I. -I. -I.     -g -O2 -Wall -c `test -f 'vauth.c' || echo './'`vauth.c
vauth.c: In function `load_connection_info':
vauth.c:140: warning: assignment of read-only location
vauth.c:140: incompatible types in assignment
vauth.c:145: warning: assignment of read-only location
vauth.c:145: incompatible types in assignment
vauth.c:147: warning: assignment of read-only location
vauth.c:147: incompatible types in assignment
vauth.c:159: warning: assignment of read-only location
vauth.c:159: incompatible types in assignment
vauth.c:161: warning: assignment of read-only location
vauth.c:161: incompatible types in assignment
vauth.c:162: warning: assignment of read-only location
vauth.c:162: incompatible types in assignment
vauth.c:166: warning: assignment of read-only location
vauth.c:166: incompatible types in assignment
vauth.c:171: warning: assignment of read-only location
vauth.c:171: incompatible types in assignment
vauth.c:173: warning: assignment of read-only location
vauth.c:173: incompatible types in assignment
make[2]: *** [vauth.o] Error 1
make[2]: Leaving directory `/home/pkg/vpopmail-5.4.5'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/pkg/vpopmail-5.4.5'
make: *** [all] Error 2
作者: 李暮楚    时间: 2004-09-18 21:02
标题: vpopmail-5.4.5 make时候发生的问题和gcc有关么?
天下第一怪事:我在不加 configure参数,光板来了一次后,理所当然的 configure成功,而后make成功,而后,我感觉这种不要数据库的vpopmail不大喜欢,于是,我就加上参数再次configure,再次make,居然竟然决决然:::
OK了,make install-strip也成功了 .我的参数是按照Funbsd兄翻译的文档作的

gcc依旧是3.2.2;而只不过安装了一个zlib1.2.1,./configue 没有指定安装路径,它能装到哪里去了 讷 ?find / -name zlib没见到什么

http://bbs.chinaunix.net/forum/viewtopic.php?t=168258
灵感来自于此~~~~~
作者: 李暮楚    时间: 2004-09-18 21:10
标题: vpopmail-5.4.5 make时候发生的问题和gcc有关么?
默认域存在!!但是数据库是空的vpopmail库是空的 !!!
添加一个域和用户名后,数据库还是空的!!!!!!我倒~~~~~~

今天是我的二十五生日,流年不利~~~~~~
作者: liusn2000    时间: 2004-09-19 01:49
标题: vpopmail-5.4.5 make时候发生的问题和gcc有关么?
编译时候的错误除非是通性,否则一般来说别人无法提出具体的指导!
但是这类事情并非坏事情,而是好事情,因为经过你的努力你能从中得到更多的经验,以后类似的情况你就能迅速找到解决的方法,这就是所谓的“经验”!
今年我也是二十五岁,也是流年不利~~~~~~~
作者: 李暮楚    时间: 2004-09-19 10:07
标题: vpopmail-5.4.5 make时候发生的问题和gcc有关么?
./configure \
--enable-auth-module=mysql \
--enable-incdir=/usr/include/mysql \
--enable-libdir=/usr/lib/mysql \
--enable-mysql-logging \
--enable-mysql-limits \
--enable-valias \
--enable-tcprules-prog=/usr/local/bin/tcprule
--enable-tcpserver-file=/home/vpopmail/etc/tcp.smtp
--enable-ip-alias-domains=n
--enable-logging=v

这就是我编译时候的参数。
作者: 李暮楚    时间: 2004-09-19 10:20
标题: vpopmail-5.4.5 make时候发生的问题和gcc有关么?
qmailctl脚本启动qmail,启动以后,ps -aux|grep qmail发现只有qmail-send,qmail-smtpd等进程,而没有qmail-pop3d进程这是否正常呢?我用outlook检查,发现帐户测试时候。不能登陆pop3服务!!

qmailctl脚本来自于toaster-scripts-0.6
作者: 思一克    时间: 2004-09-20 10:19
标题: vpopmail-5.4.5 make时候发生的问题和gcc有关么?
vpopmail版本,不要用低的
作者: 李暮楚    时间: 2004-09-20 10:24
标题: vpopmail-5.4.5 make时候发生的问题和gcc有关么?
是啊,我用的5.4.5和5.4.6而且是从inter7下的stable版本。其实和gcc无关,要是真需要我降版本,我还真就完蛋了
作者: 我菜我怕谁    时间: 2004-09-20 10:26
标题: vpopmail-5.4.5 make时候发生的问题和gcc有关么?
我今年也是本历年,运气老背了
郁闷!!
作者: 李暮楚    时间: 2004-09-20 11:41
标题: vpopmail-5.4.5 make时候发生的问题和gcc有关么?
啊,你比我年轻一岁啊,年轻真好,在有个还算不错的工作环境下抓住一年时间好好干以后就有了本钱,唉~~~我24的时候能有现在的条件就好了~~~~
作者: woaimaidong    时间: 2017-06-22 23:17
回复 5# 李暮楚

同样用此法解决了困扰我多时的问题!!




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