automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AIX shared libraries, make install misses them


From: Michael Perzl
Subject: Re: AIX shared libraries, make install misses them
Date: Fri, 29 Jan 2010 19:46:57 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.7) Gecko/20100120 Fedora/3.0.1-1.fc12 Thunderbird/3.0.1

Hello Ralf,


On 01/28/2010 09:22 PM, Ralf Wildenhues wrote:
Hello Daniel,

* Daniel Pocock wrote on Thu, Jan 28, 2010 at 03:21:24PM CET:
We have been working on getting the Ganglia tarball to work out of
the box for AIX
When Michael does `make install', the *.so files for our modules
are not installed.  Instead, he sees output like this from `make
install':

----------------------------------------------------------------------
/opt/freeware/bin/bash ../../../libtool   --mode=install
../../../build/install-sh -c  'modcpu.la'
'/var/tmp/gg/lib/ganglia/modcpu.la'
../../../build/install-sh -c .libs/modcpu.a
/var/tmp/gg/lib/ganglia/modcpu.a
../../../build/install-sh -c .libs/modcpu.lai
/var/tmp/gg/lib/ganglia/modcpu.la
I've looked at the file gmond/modules/cpu/.libs/modcpu.la on AIX:

...
dlname='modcpu.so'
library_names='modcpu.a modcpu.a'
old_library=''
Is that without or with runtimelinking enabled (LDFLAGS=-Wl,-brtl passed
to configure)?  If without, then libtool puts the modcpu.so file into
the modcpu.a archive (the way AIX does with its system modules as well)
and that is to be expected.

With runtimelinking, the .so file should be a separate file.

BTW, you didn't specify any bug or misbehavior that you see, so maybe
everything else works as expected?
That is without the "-Wl,-brtl" passed to LDFLAGS, so libtool is behaving correctly on AIX to put the modcpu.so into the modcpu.a library archive.

The "misbehavior" is that the "*.a" containing the "*.so" files are not installed as expected:

/opt/freeware/bin/bash ../../../libtool --mode=install ../../../build/install-sh -c 'modcpu.la' '/var/tmp/gg/lib/ganglia/modcpu.la'
../../../build/install-sh -c .libs/modcpu.a /var/tmp/gg/lib/ganglia/modcpu.a
../../../build/install-sh -c .libs/modcpu.lai /var/tmp/gg/lib/ganglia/modcpu.la
----------------------------------------------------------------------
Libraries have been installed in:
   /var/tmp/gg/lib/ganglia

I also don't like a generic setting of "-Wl,-brtl" to LDFLAGS as not all required libraries (zlib, libpng etc.) for AIX are available in rtl-format but instead in the default AIX shared library format.

Regards,

Michael




reply via email to

[Prev in Thread] Current Thread [Next in Thread]