[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 `'
(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 
-Wl,-brtl -o -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 `'
/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/  .libs/bmsCAU.o .libs/bmsCust.o 
  -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/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/ /home/aioss/lib/
(cd /home/aioss/lib && rm -f && ln -s
(cd /home/aioss/lib && rm -f && ln -s
cp .libs/libbmsCAU.lai /home/aioss/lib/
Libraries have been installed in:

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 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

reply via email to

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