You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by Michael Felt <ma...@gmail.com> on 2016/08/18 12:15:28 UTC

32-bit and 64-bit support (packaging) for AIX

Hello all,

I have been living in a 32-bit world for apache - but have a request for 
a 64-bit version. The first thing I encountered is that apr and apr-util 
also need to be in 64-bit mode.

I know that other platforms have their own conventions, rather AIX seems 
to have a unique convention with regard to shared libraries.

Currently the make (install) process puts everything in ${prefix}/lib 
(in my case ${prefix}=/opt).

michael@x071:[/data/prj/apache/apr-1.5.2/X32]ls -l opt/lib
total 976
-rw-r--r-- 1 bin bin   9262 Aug 18 11:47 apr.exp
-rw-r--r-- 1 bin bin 455452 Aug 18 11:47 libapr-1.a
-rwxr-xr-x 1 bin bin    932 Aug 18 11:47 libapr-1.la
lrwxrwxrwx 1 bin bin     17 Aug 18 11:48 libapr-1.so -> libapr-1.so.0.5.2
lrwxrwxrwx 1 bin bin     17 Aug 18 11:48 libapr-1.so.0 -> libapr-1.so.0.5.2
-rwxr-xr-x 1 bin bin 509004 Aug 18 11:47 libapr-1.so.0.5.2
drwxr-xr-x 2 bin bin   4096 Aug 18 11:47 pkgconfig

I assume the apr.exp is something for AIX, no comment otherwise

Further, the file libapr-1.a seems to be there. currently. for static 
linking support.

Finally, the two links libapr-1.so and libapr-1.so.0 point at the real 
shared library: libapr-1.so.0.5.2

What I am going to do manually (to be able to provide dual support in a 
single directory) is:

a) add libapr-1.so.0.5.2 to libapr-1.a

b) remove the libapr-1.so* links and file - to prevent confusion (iirc 
other systems use two directories $prefix/lib and $prefix/lib64).

While an archive member name may repeat in an AIX archive - as long as 
it is a different ABI size - having both 32 and 64-bit in one .a file is 
possible - while it is impossible to have the same name twice in, e.g., 
${prefix}/lib

My question:

Will someone assist me with the changes needed to the, I assume, libtool 
part that constructs (or processes/reads?) from libapr-1.la. I would 
like to think it is a simple change - but I have never really worked 
with the autotools and feel like I have 8 left-thumbs when I try an 
understand it.

Thanks!

Michael