This is the mail archive of the
libc-hacker@sourceware.cygnus.com
mailing list for the glibc project.
Re: Build of 2.0.95 on AXP/Linux fails
- To: "Paul M. Hirsch" <hirsch@instrumental.com>
- Subject: Re: Build of 2.0.95 on AXP/Linux fails
- From: Andreas Jaeger <aj@arthur.rhein-neckar.de>
- Date: 21 Aug 1998 06:51:03 +0200
- Cc: libc-alpha@cygnus.com
- Mail-Copies-To: never
- References: <199808202020.PAA26099@linus.instrumental.com>
>>>>> Paul M Hirsch writes:
>> Description:
> When building GLIBC, gcc fails with:
> gcc -g -nostdlib -nostartfiles -shared -o ld.so \
> -Wl,-rpath=/lib:/usr/lib \
> librtld.os \
> -Wl,-soname=ld-linux.so.2
> /usr/alphaev56-unknown-linux-gnu/bin/ld: ld.so: undefined versioned symbol name setitimer@@GLIBC_2.1
> /usr/alphaev56-unknown-linux-gnu/bin/ld: failed to set dynamic section sizes: Bad value
> collect2: ld returned 1 exit status
> make: *** [ld.so] Error 1
The appended patch fixes your problem.
Andreas
1998-07-30 Richard Henderson <rth@cygnus.com>
* elf/Makefile (ld-map): Move initialization below Makeconfig include.
Index: elf/Makefile
===================================================================
RCS file: /glibc/cvsfiles/libc/elf/Makefile,v
retrieving revision 1.95
retrieving revision 1.96
diff -u -r1.95 -r1.96
--- Makefile 1998/07/27 17:42:09 1.95
+++ Makefile 1998/07/30 12:36:37 1.96
@@ -35,9 +35,6 @@
# ld.so uses those routines, plus some special stuff for being the program
# interpreter and operating independent of libc.
rtld-routines := rtld $(dl-routines) dl-sysdep dl-environ dl-minimal
-ifeq ($(versioning),yes)
-ld-map = $(common-objpfx)libc.map
-endif
distribute = $(rtld-routines:=.c) dynamic-link.h do-rel.h dl-machine.h \
dl-hash.h soinit.c sofini.c ldd.sh.in ldd.bash.in eval.c \
genrtldtbl.awk atomicity.h dl-procinfo.h ldsodefs.h \
@@ -53,6 +50,10 @@
all: # Make this the default target; it will be defined in Rules.
include ../Makeconfig
+
+ifeq ($(versioning),yes)
+ld-map = $(common-objpfx)libc.map
+endif
ifeq (yes,$(build-shared))
extra-objs = $(rtld-routines:=.os) soinit.os sofini.os eval.os interp.os
--
Andreas Jaeger aj@arthur.rhein-neckar.de jaeger@informatik.uni-kl.de
for pgp-key finger ajaeger@alma.student.uni-kl.de