Originally posted by: jenaixvoodoo
After trial and error and getting a better understanding of what is going on I have successfully compiled perl 5.18.0 on AIX 6100-08-02-1316 using vac 10.1.0.0 (xlc_r) with the following command line for Configure:
./Configure \
-d \
-Dcc=xlc -Dldflags="-s -Wl,-bmaxdata:0x80000000" \
-Dinstallprefix=/opt/freeware/lib/perl5/5.18 \
-Dprefix='/opt/freeware/lib/perl5/5.18 \
-Duselargefiles \
-Duseshrplib \
-Dusethreads \
-Duse64bitall \
-Darchname=ppc-aix \
-A define:ld='/usr/vacpp/bin/xlc_r' \
-A define:ccdlflags='-brtl -bdynamic' \
-A define:lddlflags='-bexpall -G -L/usr/lib64 -L/opt/freeware/lib64 -L/opt/freeware/lib -L/usr/lib'
NOTE: This did require me to create my own 64bit libdb.so. I downloaded db-5.3.21 from the Berkeley DB site and compiled it. Then I linked it into the /usr/lib64 bin. I had to copy over the 64bit libdb.so in the /usr/lib to make this work. I cannot explain why, something buried in the code. However I am also creating a rpm that requires that the 32bit one is in the /usr/lib and that the 64bit is in the /usr/lib64. Which is how it is supposed to be. Sigh!!!!
I hope this helps someone else, it was a dig out of a stupidity hole for me. Now I need to make sure it is portable and all that!
Jen