ports/70049: [patch] databases/mysqlcc -- broken with mysql 4.1.3 and 5.0.1

Jie Gao gaoj at cpsc.ucalgary.ca
Thu Aug 5 22:30:26 UTC 2004


>Number:         70049
>Category:       ports
>Synopsis:       [patch] databases/mysqlcc -- broken with mysql 4.1.3 and 5.0.1
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Aug 05 22:30:22 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Jie Gao
>Release:        FreeBSD 4.10-STABLE i386
>Organization:
>Environment:
System: FreeBSD aibsd-stable.cpsc.ucalgary.ca 4.10-STABLE FreeBSD 4.10-STABLE #0: Wed Aug 4 17:21:59 MDT 2004 root at aibsd-stable.cpsc.ucalgary.ca:/usr/obj/usr/src/sys/AIBSDSTABLE i386


	
>Description:
	
The latest beta and alpha version of MySQL, 4.1.3 and 5.0.1 respectively, have
changed mysql_shutdown() API. It requires 2 arguments now. This makes mysqlcc
broken with these versions of mysql.
>How-To-Repeat:
	
Install mysql41-client (4.1.3) and then make mysqlcc.
>Fix:

	
Put this patch to databases/mysqlcc/files

--- patch-shared-src-CMySQL.cpp begins here ---
--- shared/src/CMySQL.cpp.orig	Thu Aug  5 12:26:14 2004
+++ shared/src/CMySQL.cpp	Thu Aug  5 12:29:53 2004
@@ -451,7 +451,11 @@
   if (!isConnected())
     return false;
   
+#if  ( MYSQL_VERSION_ID == 40103 ) || ( MYSQL_VERSION_ID == 50001 )
+  if (mysql_shutdown(mysql,SHUTDOWN_DEFAULT) != 0)
+#else
   if (mysql_shutdown(mysql) != 0)
+#endif
   {
     if (emiterror)
       emitError();
--- patch-shared-src-CMySQL.cpp ends here ---


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



More information about the freebsd-ports-bugs mailing list