Subject: bin/34256: sh(1) in NetBSD 4.99.1 breaks NetBSD 3.x crossbuild
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: None <tron@colwyn.zhadum.org.uk>
List: netbsd-bugs
Date: 08/22/2006 13:25:03
>Number:         34256
>Category:       bin
>Synopsis:       sh(1) in NetBSD 4.99.1 breaks NetBSD 3.x crossbuild
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Aug 22 13:25:03 +0000 2006
>Originator:     tron@colwyn.zhadum.org.uk
>Release:        NetBSD 4.99.1 2006-08-22 sources
>Organization:
Matthias Scheler                                  http://zhadum.org.uk/
>Environment:
System: NetBSD lyssa.zhadum.org.uk 4.99.1 NetBSD 4.99.1 (LYSSA) #0: Tue Aug 22 09:11:34 BST 2006 tron@lyssa.zhadum.org.uk:/src/sys/compile/LYSSA i386
Architecture: i386
Machine: i386
>Description:
Trying to build the "netbsd-3" branch under NetBSD 4.99.1 dies with this
error message:

f="";  for i in elf32-i386.lo elf32.lo elf.lo elflink.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo i386netbsd.lo aout32.lo elf32-gen.lo cpu-i386.lo ; do  case " $f " in  *" $i "*) ;;  *) f="$f $i" ;;  esac ;  done ;  echo $f > tofiles
/bin/sh /amd/colwyn/export/source/NetBSD-releng/3/src/tools/binutils/../../gnu/dist/binutils/bfd/../move-if-change tofiles ofiles
touch stamp-ofiles
/bin/sh ./libtool --mode=link cc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -O  -o libbfd.la -rpath /export/home/tron/obj/tooldir.NetBSD-4.99.1-i386/i386
-unknown-netbsdelf4.99.1/i386--netbsdelf/lib -release 2.15 archive.lo archures.lo bfd.lo bfdio.lo bfdwin.lo  cache.lo coffgen.lo corefile.lo format.lo init.lo l
ibbfd.lo opncls.lo  reloc.lo section.lo syms.lo targets.lo hash.lo linker.lo srec.lo  binary.lo tekhex.lo ihex.lo stabs.lo stab-syms.lo merge.lo dwarf2.lo  simple.lo archive64.lo `cat ofiles` 
mkdir .libs
libtool: link: cannot find the library `'

It works fine if I either set "CONFIG_SHELL" to "/bin/ksh" or use a slightly
older "/bin/sh" (built from "netbsd-3" or "netbsd-4" branch sources).

>How-To-Repeat:
cvs -d cvs.netbsd.org:/cvsroot checkout -P -rnetbsd-3 src
cd src
./build.sh -u -U

>Fix:
Backout revison 1.75 of "src/bin/sh/expand.c".