Hi, I still use in my smarthome project that library and it works with newest mariadb. What kind of problem do you have?
Search Criteria
Package Details: mysql-connector-c++ 1.1.9-2
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: | None |
Last Packager: | rafaelff |
Votes: | 7 |
Popularity: | 0.000000 |
First Submitted: | 2016-01-20 11:55 (UTC) |
Last Updated: | 2019-04-10 15:52 (UTC) |
Dependencies (3)
- libmariadbclient (libmysqlclient55AUR, libmysqlclient56AUR, mariadb-libs-gitAUR, libmysqlclient81AUR, libmysqlclient57AUR, libmysqlclient80AUR, libmysqlclientAUR, mariadb-libs, mariadb-lts-libs)
- boost (boost-gitAUR) (make)
- cmake (cmake-gitAUR) (make)
Required by (0)
Sources (4)
patryk commented on 2019-03-20 06:59 (UTC)
rafaelff commented on 2019-03-19 18:33 (UTC) (edited on 2019-03-20 10:11 (UTC) by rafaelff)
It seems mysql-connector-c++ 1.1.12 is NOT working with mariadb 10.3.13.
I changed this PKGBUILD with pkgver 1.1.12, updated the lines of the "mariadb-api.patch", removed "no-JSON.patch" as no longer necessary, but it is failing with "conflicting declaration" related to "MYSQL_BIND" and "MYSQL_RES" in comparison to what is declared in mariadb-libs's /usr/include/mysql/mysql.h
.
I'm stuck. If someone is feeling adventurous and to give a try to fix it, feel free to check my updated files and patch whatever is necessary:
- PKGBUILD: http://sprunge.us/NuJCN9
- mariadb-api.patch: http://sprunge.us/kUKRKv
- build log: http://sprunge.us/7Frkqh
patryk commented on 2019-01-29 10:18 (UTC)
bluntroller commented on 2018-11-07 13:27 (UTC)
Wrong PGP key?
rafaelff commented on 2018-06-19 13:16 (UTC)
'boost' should be in the depends array (instead of makedepends) because the file /usr/include/mysql_connection.h runs include for headers like boost/shared_ptr.hpp and boost/scoped_ptr.hpp.
joelproko commented on 2017-06-01 14:20 (UTC)
Got it to compile with the following slight changes to the PKGBUILD:
*** PKGBUILD.old Thu Jun 1 14:10:23 2017
--- PKGBUILD Thu Jun 1 14:18:40 2017
***************
*** 6,26 ****
pkgname=mysql-connector-c++
pkgver=1.1.9
! pkgrel=1
pkgdesc='A MySQL database connector for C++'
! arch=('i686' 'x86_64')
! url='http://dev.mysql.com/doc/connector-cpp/en/'
license=('GPL')
! depends=('libmariadb')
makedepends=('cmake' 'boost')
! validpgpkeys=('A4A9406876FCBD3C456770C88C718D3B5072E1F5') # MySQL Release Engineering <mysql-build@oss.oracle.com>
! source=("http://cdn.mysql.com/Downloads/Connector-C++/${pkgname}-${pkgver}.tar.gz"{,.asc}
'0001-mysql-connector-c++-mariadb-api.patch')
! sha256sums=('3e31847a69a4e5c113b7c483731317ec4533858e3195d3a85026a0e2f509d2e4'
! 'SKIP'
! '68841bcbfed0e1b3ff3ae7b5bb5701114311c75b7ebb02ad8a405d0b5cd45c83')
prepare() {
! cd "${srcdir}/${pkgname}-${pkgver}/"
!
# MariaDB does not have this, but it is optional
patch -Np1 < "${srcdir}/0001-mysql-connector-c++-mariadb-api.patch"
--- 6,23 ----
pkgname=mysql-connector-c++
pkgver=1.1.9
! pkgrel=2
pkgdesc='A MySQL database connector for C++'
! arch=('i686' 'x86_64' 'armv6h')
! url='http://dev.mysql.com/doc/dev/connector-cpp/'
license=('GPL')
! depends=('libmariadbclient')
makedepends=('cmake' 'boost')
! source=("https://github.com/mysql/mysql-connector-cpp/archive/${pkgver}.tar.gz"
'0001-mysql-connector-c++-mariadb-api.patch')
! md5sums=('3e858cc46616246acb27a262cf2ba6bd'
! 'b9f9d259429a5853c33cbfbce9220a14')
prepare() {
! cd "${srcdir}/mysql-connector-cpp-${pkgver}/"
# MariaDB does not have this, but it is optional
patch -Np1 < "${srcdir}/0001-mysql-connector-c++-mariadb-api.patch"
***************
*** 31,35 ****
cd build
! cmake "../${pkgname}-${pkgver}/" \
-Wno-dev \
-DCMAKE_INSTALL_PREFIX=/usr \
--- 28,32 ----
cd build
! cmake "../mysql-connector-cpp-${pkgver}/" \
-Wno-dev \
-DCMAKE_INSTALL_PREFIX=/usr \
lviggiani commented on 2017-05-26 21:20 (UTC) (edited on 2017-05-26 21:22 (UTC) by lviggiani)
dependency libmariadb not found :(
It looks like libmariadb is still in staging
<deleted-account> commented on 2017-05-25 19:57 (UTC)
While building, got
==> ERROR: Failure while downloading http://cdn.mysql.com/Downloads/Connector-C++/mysql-connector-c++-1.1.7.tar.gz
These are the current URLs for 1.1.7:
https://downloads.mysql.com/archives/get/file/mysql-connector-c%2B%2B-1.1.7-linux-glibc2.5-x86-32bit.tar.gz
https://downloads.mysql.com/archives/get/file/mysql-connector-c%2B%2B-1.1.7-linux-glibc2.5-x86-64bit.tar.gz
Also, the latest version is 1.1.9 now. Download links for those:
https://cdn.mysql.com//Downloads/Connector-C++/mysql-connector-c++-1.1.9-linux-glibc2.12-x86-32bit.tar.gz
https://cdn.mysql.com//Downloads/Connector-C++/mysql-connector-c++-1.1.9-linux-glibc2.12-x86-64bit.tar.gz
drankinatty commented on 2017-03-22 19:50 (UTC)
@robertas that looks like you need to import the gpg key in order to validate the package, e.g. `gpg2 --keyserver hkp://pgp.mit.edu --recv-keys A4A9406876FCBD3C456770C88C718D3B5072E1F5`
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.