From owner-freebsd-current Mon Jul 16 12:27:24 2001 Delivered-To: freebsd-current@freebsd.org Received: from wall.polstra.com (rtrwan160.accessone.com [206.213.115.74]) by hub.freebsd.org (Postfix) with ESMTP id DFC7237B403; Mon, 16 Jul 2001 12:27:18 -0700 (PDT) (envelope-from jdp@polstra.com) Received: from vashon.polstra.com (vashon.polstra.com [206.213.73.13]) by wall.polstra.com (8.11.3/8.11.1) with ESMTP id f6GJRHq53168; Mon, 16 Jul 2001 12:27:17 -0700 (PDT) (envelope-from jdp@polstra.com) Message-ID: X-Mailer: XFMail 1.3 [p0] on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 Date: Mon, 16 Jul 2001 12:27:17 -0700 (PDT) Organization: Polstra & Co., Inc. From: John Polstra To: current@freebsd.org Subject: ncurses: 4.x -> 5.x buildworld failure + patch Cc: peter@freebsd.org Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG While upgrading an old (October 2000) -current system which did not have a libc.so.5 yet, I ran into this failure in src/lib/ncurses: cc -o make_keys -nostdinc -O -pipe -mcpu=ev56 -mcpu=ev56 -I. -I/c/src/lib/libncurses -I/c/src/lib/libncurses/../../contrib/ncur ses/ncurses -I/c/src/lib/libncurses/../../contrib/ncurses/include -Wall -DFREEBSD_NATIVE -DNDEBUG -DHAVE_CONFIG_H -DTERMIOS -I/ usr/obj/c/src/alpha/usr/include /c/src/lib/libncurses/../../contrib/ncurses/ncurses/tinfo/make_keys.c ./make_keys /c/src/lib/libncurses/../../contrib/ncurses/ncurses/tinfo/keys.list > init_keytry.h /usr/libexec/ld-elf.so.1: Shared object "libc.so.5" not found *** Error code 1 I am reasonably sure the same problem would occur in trying to upgrade from -stable to -current. I patched it as shown below and the buildworld was able to finish. John Index: Makefile =================================================================== RCS file: /home/ncvs/src/lib/libncurses/Makefile,v retrieving revision 1.51 diff -u -r1.51 Makefile --- Makefile 2001/06/12 01:14:02 1.51 +++ Makefile 2001/07/16 15:24:59 @@ -330,10 +330,10 @@ build-tools: make_hash make_keys make_keys: make_keys.c names.c curses.h ncurses_def.h - ${CC} -o $@ ${CFLAGS} ${NCURSES}/ncurses/tinfo/make_keys.c + ${CC} -o $@ -static ${CFLAGS} ${NCURSES}/ncurses/tinfo/make_keys.c make_hash: comp_hash.c hashsize.h curses.h ncurses_def.h - ${CC} -o $@ ${CFLAGS} -DMAIN_PROGRAM \ + ${CC} -o $@ -static ${CFLAGS} -DMAIN_PROGRAM \ ${NCURSES}/ncurses/tinfo/comp_hash.c # ./configure generated To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message