linking failure due to duplicate interp.os

Bernhard Fischer rep.nop at aon.at
Thu Jul 6 04:51:39 PDT 2006


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



More information about the uClibc mailing list