RE: AIX support

From: Aditya Kamath <Aditya(dot)Kamath1(at)ibm(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Srirama Kucherlapati <sriram(dot)rk(at)in(dot)ibm(dot)com>, Michael Paquier <michael(at)paquier(dot)xyz>, Noah Misch <noah(at)leadboat(dot)com>, Andres Freund <andres(at)anarazel(dot)de>, Robert Haas <robertmhaas(at)gmail(dot)com>, "peter(at)eisentraut(dot)org" <peter(at)eisentraut(dot)org>, "pgsql-hackers(at)lists(dot)postgresql(dot)org" <pgsql-hackers(at)lists(dot)postgresql(dot)org>, "hlinnaka(at)iki(dot)fi" <hlinnaka(at)iki(dot)fi>, "tristan(at)partin(dot)io" <tristan(at)partin(dot)io>, "postgres-ibm-aix(at)wwpdl(dot)vnet(dot)ibm(dot)com" <postgres-ibm-aix(at)wwpdl(dot)vnet(dot)ibm(dot)com>
Subject: RE: AIX support
Date: 2026-02-17 12:42:13
Message-ID: LV8PR15MB6488F009FE0ACD975A360CC3D66DA@LV8PR15MB6488.namprd15.prod.outlook.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi Tom,

>I wondered if AIX 7.2 behaves differently from the 7.3 machine >where
>I'd determined that we need this. But it doesn't. I tried removing
>these lines, and found that an installed system is entirely
>nonfunctional:
>$ ./configure --prefix=$HOME/testversion
>$ make
>$ make install
>$ $HOME/testversion/bin/initdb
>exec(): 0509-036 Cannot load program initdb because of the >following errors:
> 0509-150 Dependent module libpq.a(libpq.so.5) could not be loaded.
> 0509-022 Cannot load module libpq.a(libpq.so.5).
> 0509-026 System error: A file or directory in the path name does not exist.

>So we need at least rpathdir support. It might be that this code
>can be simplified or otherwise improved, but just deleting it
>won't do.

I checked in my development LPAR’s on AIX 7.2 node and there also we do not need to calculate rpath.

Also liked your suggestion to use disable rpath which also is all right for us.

Just that if someone runs test cases without disabling rpath then the test cases won’t run.(Only while using the GNU build system in AIX)

For which I have one suggestion,
# -blibpath must contain ALL directories where we should look for libraries
libpath := $(shell echo $(subst -L,:,$(filter -L/%,$(LDFLAGS))) | sed -e's/ //g'):/opt/freeware/lib:/usr/lib:/lib

How about adding "/opt/freeware/lib” to the calculation like the above lines. This is the standard path where all AIX open-source freeware libraries will exist, and system libraries will be in /usr/lib. We have this differentiation in AIX.

This will allow the test cases to find the open-source libraries incase rpath is calculated and both of our requirements are satisfied.

Let me know if we can do that.

Have a nice day ahead.

Thanks and regards,
Aditya.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message John Naylor 2026-02-17 13:14:38 Re: centralize CPU feature detection
Previous Message Aya Iwata (Fujitsu) 2026-02-17 12:09:46 RE: [WIP]Vertical Clustered Index (columnar store extension) - take2