Date: Mon, 16 Jul 2001 12:27:17 -0700 (PDT) From: John Polstra <jdp@polstra.com> To: current@freebsd.org Cc: peter@freebsd.org Subject: ncurses: 4.x -> 5.x buildworld failure + patch Message-ID: <XFMail.010716122717.jdp@polstra.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.010716122717.jdp>