Hi Tom and community members,

Please find attached the patch which applied after Tom’s series of 7 patches 
adds fixes the last bit of test cases running issue discussed in this thread. 
(See: v6-0008-Add-opt-freeware-lib-path-to-Makefile.aix.patch)


>Aditya Kamath <[email protected]> writes:
>> 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)
>Hmm, I'm not sure why that should be.  All the cases I've tried work
fine, and I'm not disabling rpath.


exec(): 0509-036 Cannot load program 
/home/post_guy/postgres_latest/postgres/tmp_install/usr/local/pgsql/bin/postgres
 because of the following errors:
        0509-150   Dependent module libicuuc73.a(libicuuc73.so) could not be 
loaded.
        0509-022 Cannot load module libicuuc73.a(libicuuc73.so).
        0509-026 System error: A file or directory in the path name does not 
exist.


We get the error above in the test log if we do not have /opt/freeware/lib in 
the blibpath calculated by rpath where the open source libraries (Ex: libicu in 
this case) exist in AIX.


dump -Hov -X64  ./src/bin/initdb/initdb
                 ***Import File Strings***
INDEX  PATH                          BASE                MEMBER
0      
/usr/local/pgsql/lib:/usr/lib:/lib:/opt/freeware/lib/gcc/powerpc-ibm-aix7.2.0.0/13/

We do not have /opt/freeware/lib/ here which causes test cases to fail.

>> 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.
>Okay.  In my testing that's already gotten into LDFLAGS at this point,
but I can't see any harm in hard-wiring it into the list given that
we're already hard-wiring /usr/lib and /lib.

Sure Tom. I have added this in the patch attached.

Thank you everyone in this thread for all your help and support. Thank you Tom 
once again for your guidance.

Kindly let me know what you think.

Have a great day ahead.

Thanks and regards,
Aditya.


Attachment: v6-0008-Add-opt-freeware-lib-path-to-Makefile.aix.patch
Description: v6-0008-Add-opt-freeware-lib-path-to-Makefile.aix.patch

Reply via email to