Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mysql.h: include plugin_auth_common.h for net_async_status enum #590

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from

Conversation

tjanas
Copy link

@tjanas tjanas commented Jan 17, 2025

Function declarations in mysql.h refer to enum net_async_status enum which is defined in plugin_auth_common.h

With g++ 9.5.0 under Ubuntu 22.04.1 LTS, the following errors are produced:

error: use of enum ‘net_async_status’ without previous declaration
 enum net_async_status STDCALL mysql_real_connect_nonblocking(
      ^~~~~~~~~~~~~~~~
error: use of enum ‘net_async_status’ without previous declaration
 enum net_async_status STDCALL mysql_send_query_nonblocking(
      ^~~~~~~~~~~~~~~~
error: use of enum ‘net_async_status’ without previous declaration
 enum net_async_status STDCALL mysql_real_query_nonblocking(
      ^~~~~~~~~~~~~~~~
error: use of enum ‘net_async_status’ without previous declaration
 enum net_async_status STDCALL
      ^~~~~~~~~~~~~~~~
error: use of enum ‘net_async_status’ without previous declaration
 enum net_async_status STDCALL mysql_next_result_nonblocking(MYSQL *mysql);
      ^~~~~~~~~~~~~~~~
error: use of enum ‘net_async_status’ without previous declaration
 enum net_async_status STDCALL mysql_select_db_nonblocking(MYSQL *mysql,
      ^~~~~~~~~~~~~~~~
error: use of enum ‘net_async_status’ without previous declaration
 enum net_async_status STDCALL mysql_free_result_nonblocking(MYSQL_RES *result);
      ^~~~~~~~~~~~~~~~
error: use of enum ‘net_async_status’ without previous declaration
 enum net_async_status STDCALL mysql_fetch_row_nonblocking(MYSQL_RES *res,
      ^~~~~~~~~~~~~~~~

This issue was also reported by vincefn/objcryst#48

I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it.

@mysql-oca-bot
Copy link

Hi, thank you for submitting this pull request. In order to consider your code we need you to sign the Oracle Contribution Agreement (OCA). Please review the details and follow the instructions at https://oca.opensource.oracle.com/
Please make sure to include your MySQL bug system user (email) in the returned form.
Thanks

@tjanas
Copy link
Author

tjanas commented Jan 17, 2025

OCA has already been submitted.

@tjanas
Copy link
Author

tjanas commented Jan 17, 2025

Also reported here: https://boinc.berkeley.edu/forum_thread.php?id=14615

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants