Skip to content

Commit

Permalink
Work around a problem with incompatible unixodbc-dev package
Browse files Browse the repository at this point in the history
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 microsoft/linux-package-repositories#36
  • Loading branch information
vadz committed Feb 23, 2023
1 parent d7af321 commit e82fdcd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/ci/install_odbc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit e82fdcd

Please sign in to comment.