标题: 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兄翻译的文档作的