Summary: | dev-qt/qtsql-5.15.2-r10: 'sql-mysql' was enabled, but the pre-condition 'libs.mysql' failed. | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Jean-Francois Ostiguy <jfostiguy> |
Component: | Current packages | Assignee: | Qt Bug Alias <qt> |
Status: | RESOLVED INVALID | ||
Severity: | normal | CC: | asturm |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
build.log
bui |
Description
Jean-Francois Ostiguy
2021-08-28 14:21:59 UTC
Created attachment 736453 [details]
build.log
Not reproducible here. > /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/libmysqlclient.so: undefined reference to `std::__throw_bad_array_new_length()@GLIBCXX_3.4.29' > collect2: error: ld returned 1 exit status Looks like a local problem to me. However, please try again with this user patch applied to dev-qt/qtsql: https://raw.githubusercontent.com/gentoo/qt/3303a4ece8e48a462cdfc6bdef70ddecf635c5fd/dev-qt/qtsql/files/qtsql-5.15.2-mysql-use-pkgconfig.patch Still fails with the same error after patching. I am not sure what kind of "local problem" I should be looking for. Could this have something to do with the fact that mariadb is installed and mysql is a virtual package ? I have not had any issue in the past with this configuration. Created attachment 736504 [details]
bui
Build log with suggested patch applied.
After switching to g++-11 emerge proceeds normally. I am not sure what the issue was but I recently had to switch to g++-10 to compile a package that failed with 11. So you were correct, this was some sort of local problem. (In reply to Jean-Francois Ostiguy from comment #5) > After switching to g++-11 emerge proceeds normally. I am not sure what the > issue was but I recently had to switch to g++-10 to compile a package that > failed with 11. So you were correct, this was some sort of local problem. It's because some things (in C++) on your system were built with GCC 11, and then GCC 10 couldn't understand some symbols. See https://wiki.gentoo.org/wiki/Upgrading_GCC#libstdc.2B.2B.so.6:_version_.60GLIBCXX_3.4.15.27_not_found. |