免费注册 查看新帖 |

Chinaunix

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

[Mail] vpopmail-5.4.5 make时候发生的问题和gcc有关么? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-09-18 19:16 |只看该作者 |倒序浏览
[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

论坛徽章:
0
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行也有错

论坛徽章:
0
3 [报告]
发表于 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

论坛徽章:
0
4 [报告]
发表于 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

论坛徽章:
0
5 [报告]
发表于 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
灵感来自于此~~~~~

论坛徽章:
0
6 [报告]
发表于 2004-09-18 21:10 |只看该作者

vpopmail-5.4.5 make时候发生的问题和gcc有关么?

默认域存在!!但是数据库是空的vpopmail库是空的 !!!
添加一个域和用户名后,数据库还是空的!!!!!!我倒~~~~~~

今天是我的二十五生日,流年不利~~~~~~

论坛徽章:
0
7 [报告]
发表于 2004-09-19 01:49 |只看该作者

vpopmail-5.4.5 make时候发生的问题和gcc有关么?

编译时候的错误除非是通性,否则一般来说别人无法提出具体的指导!
但是这类事情并非坏事情,而是好事情,因为经过你的努力你能从中得到更多的经验,以后类似的情况你就能迅速找到解决的方法,这就是所谓的“经验”!
今年我也是二十五岁,也是流年不利~~~~~~~

论坛徽章:
0
8 [报告]
发表于 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

这就是我编译时候的参数。

论坛徽章:
0
9 [报告]
发表于 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

论坛徽章:
0
10 [报告]
发表于 2004-09-20 10:19 |只看该作者

vpopmail-5.4.5 make时候发生的问题和gcc有关么?

vpopmail版本,不要用低的
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP