Re: plpython vs _POSIX_C_SOURCE - Mailing list pgsql-hackers

From Andres Freund
Subject Re: plpython vs _POSIX_C_SOURCE
Date
Msg-id 20230125023246.trnwn42dnj3e4ikc@awork3.anarazel.de
Whole thread Raw
In response to Re: plpython vs _POSIX_C_SOURCE  (Andres Freund <andres@anarazel.de>)
Responses Re: plpython vs _POSIX_C_SOURCE
List pgsql-hackers
Hi,

On 2023-01-24 17:48:56 -0800, Andres Freund wrote:
> Also for autoconf, I needed to link
> $prefix/lib/python3.11/config-3.11/libpython3.11.a
> to
> $prefix/lib/libpython3.11.a
> That might be a python version difference or be related to building python
> with --enable-shared - but I see saw other problems without --enable-shared.

That actually doesn't quite work right. One needs to either link to the file
by name (i.e. just $prefix/lib/libpython3.11.so instead of -lpython3.11), or
create a wrapper .a "manually". I.e.

ar crs $prefix/lib/libpython3.11.a $prefix/lib/libpython3.11.so

I tried quite a few things and got confused between the attempts.


> I ran out of energy to test on aix with xlc, I spent way more time on this
> than I have already. I'll pick it up later.

Building in the background now.

Greetings,

Andres Freund



pgsql-hackers by date:

Previous
From: Thomas Munro
Date:
Subject: Re: BF animal malleefowl reported an failure in 001_password.pl
Next
From: Robert Haas
Date:
Subject: Re: GUCs to control abbreviated sort keys