Qmail的Maildir++补丁的小错误

所属分类: 操作系统 / unix linux 阅读数: 90
收藏 0 赞 0 分享
好久没有用过qmail了,近日安装一台qmail邮件服务器,在一阵Patch,make setup check后出错,编译不通过!提示如下:



overmaildirquota.c:32: warning: data definition has no type or storage class
overmaildirquota.c:33: error: parse error before '}' token
overmaildirquota.c:36: error: redefinition of `ret_value'
overmaildirquota.c:32: error: `ret_value' previously defined here
overmaildirquota.c:36: warning: data definition has no type or storage class
overmaildirquota.c:37: error: parse error before '}' token
make: *** [overmaildirquota.o] Error 1



语法错误,这问题有点奇怪,之前用Redhat9安装,没出现过此类问题.

网上搜了一下,发现原来是某些gcc加强了语法的检测,以前允许定义字符串常量跨行,现在跨行的话,必须使用\,

而在Maildir++的补丁的overmaildirquota.c里面,有这么一行:




static const char rcsid[]="$Id: overquota.c,v 1.0 2002/06/09 16:21:05 mr
sam Exp $";




在mr后面就换行了,CentOS4.4的gcc 编译不通过,

你需要改成:




static const char rcsid[]="$Id: overquota.c,v 1.0 2002/06/09 16:21:05 mrsam_patchByIpaddr Exp $";




(删除后面的回车,将字符串常量改成一行即可.)

再次编译通过. 
更多精彩内容其他人还在看

ipfilter+ipnat包过滤、转发和DHCP服务器架构笔记

ipfilter+ipnat包过滤、转发和DHCP服务器架构笔记
收藏 0 赞 0 分享

FreeBSD5.4Release X Windows 安装笔记 (Freebsd5.4R+Gnome2.10.0)

FreeBSD5.4Release X Windows 安装笔记 (Freebsd5.4R+Gnome2.10.0)
收藏 0 赞 0 分享

在线rss阅读聚合器lilina-0.7安装笔记

在线rss阅读聚合器lilina-0.7安装笔记
收藏 0 赞 0 分享

使用Dreamhost空间下Shell命令的使用方法

使用Dreamhost空间下Shell命令的使用方法
收藏 0 赞 0 分享

Linux下的Grep命令使用方法详细介绍

Linux下的Grep命令使用方法详细介绍
收藏 0 赞 0 分享

linux下修改用户的工具介绍第1/2页

linux下修改用户的工具介绍
收藏 0 赞 0 分享

Linux tar  压缩打包命令使用方法第1/2页

Linux tar  压缩打包命令使用方法
收藏 0 赞 0 分享

Linux 入门常用命令 password — 修改密码,改变用户

Linux 入门常用命令 password — 修改密码,改变用户
收藏 0 赞 0 分享

Linux下必须要学的系统安全命令第1/4页

Linux下必须要学的系统安全命令
收藏 0 赞 0 分享

Linux rpm tar 操作系统下软件的安装与卸载方法

Linux rpm tar 操作系统下软件的安装与卸载方法
收藏 0 赞 0 分享
查看更多