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.


Reply via email to