Message-ID: From: "jboakye (@jboakye)" To: "postgresql-interfaces/psqlodbc" Date: Mon, 13 May 2024 09:49:03 +0000 Subject: [postgresql-interfaces/psqlodbc] issue #16: [psqlodbc-REL-16_00_0004][Postgres 15 5][Debian][unixODBC] Need to add CPPFLAGS="-DSQLCOLATTRIBUTE_SQLLEN" to configure to get it to compile List-Id: X-GitHub-Author-Id: 2421666 X-GitHub-Author-Login: jboakye X-GitHub-Issue: 16 X-GitHub-Repo: postgresql-interfaces/psqlodbc X-GitHub-State: open X-GitHub-Type: issue X-GitHub-Url: https://github.com/postgresql-interfaces/psqlodbc/issues/16 Content-Type: text/plain; charset=utf-8 Otherwise we get the error below. Same issue with previous releases. odbcapi30.c:120:1: error: conflicting types for 'SQLColAttribute'; have 'SQLRETURN(void *, SQLUSMALLINT, SQLUSMALLINT, void *, SQLSMALLINT, SQLSMALLINT *, void *)' {aka 'short int(void *, short unsigned int, short unsigned int, void *, short int, short int *, void *)'} 120 | SQLColAttribute(SQLHSTMT StatementHandle, | ^~~~~~~~~~~~~~~ In file included from psqlodbc.h:145, from odbcapi30.c:21: /usr/local/include/sql.h:613:24: note: previous declaration of 'SQLColAttribute' with type 'SQLRETURN(void *, SQLUSMALLINT, SQLUSMALLINT, void *, SQLSMALLINT, SQLSMALLINT *, SQLLEN *)' {aka 'short int(void *, short unsigned int, short unsigned int, void *, short int, short int *, long int *)'} 613 | SQLRETURN SQL_API SQLColAttribute(SQLHSTMT StatementHandle, | ^~~~~~~~~~~~~~~