From: | Dave Cramer <davecramer(at)postgres(dot)rocks> |
---|---|
To: | Moazzum Ali <moazzum(dot)ali(at)enterprisedb(dot)com> |
Cc: | Michael Paquier <michael(at)paquier(dot)xyz>, pgsql-odbc(at)postgresql(dot)org |
Subject: | Re: Psqlodbc build fails on linux |
Date: | 2023-09-04 20:01:35 |
Message-ID: | CADK3HHKk-ADXc3G6rt38ahpgbDaTpZs+yMrDk_zC0uec2HqmDg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-odbc |
Please see attached patch to use autoconf to detect and use stdbool.h
I have to admit to having no idea if this is correct or if the style is
correct, much was copied from postgresql.
I have tested it on ubuntu, and it compiles.
Dave Cramer
www.postgres.rocks
On Mon, 4 Sept 2023 at 13:56, Moazzum Ali <moazzum(dot)ali(at)enterprisedb(dot)com>
wrote:
> Thanks Dave and Michael.
>
> On Mon, Sep 4, 2023, 10:54 PM Dave Cramer <davecramer(at)postgres(dot)rocks>
> wrote:
>
>> Seems like the better solution is to use Michael's suggestion as that is
>> what PG does.
>>
>> Dave Cramer
>> www.postgres.rocks
>>
>>
>> On Mon, 4 Sept 2023 at 12:28, Moazzum Ali <moazzum(dot)ali(at)enterprisedb(dot)com>
>> wrote:
>>
>>> Dave,
>>>
>>> Is it something that can be fixed on PG or psqlodbc side or you would
>>> also suggest what Michael suggested? I have tried that environment rule
>>> though and it works.
>>>
>>> Thanks,
>>> Moazzum
>>>
>>> On Mon, Sep 4, 2023, 9:07 PM Dave Cramer <davecramer(at)postgres(dot)rocks>
>>> wrote:
>>>
>>>>
>>>>
>>>> On Mon, 4 Sept 2023 at 10:23, Dave Cramer <davecramer(at)postgres(dot)rocks>
>>>> wrote:
>>>>
>>>>>
>>>>>
>>>>> On Sun, 3 Sept 2023 at 19:46, Michael Paquier <michael(at)paquier(dot)xyz>
>>>>> wrote:
>>>>>
>>>>>> On Thu, Aug 31, 2023 at 06:28:06AM +0500, Moazzum Ali wrote:
>>>>>> > 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>
>>>>>>
>>>>>> Wouldn't it be better to enforce an environment rule in psqlodbc.h
>>>>>> instead? PostgreSQL enforces PG_USE_STDBOOL already on Windows, and
>>>>>> I am pretty sure that it would be OK to do the same in other *nix
>>>>>> places where anybody cares about ODBC.
>>>>>>
>>>>>
>>>>> I'm guessing this is a debian thing as I just built this successfully
>>>>> on a redhat (ish) system
>>>>>
>>>>
>>>> It pays to read all of the above before trying to replicate. I was
>>>> building against 15, not 16
>>>> I see the failure now
>>>>
>>>>>
>>>>> Dave
>>>>>
>>>>
Attachment | Content-Type | Size |
---|---|---|
0001-Use-autoconf-to-check-for-stdbool.h.patch | application/octet-stream | 1.9 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Paquier | 2023-09-05 03:21:55 | Re: ODBC driver maintenance: PostgreSQL 16 support and other open items |
Previous Message | Moazzum Ali | 2023-09-04 17:55:50 | Re: Psqlodbc build fails on linux |