misc/74205: Patch for Connection.cc in the mysqlcppapi port needs to check for higher versions of MySQL.

Michael Hambly mike at blackbirdsoftware.com
Sun Nov 21 16:50:33 GMT 2004


>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 at 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:


More information about the freebsd-bugs mailing list