Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Sep 2006 21:32:44 +0200 (CEST)
From:      corwin@aeternal.net
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        bsdml@werner.st
Subject:   ports/103691: [patch] ulong not declared in driver-mysql.c while compiling mail/dovecot (1.0.r7_1)	
Message-ID:  <20060926193244.9804CB9AB@amber.aeternal.net>
Resent-Message-ID: <200609261940.k8QJeHqs083090@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         103691
>Category:       ports
>Synopsis:       [patch] ulong not declared in driver-mysql.c while compiling mail/dovecot (1.0.r7_1)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Sep 26 19:40:17 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Martin Hudec
>Release:        FreeBSD 6.1-RELEASE-p7 i386
>Organization:
>Environment:
System: FreeBSD amber.aeternal.net 6.1-RELEASE-p7 FreeBSD 6.1-RELEASE-p7 #1: Sun Sep 24 14:25:38 CEST 2006 corwin@amber.aeternal.net:/usr/obj/usr/src/sys/AMBER i386

>Description:
While trying to compile actual port of mail/dovecot (as of Sep 26th 2006 it is version 1.0.r7_1) with MySQL support enabled I have encountered error in driver-mysql.c stating errors in driver-mysql.c regarding ulong not defined.

>How-To-Repeat:
Always while trying to compile mail/dovecot with MySQL support enabled.

>Fix:
Please see attached patch (driver-mysql.c.diff). After fixing, dovecot is good to be compiled and installed.

--- driver-mysql.c.diff begins here ---
--- /usr/ports/mail/dovecot/work/dovecot-1.0.rc7/src/lib-sql/driver-mysql.c.orig	Tue Sep 26 21:05:32 2006
+++ /usr/ports/mail/dovecot/work/dovecot-1.0.rc7/src/lib-sql/driver-mysql.c	Tue Sep 26 21:06:57 2006
@@ -231,6 +231,7 @@
 #ifdef CLIENT_MULTI_STATEMENTS
 	/* Updates require this because everything is committed in one large
 	   SQL statement. */
+        typedef unsigned long ulong;
 	db->client_flags |= CLIENT_MULTI_STATEMENTS;
 #endif
 
--- driver-mysql.c.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060926193244.9804CB9AB>