libtool
[Top][All Lists]
Advanced

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

Re: linking with libexpat.so


From: Peter O'Gorman
Subject: Re: linking with libexpat.so
Date: Tue, 09 Dec 2003 13:52:54 +0900
User-agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

William Trenker wrote:

| 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.
|
You have a /usr/lib/libexpat.la which says "installed=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

I don't know where you got it from, but I'd suggest reinstalling expat
(of course you could just edit the .la to say "installed=yes", but there
may be other oddities that a complete reinstall would fix and the
editing of the .la doesn't).

Hope this helps,
Peter
- --
Peter O'Gorman - http://www.pogma.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (Darwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iQCVAwUBP9VVI7iDAg3OZTLPAQJ1fQP9HtY09JdBVkjWHa1xbPDk/ps4ywe+a8Nz
yyOIbc+ybHggh/xAdlFeHkb/JDnbyk28TzWgY9MgIOPaBprtDkjecDbMAXK30Ult
zgEEt1g32iM0tDQiepQhJFuXlBhtrBJFzoNKq9B1kjJGOwWgeh6toEZuwO24cdNc
ONC5i90NUcU=
=RD7z
-----END PGP SIGNATURE-----




reply via email to

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