[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
A problem of relinking libraries, help
From: |
麦联叨 |
Subject: |
A problem of relinking libraries, help |
Date: |
Mon, 10 Jan 2005 12:49:24 +0800 |
hi everyone,
I got a problem when making install libraires built with libtool on a
AIX machine. "make all" works well, but if I make install, libtool gives me a
warning of relinking, and the output of the libtool looks as following:
++++++++++++++++++++++++++++++++
libtool: install: warning: relinking `libbmsCAU.la'
(cd /test/mailt/dev/ngoss/bms3/newline; /bin/sh ../libtool --mode=relink xlC_r
-D_REENTRANT -D_THREAD_SAFE -g -qflag=w:w -qstaticinline -qfuncsect
-qrtti=dynamiccast -qchars=signed -I.. -I/home/aioss/include -I../include
-I../include -DHAVE_CONFIG_H -DOSS_AIX_MAJOR_VERS=5 -DOSS_AIX_MINOR_VERS=1 -I..
-Wl,-brtl -o libbmsCAU.la -rpath /home/aioss/lib -release 3.0 -version-info
0:0:0 bmsCAU.lo bmsCust.lo -L/home/aioss/lib -laitool -L/opt/freeware/lib
-ltclstub8.3 -ltcl -L../newline/.libs/ -laidb -lbmsPublic -lbmsActionBatch
-lbmsImport -lbmsLog -lbmsPs -lbmsBase -lbmsUtil )
generating symbol list for `libbmsCAU.la'
/usr/bin/nm -B -BCpg .libs/bmsCAU.o .libs/bmsCust.o | awk '{ if ((($2 == "T")
|| ($2 == "D") || ($2 == "B")) && (substr($3,1,1) != ".")) { print $3 } }' |
sort -u > .libs/libbmsCAU.exp
xlC_r -o .libs/libbmsCAU-3.0.so.0.0.0 .libs/bmsCAU.o .libs/bmsCust.o
-blibpath:/home/aioss/lib:/usr/lpp/xlopt:/usr/lib/threads:/usr/vacpp/lib:/usr/lib:/lib
-L/home/aioss/lib -L/opt/freeware/lib
-L/test/mailt/dev/ngoss/bms3/newline/.libs -L/oracle9i/9i/lib32
-L/common/.libs/ -L/test/mailt/dev/ngoss/bms3/xframe/.libs
-L/test/altibase/renf_alti/alti_cli/lib
-L/test/mailt/dev/ngoss/bms3/newline/.libs/.libs -ltclstub8.3 -ltcl -lc
-Wl,-brtl `if test "x-berok" != "x"; then echo "-berok"; else :; fi` -bnoentry
-bexport:.libs/libbmsCAU.exp -G -D_REENTRANT -D_THREAD_SAFE -qflag=w:w
-qstaticinline -qfuncsect -qrtti=dynamiccast -qchars=signed -DHAVE_CONFIG_H
-DOSS_AIX_MAJOR_VERS=5 -DOSS_AIX_MINOR_VERS=1 -I/test/mailt/dev/ngoss/bms3
-I/home/aioss/include -I/test/mailt/dev/ngoss/bms3/include
-I/test/mailt/dev/ngoss/bms3/include -I/test/mailt/dev/ngoss/bms3
ld: 0711-224 WARNING: Duplicate symbol:
std::basic_string<char,std::char_traits<char>,std::allocator<char> >::npos
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
cp .libs/libbmsCAU-3.0.so.0.0.0T /home/aioss/lib/libbmsCAU-3.0.so.0.0.0
(cd /home/aioss/lib && rm -f libbmsCAU-3.0.so.0 && ln -s libbmsCAU-3.0.so.0.0.0
libbmsCAU-3.0.so.0)
(cd /home/aioss/lib && rm -f libbmsCAU.so && ln -s libbmsCAU-3.0.so.0.0.0
libbmsCAU.so)
cp .libs/libbmsCAU.lai /home/aioss/lib/libbmsCAU.la
----------------------------------------------------------------------
Libraries have been installed in:
/home/aioss/lib
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:/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.
----------------------------------------------------------------------
++++++++++++++++++++++++++++++++
It's strange enough in that, linking options "-L../newline/.libs/ -laidb
-lbmsPublic -lbmsActionBatch -lbmsImport -lbmsLog -lbmsPs -lbmsBase -lbmsUtil"
appear in the libtool command, but do not appear in the actuall linking
command. I don't know why libtool omit these linking options?
Mai Liantao
address@hidden
2005-01-09
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- A problem of relinking libraries, help,
麦联叨 <=