Psqlodbc build fails on linux

From: Moazzum Ali <moazzum(dot)ali(at)enterprisedb(dot)com>
To: pgsql-odbc(at)postgresql(dot)org
Subject: Psqlodbc build fails on linux
Date: 2023-08-31 01:28:06
Message-ID: 5D27E7EF-BBA7-4A44-8FA5-17BAEFED6EB4@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-odbc by date

  From Date Subject
Next Message Devrim Gündüz 2023-09-02 10:27:38 ODBC driver maintenance: PostgreSQL 16 support and other open items
Previous Message Moazzum Ali 2023-08-30 13:11:23 readme.txt does not exist on CentOS 7 / RHEL 7