Subject: Re: building tools fails
To: Jukka Salmi <>
From: walt <>
List: current-users
Date: 10/08/2004 21:34:52
Jukka Salmi wrote:
> Hi,
> after updating current sources on a i386 system today building tools fails:
> $ ./ -U -O /build/nbsd -T /opt/tools tools
> [...]
> cc -DIN_GCC -DHAVE_CONFIG_H -O -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -DHAVE_CONFIG_H -DGENERATOR_FILE -DNETBSD_TOOLS  -I. -I.. -I/usr/src/tools/gcc/../../gnu/dist/gcc/gcc/fixinc -I/usr/src/tools/gcc/../../gnu/dist/gcc/gcc/fixinc/..  -I/usr/src/tools/gcc/../../gnu/dist/gcc/gcc/fixinc/../config -I/usr/src/tools/gcc/../../gnu/dist/gcc/gcc/fixinc/../../include  -o fixincl fixincl.o fixtests.o fixfixes.o server.o procopen.o  gnu-regex.o fixlib.o
> fixincl.o(.text+0x7b): In function `main':
> : undefined reference to `_sch_istable'

An earlier thread indicates this is due to a bug in the /bin/sh you are running now.
You need to compile and install a new sh before trying to build anything else.

I already deleted my old tooldir so I couldn't compile a new /bin/sh.  I'm now
using bash to compile a new tooldir, which has worked well in the past when /bin/sh
has bugs.  I just cheat and create a symlink from /bin/sh to bash.