Bug #112893 The C API mysql_stmt_bind_named_param is not exported in libmysqlclient.so.22
| Submitted: | 31 Oct 2023 8:12 | Modified: | 31 Oct 2023 9:03 |
|---|---|---|---|
| Reporter: | Sebastien FLAESCH | Email Updates: | |
| Status: | Verified | Impact on me: | |
| Category: | MySQL Server: C API (client library) | Severity: | S1 (Critical) |
| Version: | 8.2.0 | OS: | Any |
| Assigned to: | CPU Architecture: | Any | |
| Tags: | symbol export mysql_stmt_bind_named_param | ||
[31 Oct 2023 8:12]
Sebastien FLAESCH
[31 Oct 2023 8:27]
Sebastien FLAESCH
Looking at the sources of 8.2.0, seems libmysql/CMakeLists.txt is missing to list the mysql_stmt_bind_named_param symbol in SET(CLIENT_API_FUNCTIONS ... I am not a CMake expert but looks like that's the reason. Maybe other new C API functions have been forgotten?
[31 Oct 2023 9:03]
MySQL Verification Team
Hello Sebastien FLAESCH, Thank you for the report and feedback! Thanks, Umesh
[31 Oct 2023 10:43]
MySQL Verification Team
Bug #112896 marked duplicate of this one
[31 Oct 2023 10:46]
Daniƫl van Eeden
With this patch: ``` diff --git a/libmysql/CMakeLists.txt b/libmysql/CMakeLists.txt index f7f11f7b25c..3559e7e00c6 100644 --- a/libmysql/CMakeLists.txt +++ b/libmysql/CMakeLists.txt @@ -69,6 +69,7 @@ SET(CLIENT_API_FUNCTIONS mysql_query mysql_set_server_option mysql_stmt_bind_param + mysql_stmt_bind_named_param mysql_stmt_bind_result mysql_stmt_execute mysql_stmt_fetch ``` ``` [dvaneeden@dve-carbon bld]$ objdump -T library_output_directory/libmysqlclient.so | grep -E 'mysql_stmt.*param' 000000000002ffb0 g DF .text 000000000000000b libmysqlclient_22.0 mysql_stmt_param_count 00000000000305e0 g DF .text 0000000000000011 libmysqlclient_22.0 mysql_stmt_bind_param 000000000002fe80 g DF .text 0000000000000007 libmysqlclient_22.0 mysql_stmt_param_metadata 00000000000302a0 g DF .text 0000000000000339 libmysqlclient_22.0 mysql_stmt_bind_named_param ``` And without this patch: ``` [dvaneeden@dve-carbon bld]$ objdump -T library_output_directory/libmysqlclient.so | grep -E 'mysql_stmt.*param' 000000000002ffb0 g DF .text 000000000000000b libmysqlclient_22.0 mysql_stmt_param_count 000000000002fff0 g DF .text 0000000000000338 libmysqlclient_22.0 mysql_stmt_bind_param 000000000002fe80 g DF .text 0000000000000007 libmysqlclient_22.0 mysql_stmt_param_metadata ``` This is with a clone of the trunk branch of mysql/mysql-server and: ``` mkdir bld cd bld cmake .. -DDOWNLOAD_BOOST=1 -DWITH_BOOST=../boost make -j8 libmysql ```
[13 Nov 2023 6:10]
MySQL Verification Team
Bug #113055 marked as duplicate of this one
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.057 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.