MySQL++

View Ticket
Login
Ticket Hash: 703152e2da0c96f18970cc860dc5d6c16b4c3675
Title: build error with MySQL 8.3
Status: Open Type: Build Failure
Severity: Critical Priority:
Subsystem: Resolution:
Last Modified: 2024-01-17 23:13:02
Version Found In: 3.3.0
User Comments:
anonymous added on 2024-01-17 23:13:02:

Hi, Homebrew maintainer here. We are seeing a build error when trying to build with MySQL 8.3.0 due to some API deprecations - https://dev.mysql.com/doc/relnotes/mysql/8.3/en/news-8-3-0.html#mysqld-8-3-0-deprecation-removal


024-01-17T12:12:10.7876370Z clang++ -std=gnu++11 -c -o mysqlpp_cpool.o -I. -I/opt/homebrew/opt/mysql-client/include/mysql -dynamic -fPIC -DPIC  -g -O2 -fno-common ./lib/cpool.cpp
2024-01-17T12:12:10.7877430Z In file included from ./lib/connection.cpp:30:
2024-01-17T12:12:10.7878130Z ./lib/dbdriver.h:395:11: error: use of undeclared identifier 'mysql_kill'
2024-01-17T12:12:10.7878750Z                 return !mysql_kill(&mysql_, tid);
2024-01-17T12:12:10.7879150Z                         ^
2024-01-17T12:12:10.7879730Z ./lib/dbdriver.h:495:11: error: use of undeclared identifier 'mysql_refresh'
2024-01-17T12:12:10.7880400Z                 return !mysql_refresh(&mysql_, options);
2024-01-17T12:12:10.7880820Z                         ^
2024-01-17T12:12:10.7881860Z clang++ -std=gnu++11 -c -o mysqlpp_datetime.o -I. -I/opt/homebrew/opt/mysql-client/include/mysql -dynamic -fPIC -DPIC  -g -O2 -fno-common ./lib/datetime.cpp
2024-01-17T12:12:10.7883580Z clang++ -std=gnu++11 -c -o mysqlpp_dbdriver.o -I. -I/opt/homebrew/opt/mysql-client/include/mysql -dynamic -fPIC -DPIC  -g -O2 -fno-common ./lib/dbdriver.cpp
2024-01-17T12:12:10.7885380Z clang++ -std=gnu++11 -c -o mysqlpp_field_names.o -I. -I/opt/homebrew/opt/mysql-client/include/mysql -dynamic -fPIC -DPIC  -g -O2 -fno-common ./lib/field_names.cpp
2024-01-17T12:12:10.7886480Z In file included from ./lib/dbdriver.cpp:27:
2024-01-17T12:12:10.7887160Z ./lib/dbdriver.h:395:11: error: use of undeclared identifier 'mysql_kill'
2024-01-17T12:12:10.7887770Z                 return !mysql_kill(&mysql_, tid);
2024-01-17T12:12:10.7888170Z                         ^
2024-01-17T12:12:10.7888750Z ./lib/dbdriver.h:495:11: error: use of undeclared identifier 'mysql_refresh'
2024-01-17T12:12:10.7889420Z                 return !mysql_refresh(&mysql_, options);
2024-01-17T12:12:10.7889840Z                         ^
2024-01-17T12:12:10.7890140Z 2 errors generated.

It looks like this project has not had any recent development, so we will likely have to deprecate.

https://github.com/Homebrew/homebrew-core/pull/160037