@halimbo: please elaborate this. I can compile it with gcc version 16.2.1 20260810 (GCC) and cmake version 3.31.6.
Search Criteria
Package Details: mysql-connector-c++ 1.1.9-6
Package Actions
| Git Clone URL: | https://aur.archlinux.org/mysql-connector-c++.git (read-only, click to copy) |
|---|---|
| Package Base: | mysql-connector-c++ |
| Description: | A MySQL database connector for C++ |
| Upstream URL: | http://dev.mysql.com/doc/connector-cpp/en/ |
| Licenses: | GPL |
| Submitter: | eworm |
| Maintainer: | ivanovp |
| Last Packager: | ivanovp |
| Votes: | 8 |
| Popularity: | 0.019682 |
| First Submitted: | 2016-01-20 11:55 (UTC) |
| Last Updated: | 2025-12-22 09:16 (UTC) |
Dependencies (3)
- libmariadbclient (libmysqlclient81AUR, libmysqlclient80AUR, libmysqlclient84AUR, libmysqlclientAUR, mariadb-libs-gitAUR, mariadb-libs, mariadb-lts-libs)
- boost (boost-gitAUR) (make)
- cmake3AUR (cmake3-binAUR) (make)
Required by (0)
Sources (3)
ivanovp commented on 2026-09-14 17:42 (UTC)
halimbo commented on 2026-09-09 07:55 (UTC)
Build currently fails against modern toolchains (CMake 3.30+ and GCC 14+):
- CMake policy error requires passing -DCMAKE_POLICY_VERSION_MINIMUM=3.5.
- Fails to compile against modern libmysqlclient / mysql.h due to removed my_bool definitions and incompatible macro redefinitions of bool.
1uk commented on 2024-03-03 21:08 (UTC) (edited on 2024-03-03 21:31 (UTC) by 1uk)
I could not build this, so I added/changed this to the PKGBUILD:
makedepends=('cmake>=3.1' 'boost')
-DCMAKE_CXX_STANDARD=14 \
-DCMAKE_CXX_STANDARD_REQUIRED=ON \
-DCMAKE_CXX_EXTENSIONS=OFF
I don't know how to request these changes for the PKGBUILD. So I just write it here.
I had this error like in this question: https://stackoverflow.com/questions/75497370/error-iso-c17-does-not-allow-dynamic-exception-specifications-when-installing And used this solution: http://stackoverflow.com/questions/42834844/ddg#42842447
twittumz commented on 2022-05-19 03:03 (UTC) (edited on 2022-05-19 03:08 (UTC) by twittumz)
@rafaelff. Thank you this worked. I also had to specify the c++11 standard and add the flag -DCMAKE_CXX_COMPILER='g++; -std=c++11' to the cmake parameters.
rafaelff commented on 2022-05-18 00:08 (UTC) (edited on 2022-05-18 00:10 (UTC) by rafaelff)
@twittumz: I'm away from my computer, so I can test it, but try changing the source array to https://dev.mysql.com/get/Downloads/Connector-C++/mysql-connector-c++-1.1.9.tar.gz (completely replacing mirrors.soho.com) and update the sha256sums array using updpkgsums from package pacman-contrib.
You may have to remove {,.asc} in source array and 'SKIP' from sha256sums array.
twittumz commented on 2022-05-17 23:41 (UTC) (edited on 2022-05-18 01:23 (UTC) by twittumz)
The tarball on mirrors.sohu.com doesn't look like it's available anymore causing the pkg build to fail.
rafaelff commented on 2021-06-12 18:21 (UTC)
I adopted this package because ddnet depended on it, but it is no longer the case. Hence, I'm orphaning it.
rafaelff commented on 2019-04-10 16:08 (UTC)
Package adopted
rafaelff commented on 2019-04-10 16:07 (UTC)
This package can not be updated to a version higher than 1.1.9, because Oracle MySQL broke compatibility with MariaDB in newer versions. Please, do not flag this package as out-of-date unless you know a solution for this broken compatibility -- It should work as it is.
rafaelff commented on 2019-04-03 16:34 (UTC)
Oh, the source URL could also be changed to https://mirrors.sohu.com/mysql/Connector-C++/, without any other further change. Oracle really removed mysql-connector-c++-1.1.9.tar.gz from all official servers.
Pinned Comments
rafaelff commented on 2019-04-10 16:07 (UTC)
This package can not be updated to a version higher than 1.1.9, because Oracle MySQL broke compatibility with MariaDB in newer versions. Please, do not flag this package as out-of-date unless you know a solution for this broken compatibility -- It should work as it is.