Bug 97565

Summary: [PATCH] mail/dovecot: fix startup problem on 4.x
Product: Ports & Packages Reporter: Rong-En Fan <rafan>
Component: Individual Port(s)Assignee: Cheng-Lung Sung <clsung>
Status: Closed FIXED    
Severity: Affects Only Me CC: robin
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
dovecot-1.0.b8_1.patch
none
dovecot-1.0.b8_1.diff
none
file.dat none

Description Rong-En Fan 2006-05-21 19:00:44 UTC
On 4.x with GCC < 3.2, dovecot refuses to startup and the error is
"Fatal: Protocol imaps given more than once". This is due to we have a
old compiler GCC 2.95. Using GCC >= 3.2 will be fine. The author has
a patch to fix this (not committed into dovecot's cvs yet). For details,
please read the following mailing thread:

http://www.dovecot.org/list/dovecot/2006-May/013389.html

The patch is obtained from the mailing archive (mailman screwed up the
patch, you can grab from dovecot.org's mbox archive). Since this patch
is not committed into dovecot's cvs, I prefer to enable it only if base
has GCC < 3.2.

I'm running dovecot 1.0 beta8 with this patch on a 4.11 box for one day
without any problems.

Added file(s):
- files/extra-c89-fix

Port maintainer (robin@isometry.net) is cc'd.

Generated with FreeBSD Port Tools 0.77
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2006-05-21 19:04:10 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback
Comment 2 Robin Breathe 2006-05-23 22:33:29 UTC
Please commit the attached patch rather than that included above.
It fixes the the C89 alignment issue encountered when compiling with  
gcc-2.95 in addition to the dlerror() problem reported in ports/97671.
The patch is not conditionally applied as it will soon be removed,  
and does no harm in the C99 case.
Comment 3 Cheng-Lung Sung freebsd_committer freebsd_triage 2006-05-27 17:36:48 UTC
Responsible Changed
From-To: freebsd-ports-bugs->clsung

I'll take it.
Comment 4 Cheng-Lung Sung freebsd_committer freebsd_triage 2006-05-27 23:29:15 UTC
State Changed
From-To: feedback->closed

Committed with maintainer's patch. Thank you.