Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Dec 2000 01:01:25 -0500 (EST)
From:      Mikhail Teterin <mi@aldan.algebra.com>
To:        current@freebsd.org, obrien@freebsd.org
Subject:   patch for gnu/usr.bin/ld/Makefile
Message-ID:  <200012150601.eBF61P694730@aldan.algebra.com>

next in thread | raw e-mail | index | archive | help
Hello!

During my attempt to build 5.0-current using 4.2-BETA, I stumbled
upon the following error:

[...]
gzip -cn /opt/src/gnu/usr.bin/ld/ld.1aout > ld.1aout.gz
cc -O -pipe  -mcpu=i686 -march=i686 -I/opt/src/gnu/usr.bin/ld -I/opt/src/gnu/usr.bin/ld/../../../libexec/rtld-aout -I/opt/src/gnu/usr.bin/ld/../../../libexec/rtld-aout/i386  -I/opt/src/gnu/usr.bin/ld/../../../contrib/gcc -DIN_GCC -DDEMANGLE_CPLUSPLUS -DFREEBSD_AOUT   -I/usr/obj/opt/src/i386/usr/include  -static -o ld ld.o symbol.o lib.o shlib.o warnings.o support.o rrs.o xbits.o md.o cplus-dem.o  
cplus-dem.o: In function `cplus_demangle':
cplus-dem.o(.text+0x819): undefined reference to `cplus_demangle_new_abi'
*** Error code 1
1 error
[...]

A surprisingly simple patch fixed it:

+++ gnu/usr.bin/ld/Makefile	Mon Jan  3 05:41:11 2000
+++ gnu/usr.bin/ld/Makefile	Fri Dec 15 00:40:07 2000
@@ -9,5 +9,5 @@
 MAN1aout=ld.1aout
 SRCS=	ld.c symbol.c lib.c shlib.c warnings.c support.c rrs.c xbits.c md.c \
-	cplus-dem.c
+	cplus-dem.c cp-demangle.c dyn-string.c
 CFLAGS+= -I${.CURDIR} -I${RTLD} -I${RTLD}/${MACHINE_ARCH} \
 	-I${GCCDIR} -DIN_GCC -DDEMANGLE_CPLUSPLUS -DFREEBSD_AOUT

The Makefile  did not change  for almost a  year, but some  changes were
	-mi


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200012150601.eBF61P694730>