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
ses/ncurses -I/c/src/lib/libncurses/../../contrib/ncurses/include -Wall
./make_keys /c/src/lib/libncurses/../../contrib/ncurses/ncurses/tinfo/keys.list >
/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.


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 \
 # ./configure generated

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to