Psqlodbc build fails on linux - Mailing list pgsql-odbc

From Moazzum Ali
Subject Psqlodbc build fails on linux
Date
Msg-id 5D27E7EF-BBA7-4A44-8FA5-17BAEFED6EB4@enterprisedb.com
Whole thread Raw
Responses Re: Psqlodbc build fails on linux  (Michael Paquier <michael@paquier.xyz>)
List pgsql-odbc
Hi,

I am trying to build psqlodbc 15.00.0000 with PostgreSQL 16. Here are my commands:

./configure --with-libpq=/usr/pgsql-16/ --with-unixodbc=/usr/bin/odbc_config LD_LIBRARY_PATH=/usr/pgsql-16/lib/  --prefix=$PWD/out
make

 make command fails with the following error:

In file included from connection.h:14,
                 from info.c:34:
/usr/pgsql-16/include/internal/pqexpbuffer.h:168:8: error: unknown type name 'bool'
 extern bool appendPQExpBufferVA(PQExpBuffer str, const char *fmt, va_list args) pg_attribute_printf(2, 0);

One way to fix the error is to include the following line before #include "pqexpbuffer.h" in connection.h and statement.h
#include <stdbool.h>

Regards,
Moazzum

pgsql-odbc by date:

Previous
From: Moazzum Ali
Date:
Subject: readme.txt does not exist on CentOS 7 / RHEL 7
Next
From: Devrim Gündüz
Date:
Subject: ODBC driver maintenance: PostgreSQL 16 support and other open items