Package Details: mariadb-connector-odbc 3.2.5-1

Git Clone URL: https://aur.archlinux.org/mariadb-connector-odbc.git (read-only, click to copy)
Package Base: mariadb-connector-odbc
Description: A standardized, LGPL licensed ODBC database driver for MariaDB
Upstream URL: https://mariadb.com/kb/en/mariadb/mariadb-connector-odbc/
Licenses: LGPL
Conflicts: mariadb-connector-odbc-bin
Submitter: Erroneous
Maintainer: Erroneous
Last Packager: Erroneous
Votes: 8
Popularity: 0.80
First Submitted: 2016-07-31 17:08 (UTC)
Last Updated: 2025-05-22 16:35 (UTC)

Latest Comments

1 2 3 Next › Last »

Erroneous commented on 2025-05-22 16:36 (UTC)

Thanks @post-factum for the easy fix.

martin-de commented on 2025-05-19 12:50 (UTC)

I can confirm that this solution works for me, too. It has the advantage of not having to touch every source file and is more future-proof if other source files are affected by the issue.

post-factum commented on 2025-05-19 08:54 (UTC)

Another workaround is to do export CXXFLAGS="${CXXFLAGS} -include cstdint".

martin-de commented on 2025-05-11 11:27 (UTC) (edited on 2025-05-22 17:02 (UTC) by martin-de)

The package can no longer be built in a current environment; the following error occurs for various files:

/build/mariadb-connector-odbc/src/mariadb-connector-odbc-3.2.5-src/driver/class/ColumnDefinition.h:55:10: error: ‘uint8_t’ does not name a type
   55 |   static uint8_t maxCharlen[];
      |          ^~~~~~~

The compiler's recommended action is to include the statement #include <cstdint> in the corresponding file. After doing this, the package could be built again.

The following files are affected:

driver/class/ColumnDefinition.h
driver/class/ResultSetMetaData.h
driver/interface/CmdInformation.h
driver/interface/PreparedStatement.h
driver/interface/ResultSet.h
driver/interface/Row.h

Erroneous commented on 2024-07-08 13:15 (UTC)

@WarmtH I'm unable to reproduce your results when I build the package inside of a clean build environment using the aurutils command aur build --chroot. It looks like you're using paru which I'm unfamiliar with, but if it has a chroot option that might solve your problem.

ma_debug_print is defined in mariadb-connector-odbc-3.2.2-src/driver/ma_debug.h and included in ma_odbc.h on line 407. Maybe you have a conflicting ma_debug.h or ma_odbc.h installed on your system?

WarmtH commented on 2024-07-06 20:27 (UTC)

Currently getting a bunch of build failures that look like this:

/home/foo/.cache/paru/clone/mariadb-connector-odbc/src/mariadb-connector-odbc-3.2.2-src/driver/ma_api_internal.cpp:2438:3: note: in expansion of macro ‘MDBUG_C_DUMP’
 2438 |   MDBUG_C_DUMP(Stmt->Connection, StringLength, d);
      |   ^~~~~~~~~~~~
/home/foo/.cache/paru/clone/mariadb-connector-odbc/src/mariadb-connector-odbc-3.2.2-src/driver/ma_debug.h:71:5: error: ‘ma_debug_print’ was not declared in this scope; did you mean ‘ma_debug_print_error’?
   71 |     ma_debug_print(0, "<<< --- end of function, returning %d ---", _ret); \

linn commented on 2021-09-19 09:28 (UTC)

The source have changed. I could make it work using these.

"https://downloads.mariadb.com/Connectors/odbc/connector-odbc-${pkgver}/${pkgname}-${pkgver}-ga-src.tar.gz"
"https://downloads.mariadb.com/Connectors/c/connector-c-${_c_pkgver}/mariadb-connector-c-${_c_pkgver}-src.tar.gz"

Erroneous commented on 2021-04-06 21:17 (UTC)

@Ravenman I added a patch for this, not sure how I updated before without getting the same issue. Please try 3.1.11-3

Ravenman commented on 2021-04-06 20:16 (UTC)

I have this error:

-- Found Threads: TRUE
-- TLS library/version: OpenSSL 1.1.1k -- SYSTEM_LIBS /usr/lib/libz.so;dl;m;pthread;pthread;dl;m;/usr/lib/libssl.so;/usr/lib/libcrypto.so -- Found GSSAPI: -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -- SYSTEM processor: x86_64 CMake Error at libmariadb/cmake/ConnectorName.cmake:30 (ENDMACRO): Flow control statements are not properly nested. Call Stack (most recent call first): libmariadb/CMakeLists.txt:423 (INCLUDE)

Somebody can help me, please?

Thermi commented on 2021-01-01 10:24 (UTC)

The path in the output after installation is wrong. The library is under /usr/lib/mariadb/libmaodbc.so, not /usr/lib/libmaodbc.so.