linking failure due to duplicate interp.os

Peter S. Mazinger ps.m at gmx.net
Thu Jul 6 14:14:48 UTC 2006


On Thu, 6 Jul 2006, Bernhard Fischer wrote:

> Hi,
> 
> ld  -shared --warn-common --warn-once -z combreloc -z relro -z now -z defs \
> -soname=libcrypt.so.0 -o lib/libcrypt-0.9.28.so  libcrypt/libcrypt.oS \
> lib/interp.os ./lib/interp.os -L./lib ./lib/libc.so  /there/libgcc.a
> ./lib/interp.os:(.interp+0x0): multiple definition of `__dl_ldso__'
> lib/interp.os:(.interp+0x0): first defined here
> 
> For now i'm doing this so interp is only passed in once:
> 
> ld  -shared --warn-common --warn-once -z combreloc -z relro -z now -z defs \
> -soname=libcrypt.so.0 -o lib/libcrypt-0.9.28.so  libcrypt/libcrypt.oS \
> lib/interp.os -L./lib ./lib/libc.so  /there/libgcc.a
> 
> 
> Index: uClibc/Rules.mak
> ===================================================================
> --- uClibc/Rules.mak    (revision 15618)
> +++ uClibc/Rules.mak    (working copy)
> @@ -89,7 +89,7 @@
>  sub_headers := $(headers_dep)
>  
>  #LIBS :=$(interp) -L$(top_builddir)lib -lc
> -LIBS := $(interp) -L$(top_builddir)lib $(libc:.$(MAJOR_VERSION)=)
> +LIBS := -L$(top_builddir)lib $(libc:.$(MAJOR_VERSION)=)
>  
>  # Make sure DESTDIR and PREFIX can be used to install
>  # PREFIX is a uClibcism while DESTDIR is a common GNUism

that affects all other libs, do you have the duplicate with the other libs 
as well, I can't see the reason why that duplicate happens

Peter

-- 
Peter S. Mazinger <ps dot m at gmx dot net>           ID: 0xA5F059F2
Key fingerprint = 92A4 31E1 56BC 3D5A 2D08  BB6E C389 975E A5F0 59F2




More information about the uClibc mailing list