mirror of
https://github.com/SOCI/soci.git
synced 2026-05-04 10:19:53 -05:00
Work around a problem with incompatible unixodbc-dev package
The package already installed on the system results in build errors when
trying to use it:
In file included from /usr/include/sql.h:19:0,
from /usr/include/sqlext.h:43,
from /home/runner/work/soci/soci/include/soci/odbc/soci-odbc.h:25,
from /home/runner/work/soci/soci/src/backends/odbc/factory.cpp:9:
/usr/include/sqltypes.h:56:10: fatal error: unixodbc.h: No such file or directory
#include "unixodbc.h"
^~~~~~~~~~~~
so remove it before installing the Debian version.
See https://github.com/microsoft/linux-package-repositories/issues/36
This commit is contained in:
@@ -5,6 +5,12 @@
|
||||
#
|
||||
source ${SOCI_SOURCE_DIR}/scripts/ci/common.sh
|
||||
|
||||
# Remove buggy versions of the packages from Microsoft repositories as well as
|
||||
# their dependencies.
|
||||
run_apt remove \
|
||||
libodbc1 odbcinst1debian2 \
|
||||
unixodbc unixodbc-dev
|
||||
|
||||
run_apt install \
|
||||
tar bzip2 \
|
||||
unixodbc unixodbc-dev \
|
||||
|
||||
Reference in New Issue
Block a user