Re: Using LibPq in TAP tests via FFI - Mailing list pgsql-hackers

From Thomas Munro
Subject Re: Using LibPq in TAP tests via FFI
Date
Msg-id CA+hUKGJq6SNOtu-n6TdQxfgdei5xj6HyO8wZO2+Rc=vx4pudcw@mail.gmail.com
Whole thread Raw
In response to Re: Using LibPq in TAP tests via FFI  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Using LibPq in TAP tests via FFI
List pgsql-hackers
On Mon, Jun 17, 2024 at 12:34 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Thomas Munro <thomas.munro@gmail.com> writes:
> > Really this is mostly about libffi, which is
> > super widely ported, and it is required by Python
>
> BTW, what form does that "requirement" take exactly?  I see no
> evidence that the core python3 executable is linked to libffi
> on any of the machines I checked.

There is another library in between:

$ ldd /usr/local/lib/python3.11/lib-dynload/_ctypes.cpython-311.so
/usr/local/lib/python3.11/lib-dynload/_ctypes.cpython-311.so:
    libffi.so.8 => /usr/local/lib/libffi.so.8 (0x214865b76000)
    libdl.so.1 => /usr/lib/libdl.so.1 (0x214864bcc000)
    libthr.so.3 => /lib/libthr.so.3 (0x214866862000)
    libc.so.7 => /lib/libc.so.7 (0x214863e03000)

Perhaps it's technically possible to build Python without the ctypes
module, but I'm not sure and I don't see anywhere that describes it
explicitly as optional.



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Using LibPq in TAP tests via FFI
Next
From: Thomas Munro
Date:
Subject: Re: Using LibPq in TAP tests via FFI