忘记密码   免费注册 查看新帖 | 论坛精华区

ChinaUnix.net

  平台 论坛 博客 认证专区 大话IT HPC论坛 徽章 文库 沙龙 自测 下载 频道自动化运维 虚拟化 储存备份 C/C++ PHP MySQL 嵌入式 Linux系统
12下一页
最近访问板块 发新帖
查看: 4036 | 回复: 12

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

论坛徽章:
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
发表于 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
发表于 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
发表于 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
发表于 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
发表于 2004-09-18 21:10 |显示全部楼层

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

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

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

论坛徽章:
0
发表于 2004-09-19 01:49 |显示全部楼层

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

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

论坛徽章:
0
发表于 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
发表于 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
发表于 2004-09-20 10:19 |显示全部楼层

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

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

本版积分规则

SACC2017购票8.8折优惠进行时

2017中国系统架构师大会(SACC2017)将于10月19-21日在北京新云南皇冠假日酒店震撼来袭。今年,大会以“云智未来”为主题,云集国内外顶级专家,围绕云计算、人工智能、大数据、移动互联网、产业应用等热点领域展开技术探讨与交流。本届大会共设置2大主会场,18个技术专场;邀请来自互联网、金融、制造业、电商等多个领域,100余位技术专家及行业领袖来分享他们的经验;并将吸引4000+人次的系统运维、架构师及IT决策人士参会,为他们提供最具价值的交流平台。
----------------------------------------
优惠时间:2017年8月2日前

活动链接>>
  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号 北京市公安局海淀分局网监中心备案编号:11010802020122
广播电视节目制作经营许可证(京) 字第1234号 中国互联网协会会员  联系我们:
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP