libtool
[Top][All Lists]
Advanced

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

linking with libexpat.so


From: William Trenker
Subject: linking with libexpat.so
Date: Mon, 08 Dec 2003 20:44:26 +0000

I have a strange problem that is trivial to reproduce as shown here:

~/libtool# libtool --version
ltmain.sh (GNU libtool) 1.5 (1.1220 2003/04/05 19:32:58)

~/libtool# libtool --mode=link gcc -o test test.o -rpath /usr/lib -L/usr/lib 
-lpng -lexpat
gcc -o .libs/test test.o  -L/usr/lib -lpng /usr/lib/.libs/libexpat.so 
-Wl,--rpath -Wl,/usr/lib
gcc: /usr/lib/.libs/libexpat.so: No such file or directory

Notice how the linker reference for the expat library has been rendered as 
"/usr/lib//.libs/libexpat.so".  Of course there is no such subdirectory as 
"/usr/lib//.libs/".  Yet the reference to libpng.so is simply -lpng as expected.

Both libexpat.so and libpng.so are installed in /usr/lib as shown here:

~/libtool# l /usr/lib/{libpng.so,libexpat.so}
lrwxrwxrwx    1 root     root           17 May  5  2003 /usr/lib/libexpat.so -> 
libexpat.so.0.1.0*
lrwxrwxrwx    1 root     root           19 Nov 10 23:45 /usr/lib/libpng.so -> 
libpng12.so.0.1.2.4*

I'm mentioning this problem because I've seen it come up on more than one 
occasion when simply downloading and trying to build pretty common software.  
It happened again today when I tried to build fontconfig-2.2.0.  Before running 
off to the fontconfig folks to ask about this I thought I'd try the small test, 
above.

Can you tell me what I can do to circumvent this problem?  Do you think it's a 
configuration anomaly on my system?  I've been trying to find the answer in the 
rather involved debug trace and config listing that I've attached below.

Thanks very much,
Bill

--------------------------------------------------------------

~/libtool# libtool --debug --mode=link gcc -o test test.o -rpath /usr/lib 
-L/usr/lib -lpng -lexpat
+ test 10 -gt 0
+ arg=--mode=link
+ shift
++ echo X--mode=link
++ /usr/bin/sed -e '1s/^X//' -e 's/[-_a-zA-Z0-9]*=//'
+ optarg=link
+ test -n ''
+ mode=link
+ test 9 -gt 0
+ arg=gcc
+ shift
+ optarg=
+ test -n ''
+ nonopt=gcc
+ break
+ test -n ''
+ exec_cmd=
+ test -z ''
+ test -z link
+ test -n ''
+ generic_help=Try `libtool --help' for more information.
+ help=Try `libtool --help --mode=link' for more information.
+ modename=libtool: link
+ allow_undefined=yes
+ libtool_args=gcc
+ base_compile=gcc
+ compile_command=gcc
+ finalize_command=gcc
+ compile_rpath=
+ finalize_rpath=
+ compile_shlibpath=
+ finalize_shlibpath=
+ convenience=
+ old_convenience=
+ deplibs=
+ old_deplibs=
+ compiler_flags=
+ linker_flags=
+ dllsearchpath=
++ pwd
+ lib_search_path=/root/libtool
+ inst_prefix_dir=
+ avoid_version=no
+ dlfiles=
+ dlprefiles=
+ dlself=no
+ export_dynamic=no
+ export_symbols=
+ export_symbols_regex=
+ generated=
+ libobjs=
+ ltlibs=
+ module=no
+ no_install=no
+ objs=
+ non_pic_objects=
+ prefer_static_libs=no
+ preload=no
+ prev=
+ prevarg=
+ release=
+ rpath=
+ xrpath=
+ perm_rpath=
+ temp_rpath=
+ thread_safe=no
+ vinfo=
+ vinfo_number=no
+ test -n ''
+ test 8 -gt 0
+ arg=-o
+ base_compile=gcc -o
+ shift
+ qarg=-o
+ libtool_args=gcc -o
+ test -n ''
+ prevarg=-o
+ prev=output
+ test -n -o
+ compile_command=gcc -o
+ finalize_command=gcc -o
+ test 7 -gt 0
+ arg=test
+ base_compile=gcc -o test
+ shift
+ qarg=test
+ libtool_args=gcc -o test
+ test -n output
+ compile_command=gcc -o @OUTPUT@
+ finalize_command=gcc -o @OUTPUT@
+ eval 'output="$arg"'
++ output=test
+ prev=
+ continue
+ test 6 -gt 0
+ arg=test.o
+ base_compile=gcc -o test test.o
+ shift
+ qarg=test.o
+ libtool_args=gcc -o test test.o
+ test -n ''
+ prevarg=test.o
+ objs= test.o
+ test -n test.o
+ compile_command=gcc -o @OUTPUT@ test.o
+ finalize_command=gcc -o @OUTPUT@ test.o
+ test 5 -gt 0
+ arg=-rpath
+ base_compile=gcc -o test test.o -rpath
+ shift
+ qarg=-rpath
+ libtool_args=gcc -o test test.o -rpath
+ test -n ''
+ prevarg=-rpath
+ prev=rpath
+ continue
+ test 4 -gt 0
+ arg=/usr/lib
+ base_compile=gcc -o test test.o -rpath /usr/lib
+ shift
+ qarg=/usr/lib
+ libtool_args=gcc -o test test.o -rpath /usr/lib
+ test -n rpath
+ test rpath = rpath
+ rpath= /usr/lib
+ prev=
+ continue
+ test 3 -gt 0
+ arg=-L/usr/lib
+ base_compile=gcc -o test test.o -rpath /usr/lib -L/usr/lib
+ shift
+ qarg=-L/usr/lib
+ libtool_args=gcc -o test test.o -rpath /usr/lib -L/usr/lib
+ test -n ''
+ prevarg=-L/usr/lib
++ echo X-L/usr/lib
++ /usr/bin/sed -e '1s/^X//' -e 's/^-L//'
+ dir=/usr/lib
+ deplibs= -L/usr/lib
+ lib_search_path=/root/libtool /usr/lib
+ continue
+ test 2 -gt 0
+ arg=-lpng
+ base_compile=gcc -o test test.o -rpath /usr/lib -L/usr/lib -lpng
+ shift
+ qarg=-lpng
+ libtool_args=gcc -o test test.o -rpath /usr/lib -L/usr/lib -lpng
+ test -n ''
+ prevarg=-lpng
+ test X-lpng = X-lc
+ test X-lpng = X-lm
+ test X-lpng = X-lc_r
+ deplibs= -L/usr/lib -lpng
+ continue
+ test 1 -gt 0
+ arg=-lexpat
+ base_compile=gcc -o test test.o -rpath /usr/lib -L/usr/lib -lpng -lexpat
+ shift
+ qarg=-lexpat
+ libtool_args=gcc -o test test.o -rpath /usr/lib -L/usr/lib -lpng -lexpat
+ test -n ''
+ prevarg=-lexpat
+ test X-lexpat = X-lc
+ test X-lexpat = X-lm
+ test X-lexpat = X-lc_r
+ deplibs= -L/usr/lib -lpng -lexpat
+ continue
+ test 0 -gt 0
+ test -n ''
+ test -n ' CXX F77 GCJ'
+ test -z ''
+ test no = yes
+ oldlibs=
++ echo Xtest
++ /usr/bin/sed -e '1s/^X//' -e 's%^.*/%%'
+ outputname=test
+ libobjs_save=
+ test -n LD_LIBRARY_PATH
+ eval 'shlib_search_path=`$echo' '"X${LD_LIBRARY_PATH}"' '|' '$Xsed' -e 
''\''s/:/' '/g'\''`'
+++ echo 
X/usr/lib/qt3/lib:/opt/kde3/lib:/lib:/usr/lib:/usr/X11/lib:/usr/openwin/lib:/usr/local/lib:/opt/kde3/lib:/usr/lib/mysql
+++ /usr/bin/sed -e '1s/^X//' -e 's/:/ /g'
++ shlib_search_path=/usr/lib/qt3/lib /opt/kde3/lib /lib /usr/lib /usr/X11/lib 
/usr/openwin/lib /usr/local/lib /opt/kde3/lib /usr/lib/mysql
+ eval 'sys_lib_search_path="' /usr/lib/gcc-lib/i386-pc-linux/2.95.3/ 
/usr/lib/gcc/i386-pc-linux/2.95.3/ /usr/i386-pc-linux/lib/i386-pc-linux/2.95.3/ 
/usr/i386-pc-linux/lib/ /usr/lib/i386-pc-linux/2.95.3/ /usr/lib/ 
/lib/i386-pc-linux/2.95.3/ /lib/ /usr/lib/i386-pc-linux/2.95.3/ '/usr/lib/"'
++ sys_lib_search_path= /usr/lib/gcc-lib/i386-pc-linux/2.95.3/ 
/usr/lib/gcc/i386-pc-linux/2.95.3/ /usr/i386-pc-linux/lib/i386-pc-linux/2.95.3/ 
/usr/i386-pc-linux/lib/ /usr/lib/i386-pc-linux/2.95.3/ /usr/lib/ 
/lib/i386-pc-linux/2.95.3/ /lib/ /usr/lib/i386-pc-linux/2.95.3/ /usr/lib/
+ eval 'sys_lib_dlsearch_path="/lib' '/usr/lib"'
++ sys_lib_dlsearch_path=/lib /usr/lib
++ echo Xtest
++ /usr/bin/sed -e '1s/^X//' -e 's%/[^/]*$%%'
+ output_objdir=test
+ test Xtest = Xtest
+ output_objdir=.libs
+ test '!' -d .libs
+ linkmode=prog
+ duplicate_compiler_generated_deps=
+ specialdeplibs=
+ libs=
+ test X = Xyes
+ libs= -L/usr/lib
+ test X = Xyes
+ libs= -L/usr/lib -lpng
+ test X = Xyes
+ libs= -L/usr/lib -lpng -lexpat
+ test prog = lib
+ deplibs=
+ newdependency_libs=
+ newlib_search_path=
+ need_relink=no
+ notinst_deplibs=
+ notinst_path=
+ compile_deplibs=
+ finalize_deplibs=
+ alldeplibs=no
+ newdlfiles=
+ newdlprefiles=
+ passes=conv scan dlopen dlpreopen link
+ test prog,conv = lib,link
+ test prog,conv = prog,scan
+ test prog = prog
+ test conv = dlopen
+ lib=
+ found=no
+ test conv = conv
+ deplibs=-L/usr/lib 
+ continue
+ lib=
+ found=no
+ test prog '!=' lib
+ test prog '!=' prog
+ test conv = conv
+ deplibs=-lpng -L/usr/lib 
+ continue
+ lib=
+ found=no
+ test prog '!=' lib
+ test prog '!=' prog
+ test conv = conv
+ deplibs=-lexpat -lpng -L/usr/lib 
+ continue
+ dependency_libs=
+ test conv = dlpreopen
+ test conv '!=' dlopen
+ test conv '!=' conv
+ test prog,conv '!=' prog,link
+ vars=deplibs
+ eval 'tmp_libs="$deplibs"'
++ tmp_libs=-lexpat -lpng -L/usr/lib 
+ new_libs=
+ new_libs=-lexpat 
+ new_libs=-lpng -lexpat 
+ new_libs=-L/usr/lib -lpng -lexpat 
+ tmp_libs=
+ tmp_libs= -L/usr/lib
+ tmp_libs= -L/usr/lib -lpng
+ tmp_libs= -L/usr/lib -lpng -lexpat
+ eval 'deplibs="' -L/usr/lib -lpng '-lexpat"'
++ deplibs= -L/usr/lib -lpng -lexpat
+ eval 'tmp_libs="$dependency_libs"'
++ tmp_libs=
+ new_libs=
+ tmp_libs=
+ eval 'dependency_libs=""'
++ dependency_libs=
+ tmp_libs=
+ dependency_libs=
+ test prog,scan = lib,link
+ test prog,scan = prog,scan
+ libs= -L/usr/lib -lpng -lexpat
+ deplibs=
+ test prog = prog
+ test scan = dlopen
+ lib=
+ found=no
+ test scan = conv
+ test scan = scan
+ deplibs=-L/usr/lib 
++ echo X-L/usr/lib
++ /usr/bin/sed -e '1s/^X//' -e 's/^-L//'
+ newlib_search_path= /usr/lib
+ continue
+ lib=
+ found=no
+ test prog '!=' lib
+ test prog '!=' prog
+ test scan = conv
++ echo X-lpng
++ /usr/bin/sed -e '1s/^X//' -e 's/^-l//'
+ name=png
+ lib=/usr/lib/libpng.la
+ test -f /usr/lib/libpng.la
+ lib=/root/libtool/libpng.la
+ test -f /root/libtool/libpng.la
+ lib=/usr/lib/libpng.la
+ test -f /usr/lib/libpng.la
+ lib=/usr/lib/gcc-lib/i386-pc-linux/2.95.3//libpng.la
+ test -f /usr/lib/gcc-lib/i386-pc-linux/2.95.3//libpng.la
+ lib=/usr/lib/gcc/i386-pc-linux/2.95.3//libpng.la
+ test -f /usr/lib/gcc/i386-pc-linux/2.95.3//libpng.la
+ lib=/usr/i386-pc-linux/lib/i386-pc-linux/2.95.3//libpng.la
+ test -f /usr/i386-pc-linux/lib/i386-pc-linux/2.95.3//libpng.la
+ lib=/usr/i386-pc-linux/lib//libpng.la
+ test -f /usr/i386-pc-linux/lib//libpng.la
+ lib=/usr/lib/i386-pc-linux/2.95.3//libpng.la
+ test -f /usr/lib/i386-pc-linux/2.95.3//libpng.la
+ lib=/usr/lib//libpng.la
+ test -f /usr/lib//libpng.la
+ lib=/lib/i386-pc-linux/2.95.3//libpng.la
+ test -f /lib/i386-pc-linux/2.95.3//libpng.la
+ lib=/lib//libpng.la
+ test -f /lib//libpng.la
+ lib=/usr/lib/i386-pc-linux/2.95.3//libpng.la
+ test -f /usr/lib/i386-pc-linux/2.95.3//libpng.la
+ lib=/usr/lib//libpng.la
+ test -f /usr/lib//libpng.la
+ lib=/usr/lib/qt3/lib/libpng.la
+ test -f /usr/lib/qt3/lib/libpng.la
+ lib=/opt/kde3/lib/libpng.la
+ test -f /opt/kde3/lib/libpng.la
+ lib=/lib/libpng.la
+ test -f /lib/libpng.la
+ lib=/usr/lib/libpng.la
+ test -f /usr/lib/libpng.la
+ lib=/usr/X11/lib/libpng.la
+ test -f /usr/X11/lib/libpng.la
+ lib=/usr/openwin/lib/libpng.la
+ test -f /usr/openwin/lib/libpng.la
+ lib=/usr/local/lib/libpng.la
+ test -f /usr/local/lib/libpng.la
+ lib=/opt/kde3/lib/libpng.la
+ test -f /opt/kde3/lib/libpng.la
+ lib=/usr/lib/mysql/libpng.la
+ test -f /usr/lib/mysql/libpng.la
+ test no '!=' yes
+ test prog,scan = prog,link
+ deplibs=-lpng -L/usr/lib 
+ test prog = lib
+ continue
+ lib=
+ found=no
+ test prog '!=' lib
+ test prog '!=' prog
+ test scan = conv
++ echo X-lexpat
++ /usr/bin/sed -e '1s/^X//' -e 's/^-l//'
+ name=expat
+ lib=/usr/lib/libexpat.la
+ test -f /usr/lib/libexpat.la
+ found=yes
+ break
+ test yes '!=' yes
+ test Xno = Xyes
+ test yes = yes
+ :
+ :
++ echo X/usr/lib/libexpat.la
++ /usr/bin/sed -e '1s/^X//' -e 's%/[^/]*$%%'
+ ladir=/usr/lib
+ test X/usr/lib = X/usr/lib/libexpat.la
+ dlname=
+ dlopen=
+ dlpreopen=
+ libdir=
+ library_names=
+ old_library=
+ installed=yes
+ shouldnotlink=no
+ . /usr/lib/libexpat.la
++ dlname=libexpat.so.0
++ library_names=libexpat.so.0.1.0 libexpat.so.0 libexpat.so
++ old_library=libexpat.a
++ dependency_libs=
++ current=1
++ age=1
++ revision=0
++ installed=no
++ dlopen=
++ dlpreopen=
++ libdir=/usr/lib
+ test prog,scan = lib,link
+ test prog,scan = prog,scan
+ test -n ''
+ test -n ''
+ test scan = conv
+ linklib=
+ linklib=libexpat.a
+ linklib=libexpat.so.0.1.0
+ linklib=libexpat.so.0
+ linklib=libexpat.so
+ test -z libexpat.so
+ test scan = dlopen
+ abs_ladir=/usr/lib
++ echo X/usr/lib/libexpat.la
++ /usr/bin/sed -e '1s/^X//' -e 's%^.*/%%'
+ laname=libexpat.la
+ test Xno = Xyes
+ dir=/usr/lib/.libs
+ absdir=/usr/lib/.libs
+ notinst_path= /usr/lib
++ echo Xlibexpat.la
++ /usr/bin/sed -e '1s/^X//' -e 's/\.la$//' -e 's/^lib//'
+ name=expat
+ test scan = dlpreopen
+ test -z /usr/lib
+ test prog = prog
+ test scan '!=' link
+ newlib_search_path= /usr/lib /usr/lib
+ deplibs=/usr/lib/libexpat.la -lpng -L/usr/lib 
+ linkalldeplibs=no
+ test unknown '!=' no
+ linkalldeplibs=yes
+ tmp_libs=
+ continue
+ dependency_libs=
+ test scan = dlpreopen
+ test scan '!=' dlopen
+ test scan '!=' conv
+ lib_search_path=
+ lib_search_path= /usr/lib
+ newlib_search_path=
+ test prog,scan '!=' prog,link
+ vars=deplibs
+ eval 'tmp_libs="$deplibs"'
++ tmp_libs=/usr/lib/libexpat.la -lpng -L/usr/lib 
+ new_libs=
+ new_libs=/usr/lib/libexpat.la 
+ new_libs=-lpng /usr/lib/libexpat.la 
+ new_libs=-L/usr/lib -lpng /usr/lib/libexpat.la 
+ tmp_libs=
+ tmp_libs= -L/usr/lib
+ tmp_libs= -L/usr/lib -lpng
+ tmp_libs= -L/usr/lib -lpng /usr/lib/libexpat.la
+ eval 'deplibs="' -L/usr/lib -lpng '/usr/lib/libexpat.la"'
++ deplibs= -L/usr/lib -lpng /usr/lib/libexpat.la
+ eval 'tmp_libs="$dependency_libs"'
++ tmp_libs=
+ new_libs=
+ tmp_libs=
+ eval 'dependency_libs=""'
++ dependency_libs=
+ tmp_libs=
+ dependency_libs=
+ test prog,dlopen = lib,link
+ test prog,dlopen = prog,scan
+ test prog = prog
+ libs=
+ test dlopen = dlopen
+ save_deplibs= -L/usr/lib -lpng /usr/lib/libexpat.la
+ deplibs=
+ dependency_libs=
+ test dlopen = dlpreopen
+ test dlopen '!=' dlopen
+ tmp_libs=
+ dependency_libs=
+ test prog,dlpreopen = lib,link
+ test prog,dlpreopen = prog,scan
+ test prog = prog
+ libs=
+ test dlpreopen = dlopen
+ dependency_libs=
+ test dlpreopen = dlpreopen
+ deplibs=-L/usr/lib 
+ deplibs=-lpng -L/usr/lib 
+ deplibs=/usr/lib/libexpat.la -lpng -L/usr/lib 
+ test dlpreopen '!=' dlopen
+ test dlpreopen '!=' conv
+ lib_search_path=
+ newlib_search_path=
+ test prog,dlpreopen '!=' prog,link
+ vars=deplibs
+ eval 'tmp_libs="$deplibs"'
++ tmp_libs=/usr/lib/libexpat.la -lpng -L/usr/lib 
+ new_libs=
+ new_libs=/usr/lib/libexpat.la 
+ new_libs=-lpng /usr/lib/libexpat.la 
+ new_libs=-L/usr/lib -lpng /usr/lib/libexpat.la 
+ tmp_libs=
+ tmp_libs= -L/usr/lib
+ tmp_libs= -L/usr/lib -lpng
+ tmp_libs= -L/usr/lib -lpng /usr/lib/libexpat.la
+ eval 'deplibs="' -L/usr/lib -lpng '/usr/lib/libexpat.la"'
++ deplibs= -L/usr/lib -lpng /usr/lib/libexpat.la
+ eval 'tmp_libs="$dependency_libs"'
++ tmp_libs=
+ new_libs=
+ tmp_libs=
+ eval 'dependency_libs=""'
++ dependency_libs=
+ tmp_libs=
+ dependency_libs=
+ test prog,link = lib,link
+ test prog,link = prog,scan
+ test prog = prog
+ libs= -L/usr/lib -lpng /usr/lib/libexpat.la %DEPLIBS% 
+ test link = dlopen
+ lib=
+ found=no
+ test link = conv
+ test link = scan
+ compile_deplibs=-L/usr/lib 
+ finalize_deplibs=-L/usr/lib 
+ continue
+ lib=
+ found=no
+ test prog '!=' lib
+ test prog '!=' prog
+ test link = conv
++ echo X-lpng
++ /usr/bin/sed -e '1s/^X//' -e 's/^-l//'
+ name=png
+ lib=/usr/lib/gcc-lib/i386-pc-linux/2.95.3//libpng.la
+ test -f /usr/lib/gcc-lib/i386-pc-linux/2.95.3//libpng.la
+ lib=/usr/lib/gcc/i386-pc-linux/2.95.3//libpng.la
+ test -f /usr/lib/gcc/i386-pc-linux/2.95.3//libpng.la
+ lib=/usr/i386-pc-linux/lib/i386-pc-linux/2.95.3//libpng.la
+ test -f /usr/i386-pc-linux/lib/i386-pc-linux/2.95.3//libpng.la
+ lib=/usr/i386-pc-linux/lib//libpng.la
+ test -f /usr/i386-pc-linux/lib//libpng.la
+ lib=/usr/lib/i386-pc-linux/2.95.3//libpng.la
+ test -f /usr/lib/i386-pc-linux/2.95.3//libpng.la
+ lib=/usr/lib//libpng.la
+ test -f /usr/lib//libpng.la
+ lib=/lib/i386-pc-linux/2.95.3//libpng.la
+ test -f /lib/i386-pc-linux/2.95.3//libpng.la
+ lib=/lib//libpng.la
+ test -f /lib//libpng.la
+ lib=/usr/lib/i386-pc-linux/2.95.3//libpng.la
+ test -f /usr/lib/i386-pc-linux/2.95.3//libpng.la
+ lib=/usr/lib//libpng.la
+ test -f /usr/lib//libpng.la
+ lib=/usr/lib/qt3/lib/libpng.la
+ test -f /usr/lib/qt3/lib/libpng.la
+ lib=/opt/kde3/lib/libpng.la
+ test -f /opt/kde3/lib/libpng.la
+ lib=/lib/libpng.la
+ test -f /lib/libpng.la
+ lib=/usr/lib/libpng.la
+ test -f /usr/lib/libpng.la
+ lib=/usr/X11/lib/libpng.la
+ test -f /usr/X11/lib/libpng.la
+ lib=/usr/openwin/lib/libpng.la
+ test -f /usr/openwin/lib/libpng.la
+ lib=/usr/local/lib/libpng.la
+ test -f /usr/local/lib/libpng.la
+ lib=/opt/kde3/lib/libpng.la
+ test -f /opt/kde3/lib/libpng.la
+ lib=/usr/lib/mysql/libpng.la
+ test -f /usr/lib/mysql/libpng.la
+ test no '!=' yes
+ test prog,link = prog,link
+ compile_deplibs=-lpng -L/usr/lib 
+ finalize_deplibs=-lpng -L/usr/lib 
+ continue
+ lib=
+ found=no
+ lib=/usr/lib/libexpat.la
+ test no = yes
+ test -f /usr/lib/libexpat.la
+ :
+ :
++ echo X/usr/lib/libexpat.la
++ /usr/bin/sed -e '1s/^X//' -e 's%/[^/]*$%%'
+ ladir=/usr/lib
+ test X/usr/lib = X/usr/lib/libexpat.la
+ dlname=
+ dlopen=
+ dlpreopen=
+ libdir=
+ library_names=
+ old_library=
+ installed=yes
+ shouldnotlink=no
+ . /usr/lib/libexpat.la
++ dlname=libexpat.so.0
++ library_names=libexpat.so.0.1.0 libexpat.so.0 libexpat.so
++ old_library=libexpat.a
++ dependency_libs=
++ current=1
++ age=1
++ revision=0
++ installed=no
++ dlopen=
++ dlpreopen=
++ libdir=/usr/lib
+ test prog,link = lib,link
+ test prog,link = prog,scan
+ test prog '!=' prog
+ test link = conv
+ linklib=
+ linklib=libexpat.a
+ linklib=libexpat.so.0.1.0
+ linklib=libexpat.so.0
+ linklib=libexpat.so
+ test -z libexpat.so
+ test link = dlopen
+ abs_ladir=/usr/lib
++ echo X/usr/lib/libexpat.la
++ /usr/bin/sed -e '1s/^X//' -e 's%^.*/%%'
+ laname=libexpat.la
+ test Xno = Xyes
+ dir=/usr/lib/.libs
+ absdir=/usr/lib/.libs
+ notinst_path= /usr/lib /usr/lib
++ echo Xlibexpat.la
++ /usr/bin/sed -e '1s/^X//' -e 's/\.la$//' -e 's/^lib//'
+ name=expat
+ test link = dlpreopen
+ test -z /usr/lib
+ test prog = prog
+ test link '!=' link
+ test prog,link = prog,link
+ test -n 'libexpat.so.0.1.0 libexpat.so.0 libexpat.so'
+ test no = no
+ test -n LD_LIBRARY_PATH
+ temp_rpath= /usr/lib/.libs
+ compile_rpath= /usr/lib/.libs
+ test no = yes
+ link_static=no
+ test -n 'libexpat.so.0.1.0 libexpat.so.0 libexpat.so'
+ test no = no
+ test no = no
+ notinst_deplibs= /usr/lib/libexpat.la
+ need_relink=yes
+ test no = yes
+ test prog = lib
+ test -n ''
+ test prog = prog
+ add_shlibpath=
+ add_dir=
+ add=
+ lib_linked=yes
+ test no = no
+ add=/usr/lib/.libs/libexpat.so
+ test yes '!=' yes
+ test -n ''
+ test prog = prog
+ test -n ''
+ test -n /usr/lib/.libs/libexpat.so
+ compile_deplibs=/usr/lib/.libs/libexpat.so -lpng -L/usr/lib 
+ test prog = prog
+ add_shlibpath=
+ add_dir=
+ add=
+ test no = yes
+ test no = yes
+ test unsupported = yes
+ test no = yes
+ add_dir=-L/usr/lib
+ test -n ''
+ add=-lexpat
+ test prog = prog
+ test -n -L/usr/lib
+ finalize_deplibs=-L/usr/lib -lpng -L/usr/lib 
+ test -n -lexpat
+ finalize_deplibs=-lexpat -L/usr/lib -lpng -L/usr/lib 
+ test prog = lib
+ lib=
+ found=no
+ alldeplibs=yes
+ continue
+ dependency_libs=
+ test link = dlpreopen
+ test link '!=' dlopen
+ test link '!=' conv
+ lib_search_path=
+ newlib_search_path=
+ test prog,link '!=' prog,link
+ vars=compile_deplibs finalize_deplibs
+ eval 'tmp_libs="$compile_deplibs"'
++ tmp_libs=/usr/lib/.libs/libexpat.so -lpng -L/usr/lib 
+ new_libs=
+ new_libs=/usr/lib/.libs/libexpat.so 
+ new_libs=-lpng /usr/lib/.libs/libexpat.so 
+ new_libs=-L/usr/lib -lpng /usr/lib/.libs/libexpat.so 
+ tmp_libs=
+ tmp_libs= -L/usr/lib
+ tmp_libs= -L/usr/lib -lpng
+ tmp_libs= -L/usr/lib -lpng /usr/lib/.libs/libexpat.so
+ eval 'compile_deplibs="' -L/usr/lib -lpng '/usr/lib/.libs/libexpat.so"'
++ compile_deplibs= -L/usr/lib -lpng /usr/lib/.libs/libexpat.so
+ eval 'tmp_libs="$finalize_deplibs"'
++ tmp_libs=-lexpat -L/usr/lib -lpng -L/usr/lib 
+ new_libs=
+ new_libs=-lexpat 
+ new_libs=-L/usr/lib -lexpat 
+ new_libs=-lpng -L/usr/lib -lexpat 
+ new_libs=-L/usr/lib -lpng -L/usr/lib -lexpat 
+ tmp_libs=
+ tmp_libs= -L/usr/lib
+ tmp_libs= -L/usr/lib -lpng
+ tmp_libs= -L/usr/lib -lpng -lexpat
+ eval 'finalize_deplibs="' -L/usr/lib -lpng '-lexpat"'
++ finalize_deplibs= -L/usr/lib -lpng -lexpat
+ eval 'tmp_libs="$dependency_libs"'
++ tmp_libs=
+ new_libs=
+ tmp_libs=
+ eval 'dependency_libs=""'
++ dependency_libs=
+ tmp_libs=
+ dependency_libs=
+ test prog = prog
+ dlfiles=
+ dlprefiles=
+ test -n ''
+ test -n ''
+ test no = yes
+ compile_command=gcc -o @OUTPUT@ test.o  -L/usr/lib -lpng 
/usr/lib/.libs/libexpat.so
+ finalize_command=gcc -o @OUTPUT@ test.o  -L/usr/lib -lpng -lexpat
+ test -n ' /usr/lib'
+ finalize_rpath= /usr/lib
+ rpath=
+ hardcode_libdirs=
+ test -n '${wl}--rpath ${wl}$libdir'
+ test -n ''
+ eval 'flag="${wl}--rpath' '${wl}$libdir"'
++ flag=-Wl,--rpath -Wl,/usr/lib/.libs
+ rpath= -Wl,--rpath -Wl,/usr/lib/.libs
+ test -n '${wl}--rpath ${wl}$libdir'
+ test -n ''
+ eval 'flag="${wl}--rpath' '${wl}$libdir"'
++ flag=-Wl,--rpath -Wl,/usr/lib
+ rpath= -Wl,--rpath -Wl,/usr/lib/.libs -Wl,--rpath -Wl,/usr/lib
+ test -n ''
+ compile_rpath= -Wl,--rpath -Wl,/usr/lib/.libs -Wl,--rpath -Wl,/usr/lib
+ rpath=
+ hardcode_libdirs=
+ test -n '${wl}--rpath ${wl}$libdir'
+ test -n ''
+ eval 'flag="${wl}--rpath' '${wl}$libdir"'
++ flag=-Wl,--rpath -Wl,/usr/lib
+ rpath= -Wl,--rpath -Wl,/usr/lib
+ test -n ''
+ finalize_rpath= -Wl,--rpath -Wl,/usr/lib
+ test -n ''
+ dlsyms=
+ test -n ''
+ test no '!=' no
+ test -n ''
++ echo 'Xgcc -o @OUTPUT@ test.o  -L/usr/lib -lpng /usr/lib/.libs/libexpat.so'
++ /usr/bin/sed -e '1s/^X//' -e 's% @address@hidden'
+ compile_command=gcc -o @OUTPUT@ test.o  -L/usr/lib -lpng 
/usr/lib/.libs/libexpat.so
++ echo 'Xgcc -o @OUTPUT@ test.o  -L/usr/lib -lpng -lexpat'
++ /usr/bin/sed -e '1s/^X//' -e 's% @address@hidden'
+ finalize_command=gcc -o @OUTPUT@ test.o  -L/usr/lib -lpng -lexpat
+ test yes = no
+ test yes '!=' yes
+ test -n LD_LIBRARY_PATH
+ rpath=
+ rpath=/usr/lib/.libs:
+ temp_rpath=/usr/lib/.libs:
+ test -n ''
+ test -n ''
+ compile_var=
+ finalize_var=
+ test -n LD_RUN_PATH
+ test -n ''
+ test -n ''
+ test no = yes
+ test immediate = relink
+ test yes '!=' no
+ link_command=gcc -o @OUTPUT@ test.o  -L/usr/lib -lpng 
/usr/lib/.libs/libexpat.so -Wl,--rpath -Wl,/usr/lib
+ test yes = yes
++ echo 'Xgcc -o @OUTPUT@ test.o  -L/usr/lib -lpng /usr/lib/.libs/libexpat.so 
-Wl,--rpath -Wl,/usr/lib/.libs -Wl,--rpath -Wl,/usr/lib'
++ /usr/bin/sed -e '1s/^X//' -e 'address@hidden@%$progdir/$file%g'
+ relink_command=gcc -o $progdir/$file test.o  -L/usr/lib -lpng 
/usr/lib/.libs/libexpat.so -Wl,--rpath -Wl,/usr/lib/.libs -Wl,--rpath 
-Wl,/usr/lib
++ echo 'Xgcc -o @OUTPUT@ test.o  -L/usr/lib -lpng /usr/lib/.libs/libexpat.so 
-Wl,--rpath -Wl,/usr/lib'
++ /usr/bin/sed -e '1s/^X//' -e address@hidden@%.libs/test%g
+ link_command=gcc -o .libs/test test.o  -L/usr/lib -lpng 
/usr/lib/.libs/libexpat.so -Wl,--rpath -Wl,/usr/lib
+ rm -f test .libs/test .libs/lt-test
+ echo 'gcc -o .libs/test test.o  -L/usr/lib -lpng /usr/lib/.libs/libexpat.so 
-Wl,--rpath -Wl,/usr/lib'
+ eval 'gcc -o .libs/test test.o  -L/usr/lib -lpng /usr/lib/.libs/libexpat.so 
-Wl,--rpath -Wl,/usr/lib'
++ gcc -o .libs/test test.o -L/usr/lib -lpng /usr/lib/.libs/libexpat.so 
-Wl,--rpath -Wl,/usr/lib
gcc: /usr/lib/.libs/libexpat.so: No such file or directory
+ exit 1

--------------------------------------------------------------

~/libtool# libtool --config

# Libtool was configured on host noodle:

# Shell to use when invoking shell scripts.
SHELL="/bin/sh"

# Whether or not to build shared libraries.
build_libtool_libs=yes

# Whether or not to build static libraries.
build_old_libs=yes

# Whether or not to add -lc for building shared libraries.
build_libtool_need_lc=no

# Whether or not to disallow shared libs when runtime libs are static
allow_libtool_libs_with_static_runtimes=no

# Whether or not to optimize for fast installation.
fast_install=yes

# The host system.
host_alias=
host=i686-pc-linux-gnu

# An echo program that does not interpret backslashes.
echo="echo"

# The archiver.
AR="ar"
AR_FLAGS="cru"

# A C compiler.
LTCC="gcc"

# A language-specific compiler.
CC="gcc"

# Is the compiler the GNU C compiler?
with_gcc=yes

# An ERE matcher.
EGREP="grep -E"

# The linker used to build libraries.
LD="/usr/i386-pc-linux/bin/ld"

# Whether we need hard or soft links.
LN_S="ln -s"

# A BSD-compatible nm program.
NM="/usr/bin/nm -B"

# A symbol stripping program
STRIP=strip

# Used to examine libraries when file_magic_cmd begins "file"
MAGIC_CMD=file

# Used on cygwin: DLL creation program.
DLLTOOL="dlltool"

# Used on cygwin: object dumper.
OBJDUMP="objdump"

# Used on cygwin: assembler.
AS="as"

# The name of the directory that contains temporary libtool files.
objdir=.libs

# How to create reloadable object files.
reload_flag=" -r"
reload_cmds="\$LD\$reload_flag -o \$output\$reload_objs"

# How to pass a linker flag through the compiler.
wl="-Wl,"

# Object file suffix (normally "o").
objext="o"

# Old archive suffix (normally "a").
libext="a"

# Shared library suffix (normally ".so").
shrext='.so'

# Executable file suffix (normally "").
exeext=""

# Additional compiler flags for building library objects.
pic_flag=" -fPIC -DPIC"
pic_mode=default

# What is the maximum length of a command?
max_cmd_len=32768

# Does compiler simultaneously support -c and -o options?
compiler_c_o="yes"

# Must we lock files when doing compilation ?
need_locks="no"

# Do we need the lib prefix for modules?
need_lib_prefix=no

# Do we need a version for libraries?
need_version=no

# Whether dlopen is supported.
dlopen_support=yes

# Whether dlopen of programs is supported.
dlopen_self=yes

# Whether dlopen of statically linked programs is supported.
dlopen_self_static=yes

# Compiler flag to prevent dynamic linking.
link_static_flag="-static"

# Compiler flag to turn off builtin functions.
no_builtin_flag=" -fno-builtin -fno-rtti -fno-exceptions"

# Compiler flag to allow reflexive dlopens.
export_dynamic_flag_spec="\${wl}--export-dynamic"

# Compiler flag to generate shared objects directly from archives.
whole_archive_flag_spec="\${wl}--whole-archive\$convenience 
\${wl}--no-whole-archive"

# Compiler flag to generate thread-safe objects.
thread_safe_flag_spec=""

# Library versioning type.
version_type=linux

# Format of library name prefix.
libname_spec="lib\$name"

# List of archive names.  First name is the real one, the rest are links.
# The last name is the one that the linker finds with -lNAME.
library_names_spec="\${libname}\${release}\${shared_ext}\$versuffix 
\${libname}\${release}\${shared_ext}\$major \$libname\${shared_ext}"

# The coded name of the library, if different from the real name.
soname_spec="\${libname}\${release}\${shared_ext}\$major"

# Commands used to build and install an old-style archive.
RANLIB="ranlib"
old_archive_cmds="\$AR \$AR_FLAGS \$oldlib\$oldobjs\$old_deplibs~\$RANLIB 
\$oldlib"
old_postinstall_cmds="\$RANLIB \$oldlib~chmod 644 \$oldlib"
old_postuninstall_cmds=""

# Create an old-style archive from a shared archive.
old_archive_from_new_cmds=""

# Create a temporary old-style archive to link instead of a shared archive.
old_archive_from_expsyms_cmds=""

# Commands used to build and install a shared archive.
archive_cmds="\$CC -shared \$libobjs \$deplibs \$compiler_flags \${wl}-soname 
\$wl\$soname -o \$lib"
archive_expsym_cmds="\$CC -shared \$libobjs \$deplibs \$compiler_flags 
\${wl}-soname \$wl\$soname \${wl}-retain-symbols-file \$wl\$export_symbols -o 
\$lib"
postinstall_cmds=""
postuninstall_cmds=""

# Commands used to build a loadable module (assumed same as above if empty)
module_cmds=""
module_expsym_cmds=""

# Commands to strip libraries.
old_striplib="strip --strip-debug"
striplib="strip --strip-unneeded"

# Dependencies to place before the objects being linked to create a
# shared library.
predep_objects=""

# Dependencies to place after the objects being linked to create a
# shared library.
postdep_objects=""

# Dependencies to place before the objects being linked to create a
# shared library.
predeps=""

# Dependencies to place after the objects being linked to create a
# shared library.
postdeps=""

# The library search path used internally by the compiler when linking
# a shared library.
compiler_lib_search_path=""

# Method to check whether dependent libraries are shared objects.
deplibs_check_method="pass_all"

# Command to use when deplibs_check_method == file_magic.
file_magic_cmd="\$MAGIC_CMD"

# Flag that allows shared libraries with undefined symbols to be built.
allow_undefined_flag=""

# Flag that forces no undefined symbols.
no_undefined_flag=""

# Commands used to finish a libtool library installation in a directory.
finish_cmds="PATH=\\\"\\\$PATH:/sbin\\\" ldconfig -n \$libdir"

# Same as above, but a single script fragment to be evaled but not shown.
finish_eval=""

# Take the output of nm and produce a listing of raw symbols and C names.
global_symbol_pipe="sed -n -e 's/^.*[   ]\\([ABCDGISTW][ABCDGISTW]*\\)[         
][      ]*\\(\\)\\([_A-Za-z][_A-Za-z0-9]*\\)\$/\\1 \\2\\3 \\3/p'"

# Transform the output of nm in a proper C declaration
global_symbol_to_cdecl="sed -n -e 's/^. .* \\(.*\\)\$/extern int \\1;/p'"

# Transform the output of nm in a C name address pair
global_symbol_to_c_name_address="sed -n -e 's/^: \\([^ ]*\\) \$/  {\\\"\\1\\\", 
(lt_ptr) 0},/p' -e 's/^[BCDEGRST] \\([^ ]*\\) \\([^ ]*\\)\$/  {\"\\2\", 
(lt_ptr) \\&\\2},/p'"

# This is the shared library runtime path variable.
runpath_var=LD_RUN_PATH

# This is the shared library path variable.
shlibpath_var=LD_LIBRARY_PATH

# Is shlibpath searched before the hard-coded library search path?
shlibpath_overrides_runpath=no

# How to hardcode a shared library path into an executable.
hardcode_action=immediate

# Whether we should hardcode library paths into libraries.
hardcode_into_libs=yes

# Flag to hardcode $libdir into a binary during linking.
# This must work even if $libdir does not exist.
hardcode_libdir_flag_spec="\${wl}--rpath \${wl}\$libdir"

# If ld is used when linking, flag to hardcode $libdir into
# a binary during linking. This must work even if $libdir does
# not exist.
hardcode_libdir_flag_spec_ld=""

# Whether we need a single -rpath flag with a separated argument.
hardcode_libdir_separator=""

# Set to yes if using DIR/libNAME during linking hardcodes DIR into the
# resulting binary.
hardcode_direct=no

# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
# resulting binary.
hardcode_minus_L=no

# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
# the resulting binary.
hardcode_shlibpath_var=unsupported

# Set to yes if building a shared library automatically hardcodes DIR into the 
library
# and all subsequent libraries and executables linked against it.
hardcode_automatic=no

# Variables whose values should be saved in libtool wrapper scripts and
# restored at relink time.
variables_saved_for_relink="PATH  LD_RUN_PATH GCC_EXEC_PREFIX COMPILER_PATH 
LIBRARY_PATH"

# Whether libtool must link a program against all its dependency libraries.
link_all_deplibs=unknown

# Compile-time system search path for libraries
sys_lib_search_path_spec=" /usr/lib/gcc-lib/i386-pc-linux/2.95.3/ 
/usr/lib/gcc/i386-pc-linux/2.95.3/ /usr/i386-pc-linux/lib/i386-pc-linux/2.95.3/ 
/usr/i386-pc-linux/lib/ /usr/lib/i386-pc-linux/2.95.3/ /usr/lib/ 
/lib/i386-pc-linux/2.95.3/ /lib/ /usr/lib/i386-pc-linux/2.95.3/ /usr/lib/"

# Run-time system search path for libraries
sys_lib_dlsearch_path_spec="/lib /usr/lib"

# Fix the shell variable $srcfile for the compiler.
fix_srcfile_path=""

# Set to yes if exported symbols are required.
always_export_symbols=no

# The commands to list exported symbols.
export_symbols_cmds="\$NM \$libobjs \$convenience | \$global_symbol_pipe | 
\$SED 's/.* //' | sort | uniq > \$export_symbols"

# The commands to extract the exported symbol list from a shared archive.
extract_expsyms_cmds=""

# Symbols that should not be listed in the preloaded symbols.
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"

# Symbols that must always be exported.
include_expsyms=""





reply via email to

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