A complete ODBC driver manager for Linux
Go to file
Michal Schorm 172ec880dc [bugfix] Fix multilib conflict for 'unixodbc.h' header
Upstream commit 5267d28 (between v2.3.9 and v2.3.10) added a new
'unixodbc.h' header, splitting out a subset of preprocessor constants
from 'unixodbc_conf.h' that are needed by the public 'sqltypes.h'
header.  This new file contains 'SIZEOF_LONG_INT' which is 4 on i686
and 8 on x86_64.

The spec applies '%multilib_fix_c_header' to 'unixodbc_conf.h' (which
still has its own arch-specific defines like 'SIZEOF_LONG', 'PLATFORM64'
and lib paths), but the new 'unixodbc.h' was never added.  Installing
both x86_64 and i686 'unixODBC-devel' simultaneously fails with an RPM
file-conflict error because both arches own '/usr/include/unixodbc.h'
with different content.

Resolves: RHEL-178477

Cherry-pick of Fedora commit:
  7d4a39924e

Co-Authored-By: Claude AI <noreply@anthropic.com>
2026-08-05 10:09:54 +00:00
.fmf Added the gating plans to be run in the CI pipelines of the package 2026-08-04 10:39:41 +02:00
.gitignore RHEL 9.0.0 Alpha bootstrap 2020-10-15 13:15:00 -07:00
ci.fmf Added the gating plans to be run in the CI pipelines of the package 2026-08-04 10:39:41 +02:00
gating.yaml Added the gating plans to be run in the CI pipelines of the package 2026-08-04 10:39:41 +02:00
keep-typedefs.patch RHEL 9.0.0 Alpha bootstrap 2020-10-15 13:15:00 -07:00
ODBCConfig.desktop RHEL 9.0.0 Alpha bootstrap 2020-10-15 13:15:00 -07:00
odbcinst.ini RHEL 9.0.0 Alpha bootstrap 2020-10-15 13:15:00 -07:00
plans.fmf Added the gating plans to be run in the CI pipelines of the package 2026-08-04 10:39:41 +02:00
README.dist RHEL 9.0.0 Alpha bootstrap 2020-10-15 13:15:00 -07:00
so-version-bump.patch Rebase to unixODBC 2.3.12 and fix GCC 14 compatibility 2025-10-13 13:38:30 +00:00
sources Rebase to unixODBC 2.3.12 and fix GCC 14 compatibility 2025-10-13 13:38:30 +00:00
unixODBC-c89.patch Rebase to unixODBC 2.3.12 and fix GCC 14 compatibility 2025-10-13 13:38:30 +00:00
unixODBC.spec [bugfix] Fix multilib conflict for 'unixodbc.h' header 2026-08-05 10:09:54 +00:00

About unixODBC in this distribution
-----------------------------------

In addition to the unixODBC package itself, you will want to install some
or all of these related packages:

mysql-connector-odbc	MySQL driver, needed to connect to MySQL databases
postgresql-odbc		PostgreSQL driver, needed to connect to PostgreSQL
unixODBC-gui-qt		Optional configuration management and test programs


The recommended driver definition for MySQL 8 is:

[MySQL]
Description	= ODBC for MySQL 8
Driver		= /usr/lib/libmyodbc8.so
Driver64	= /usr/lib64/libmyodbc8.so
FileUsage	= 1

You can adjust the name (in square brackets) and the description, but
the other items should usually be used verbatim.

The recommended driver definition for PostgreSQL is:

[PostgreSQL]
Description	= ODBC for PostgreSQL
Driver		= /usr/lib/psqlodbcw.so
Setup		= /usr/lib/libodbcpsqlS.so
Driver64	= /usr/lib64/psqlodbcw.so
Setup64		= /usr/lib64/libodbcpsqlS.so
FileUsage	= 1