bug-libtool
[Top][All Lists]
Advanced

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

Re: Bugreport: Incorrect forwarding of a shared library's -R flags when


From: Stefan Muller
Subject: Re: Bugreport: Incorrect forwarding of a shared library's -R flags when this library is linked to an executable
Date: Wed, 6 Jan 2010 09:08:46 -0800

Bob,

Thanks for your reply. However, I downloading the official FSF version of libtool from

http://ftp.gnu.org/gnu/libtool/libtool-2.2.6b.tar.gz

is what I tried first. I compiled from sources and installed the official libtool in /usr/local, which overrides the ubuntu installation in /usr. Below is the diff of the two versions of ltmain.sh - both versions have the "-R*) ;;" line (#6002 and #6005, respectively), which makes my executables link incorrectly.

Thanks,
Stefan 


$ diff /usr/local/share/libtool/config/ltmain.sh /usr/share/libtool/config/ltmain.sh 
3c3
< # ltmain.sh (GNU libtool) 2.2.6b
---
> # ltmain.sh (GNU libtool) 2.2.6
68c68
< #       $progname: (GNU libtool) 2.2.6b
---
> #       $progname: (GNU libtool) 2.2.6 Debian-2.2.6a-1ubuntu1
76c76
< VERSION=2.2.6b
---
> VERSION="2.2.6 Debian-2.2.6a-1ubuntu1"
78c78
< package_revision=1.3017
---
> package_revision=1.3012
5036c5036,5039
< link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;
---
> link)
>  libs="$deplibs %DEPLIBS%"
>  test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
>  ;;
6208a6212,6214
>  *)
>    func_fatal_configuration "$modename: unknown library version type \`$version_type'"
>    ;;


On Wed, Jan 6, 2010 at 8:48 AM, Bob Friesenhahn <address@hidden> wrote:
On Tue, 5 Jan 2010, Stefan Muller wrote:
            -L*) new_libs="$deplib $new_libs" ;;
            -R*) ;;                                                             # !!!!!!!!!!!!!!
            *)
              # And here is the reason: when a library appears more
              # than once as an explicit dependence of a library, or
              # is implicitly linked in more than once by the

Please make sure that you are using the official FSF-released version of libtool rather than a modified one.  It looks to me like you are using one which has been modified by the libtool package maintainer for your operating system.  This sort of modification is common.

The easiest approach is to install official FSF autoconf, automake, and libtool, all under the same prefix, but using a different prefix than the ones provided with your operating system.  Then set your path to use the versions you installed.

Bob
--
Bob Friesenhahn
address@hidden, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/


reply via email to

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