QMail maildir++ Patch for small bugs _unix Linux

Source: Internet
Author: User
Tags parse error qmail
Long time no use of qmail, recently installed a QMail mail server, in a patch,make setup check after an error, compilation does not pass! The prompts are as follows:



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



Syntax error, this question is a little strange, previously installed with Redhat9, did not appear this kind of problem.

Search on the Internet, found that some GCC has enhanced the syntax of detection, previously allowed to define string constants across lines, now cross lines, you must use \,

And in the overmaildirquota.c of maildir++ 's patch, there's this line:




static const char rcsid[]= "$ID: Overquota.c,v 1.0 2002/06/09 16:21:05 Mr
Sam Exp $ ";




After Mr, CentOS4.4 's GCC compilation does not pass,

You need to change to:




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




(Remove the rear carriage return and change the string constants to one line.)

Compile the pass again.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.