libtool
[Top][All Lists]
Advanced

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

Install of libtool module on AIX 4.2 does not work.


From: Peter Ekberg
Subject: Install of libtool module on AIX 4.2 does not work.
Date: Tue, 11 Jan 2005 18:31:19 +0100

Hello!

When installing a "libtool module" on aix 4.2, the .so file is not
installed, even though the .la file specifies:
dlname='x.so'

Copying x.so to the intended directory makes it work. However, trying to
dlopen more than one such DSO does not work for some reason yet unknown
to me. But one is better than none, no?

Below is the output from a "make install" run.

make[1]: Entering directory `/tmp_mnt/home/peda/ggi/aix4.2/gii/input/x'
make[1]: Nothing to be done for `install-exec-am'.
test -z "/home/peda/ggi/aix4.2/root/lib/ggi/input" || mkdir -p --
"/home/peda/ggi/aix4.2/root/lib/ggi/input"
 /bin/sh ../../libtool --mode=install /sw/local/bin/install -c  'x.la'
'/home/peda/ggi/aix4.2/root/lib/ggi/input/x.la'
libtool: install: warning: relinking `x.la'
(cd /tmp_mnt/home/peda/ggi/aix4.2/gii/input/x; /bin/sh
/tmp_mnt/home/peda/ggi/aix4.2/gii/libtool  --tag CC --mode=relink gcc -g
-O2 -Wall -pedantic -D_REENTRANT -D_THREAD_SAFE -DDEBUG -g -std=gnu99
-Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wswitch
-Wmissing-prototypes -Wreturn-type -Wshadow -Wnested-externs
-Wredundant-decls -o x.la -rpath
/home/peda/ggi/aix4.2/root/lib/ggi/input -module -no-undefined
-avoid-version -export-symbols
../../../../ggi-core/libgii/input/x/EXPSYMS input.lo xev.lo
../../gii/libgii.la ../../gg/libgg.la -lX11 )
gcc -shared -o .libs/x.so  .libs/input.o .libs/xev.o
-Wl,-blibpath:/home/peda/ggi/aix4.2/root/lib:/sw/local/lib/gcc-lib/rs600
0-ibm-aix4.2.1.0/3.2:/sw/local/lib/gcc-lib/rs6000-ibm-aix4.2.1.0/3.2/../
../..:/usr/lib:/lib -L/tmp_mnt/home/peda/ggi/aix4.2/gii/gg/lib
-L/tmp_mnt/home/peda/ggi/aix4.2/gii/gg/.libs
/home/peda/ggi/aix4.2/root/lib/libgii.a
/home/peda/ggi/aix4.2/root/lib/libgg.a -ldl -lX11 -lc
-Wl,-bE:../../../../ggi-core/libgii/input/x/EXPSYMS -Wl,-bnoentry
-Wl,-bernotok
ar cru .libs/x.a .libs/x.so
/sw/local/bin/install -c .libs/x.aT
/home/peda/ggi/aix4.2/root/lib/ggi/input/x.a
/sw/local/bin/install -c .libs/x.lai
/home/peda/ggi/aix4.2/root/lib/ggi/input/x.la
----------------------------------------------------------------------
Libraries have been installed in:
   /home/peda/ggi/aix4.2/root/lib/ggi/input

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LIBPATH' environment variable
     during execution
   - use the
`-Wl,-blibpath:LIBDIR:/sw/local/lib/gcc-lib/rs6000-ibm-aix4.2.1.0/3.2:/s
w/local/lib/gcc-lib/rs6000-ibm-aix4.2.1.0/3.2/../../..:/usr/lib:/lib '
linker flag

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
make[1]: Leaving directory `/tmp_mnt/home/peda/ggi/aix4.2/gii/input/x'

Cheers,
Peter




reply via email to

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