Package Details: mariadb-connector-c 3.3.7-1

Git Clone URL: https://aur.archlinux.org/mariadb-connector-c.git (read-only, click to copy)
Package Base: mariadb-connector-c
Description: MariaDB Connector/C is used to connect applications developed in C/C++ to MariaDB and MySQL databases.
Upstream URL: https://mariadb.com/kb/en/mariadb/about-mariadb-connector-c/
Licenses: LGPL
Submitter: BluePeril
Maintainer: BluePeril
Last Packager: BluePeril
Votes: 6
Popularity: 0.000000
First Submitted: 2016-02-13 08:04 (UTC)
Last Updated: 2023-11-08 10:59 (UTC)

Latest Comments

ronengi commented on 2024-05-25 12:30 (UTC)

Can't build package.

.../mariadb-connector-c/src/mariadb-connector-c-3.3.7-src/plugins/io/remote_io.c: In function ‘ma_rio_open’:
.../mariadb-connector-c/src/mariadb-connector-c-3.3.7-src/plugins/io/remote_io.c:282:41: error: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument [-Werror=calloc-transposed-args]
  282 |   if (!(file = (MA_FILE *)calloc(sizeof(MA_FILE), 1)))
      |                                         ^~~~~~~
.../mariadb-connector-c/src/mariadb-connector-c-3.3.7-src/plugins/io/remote_io.c:282:41: note: earlier argument should specify number of elements, later size of each element
.../mariadb-connector-c/src/mariadb-connector-c-3.3.7-src/plugins/io/remote_io.c:286:56: error: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument [-Werror=calloc-transposed-args]
  286 |   if (!(file->ptr= rf= (MA_REMOTE_FILE *)calloc(sizeof(MA_REMOTE_FILE), 1)))
      |                                                        ^~~~~~~~~~~~~~
.../mariadb-connector-c/src/mariadb-connector-c-3.3.7-src/plugins/io/remote_io.c:286:56: note: earlier argument should specify number of elements, later size of each element
cc1: all warnings being treated as errors
make[2]: *** [CMakeFiles/remote_io.dir/build.make:76: CMakeFiles/remote_io.dir/plugins/io/remote_io.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:446: CMakeFiles/remote_io.dir/all] Error 2
make: *** [Makefile:156: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

Singularity commented on 2019-01-09 18:54 (UTC) (edited on 2019-01-10 18:18 (UTC) by Singularity)

It took me really a while to figure out that libmariadbclient 10.3.x provides the same functionality, and that MariaDB Connector/C only provides only a more permissive license. It exist for people who want to ship it with their self-writen application.

There are two scenarios where you want to install this package:

  • you want a newer version than libmariadbclient 10.1.x from the repo provides. (*)

  • you don't want to install the mariadb terminal client, and the database to which you connect is remote.

(*): It can be installed with the mariadb version form the repos because they are compiled with -DINSTALL_PLUGINDIR=lib/mysql/plugin -DINSTALL_INCLUDEDIR=include/mysql. I don't know if the headers and plugins from the mariadb or mysql subdirectories will be used. But one could work around it by using NoExtract = usr/include/mysql/ in /etc/pacman.conf

kleest commented on 2018-07-20 19:24 (UTC)

MYSQL_UNIX_ADDR CMake variable has been renamed to MARIADB_UNIX_ADDR in upstream commit 28edd6d18edbc51498f2320f18280feb1103b087.

dotted commented on 2018-02-24 01:02 (UTC)

Integrity check fails for 3.0.3

jamespharvey20 commented on 2016-09-28 02:23 (UTC)

The mariadb package defaults to placing its socket at /run/mysqld/mysqld.sock Upstream's mariadb-connector-c defaults to looking for it at /tmp/mysql.sock This is fixed by adding to PKGBUILD's cmake call: -DMYSQL_UNIX_ADDR=/run/mysqld/mysqld.sock \ (There's of course work-arounds such as a symlink (if nothing removes it) or putting the correct socket location in every mysql_init call.)