Bug 66498 - my_bool removed after MySQL 8.0.1
Summary: my_bool removed after MySQL 8.0.1
Status: NEW
Alias: None
Product: APR
Classification: Unclassified
Component: APR-util (show other bugs)
Version: HEAD
Hardware: PC Mac OS X 10.1
: P2 normal (vote)
Target Milestone: ---
Assignee: Apache Portable Runtime bugs mailinglist
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-27 19:24 UTC by Enji Cooper
Modified: 2023-04-01 15:56 UTC (History)
0 users



Attachments
diff for apr-util 1.6.3 (355 bytes, patch)
2023-04-01 15:56 UTC, Bernard Spil
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Enji Cooper 2023-02-27 19:24:46 UTC
From https://dev.mysql.com/doc/relnotes/mysql/8.0/en/news-8-0-1.html#mysqld-8-0-1-compiling :

> Incompatible Change: The my_bool type is no longer used in MySQL source code. > Any third-party code that used this type to represent C boolean variables should use the bool or int C type instead.
>
> Note
> The change from my_bool to bool means that the mysql.h header file now requires a C++ or C99 compiler to compile.

Some modifications might be required to support outdated versions of MySQL.
Comment 1 Enji Cooper 2023-02-27 19:26:45 UTC
Other related issue: https://bz.apache.org/bugzilla/show_bug.cgi?id=62631 .
Comment 2 Bernard Spil 2023-04-01 15:56:47 UTC
Created attachment 38530 [details]
diff for apr-util 1.6.3

This fixes the build issue with MySQL whilst not breaking MariaDB builds.

See also https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=269857