Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Nov 2004 16:48:08 GMT
From:      Michael Hambly <mike@blackbirdsoftware.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/74205: Patch for Connection.cc in the mysqlcppapi port needs to check for higher versions of MySQL.
Message-ID:  <200411211648.iALGm8Oo079849@www.freebsd.org>
Resent-Message-ID: <200411211650.iALGoOWo020619@freefall.freebsd.org>

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

>Number:         74205
>Category:       misc
>Synopsis:       Patch for Connection.cc in the mysqlcppapi port needs to check for higher versions of MySQL.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Nov 21 16:50:24 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Michael Hambly
>Release:        5.3
>Organization:
Blackbird Software Design Ltd.
>Environment:
5.3-RELEASE FreeBSD 5.3-RELEASE #0: Fri Nov  5 04:19:18 UTC 2004     root@harlow.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
The mysqlcppapi port fails to compile against MySQL version 4.1.5
because the mysql_shutdown function parameters changed in version
4.1.3.

The patch for this already exists as /usr/ports/databases/mysqlcppapi/files/patch-mysqlcppapi-Connection.cc.

Problem - the patch checks for specific versions of MySQL as follows:
+#if  ( MYSQL_VERSION_ID == 40103 ) || ( MYSQL_VERSION_ID == 50001 )

This check does not catch higher versions of MySQL which also contain the altered mysql_shutdown function.

>How-To-Repeat:
cd /usr/ports/databases/mysql41-server
make install clean
cd /usr/ports/databases/mysqlcpapi
make install clean

>Fix:
The patch should check for higher version increments of MySQL as follows:
+#if  ( MYSQL_VERSION_ID >= 40103 && MYSQL_VERSION_ID < 50000 ) || ( MYSQL_VERSION_ID >= 50001 )

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



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