Skip to content

Python 3.11.5 incompatible https://github.com/mysql/mysql-server make libabsl_log_globals.so: undefined symbol: #131207

@wblangdon

Description

@wblangdon

Bug report

Bug description:

This is probably more of a cmake failure than a Python problem but I think it is good to document it in case other people hit it too.

Installing mysql from source (current version from github.com/mysql/mysql-server) under Linux Rocky 9.5 with Python 3.11.5 in PATH make VERBOSE=1 fails about 6% in with

cd abc/mysql/mysql-server-trunk/build/plugin/x/protocol/protobuf && ../../../../runtime_output_directory/protoc --cpp_out abc/mysql/mysql-server-trunk/build/plugin/x/generated/protobuf_lite -I abc/mysql/mysql-server-trunk/extra/protobuf/protobuf-24.4/src -Iabc/mysql/mysql-server-trunk/build/plugin/x/generated/protobuf_lite abc/mysql/mysql-server-trunk/build/plugin/x/generated/protobuf_lite/mysqlx.proto
../../../../runtime_output_directory/protoc: symbol lookup error: abc/mysql/mysql-server-trunk/build/library_output_directory/libabsl_log_globals.so: undefined symbol: _ZN4absl12lts_2023080216raw_log_internal21internal_log_functionB5cxx11E

Workaround: remove /opt/Python/Python-3.11.5 from PATH and LD_LIBRARY_PATH

Versions with problem here:
Python 3.11.5
Linux Rocky 9.5
cmake version 3.26.5
GNU Make 4.3
gcc (GCC) 11.5.0 20240719 (Red Hat 11.5.0-5)

The undefined symbol error message seems to be totally unhelpful since the problems seems to be bad LD_LIBRARY_PATH

echo $LD_LIBRARY_PATH
/opt/Python/Python-3.11.5/lib:/opt/ucl/lib:/usr/X11R6/lib

CPython versions tested on:

CPython main branch

Operating systems tested on:

Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildThe build process and cross-build

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions