Qmail的Maildir++補(bǔ)丁的小錯(cuò)誤
更新時(shí)間:2007年01月13日 00:00:00 作者:
好久沒有用過qmail了,近日安裝一臺(tái)qmail郵件服務(wù)器,在一陣Patch,make setup check后出錯(cuò),編譯不通過!提示如下:
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
語法錯(cuò)誤,這問題有點(diǎn)奇怪,之前用Redhat9安裝,沒出現(xiàn)過此類問題.
網(wǎng)上搜了一下,發(fā)現(xiàn)原來是某些gcc加強(qiáng)了語法的檢測(cè),以前允許定義字符串常量跨行,現(xiàn)在跨行的話,必須使用\,
而在Maildir++的補(bǔ)丁的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 $";
(刪除后面的回車,將字符串常量改成一行即可.)
再次編譯通過.
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
語法錯(cuò)誤,這問題有點(diǎn)奇怪,之前用Redhat9安裝,沒出現(xiàn)過此類問題.
網(wǎng)上搜了一下,發(fā)現(xiàn)原來是某些gcc加強(qiáng)了語法的檢測(cè),以前允許定義字符串常量跨行,現(xiàn)在跨行的話,必須使用\,
而在Maildir++的補(bǔ)丁的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 $";
(刪除后面的回車,將字符串常量改成一行即可.)
再次編譯通過.
相關(guān)文章
深入數(shù)據(jù)驅(qū)動(dòng)編程之表驅(qū)動(dòng)法的詳解
本篇文章是對(duì)表驅(qū)動(dòng)法進(jìn)行了詳細(xì)的分析介紹,需要的朋友參考下2013-05-05Linux 自動(dòng)喚醒和關(guān)閉的實(shí)現(xiàn)方法
這篇文章主要介紹了Linux 自動(dòng)喚醒和關(guān)閉的實(shí)現(xiàn)方法,需要的朋友可以參考下2018-01-01Linux 入門常用命令 password — 修改密碼,改變用戶
Linux 入門常用命令 password — 修改密碼,改變用戶...2007-11-11