Subject: bin/33681: SHAREDSTRINGS causes 'bc' build failure
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: None <scotte@warped.com>
List: netbsd-bugs
Date: 06/09/2006 19:05:00
>Number:         33681
>Category:       bin
>Synopsis:       Building 'bc' with SHAREDSTRINGS=yes fails
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jun 09 19:05:00 +0000 2006
>Originator:     Scott Ellis
>Release:        NetBSD 3.99.21
>Organization:
	
>Environment:
	
	
System: NetBSD intrepid 3.99.21 NetBSD 3.99.21 (INTREPID.AMD64) #1: Thu Jun 8 18:30:31 PDT 2006 scotte@intrepid:/misc/netbsd_src/src/obj.amd64/misc/netbsd_src/src/sys/arch/amd64/compile/INTREPID.AMD64 amd64
Architecture: x86_64
Machine: amd64
>Description:
	
Putting SHAREDSTRINGS=yes into /etc/mk.conf and attempting to use build.sh
to build a release fails with:

#    create  dc/.depend
rm -f .depend
CC=/misc/netbsd_build/amd64/tooldir/bin/x86_64--netbsd-gcc /misc/netbsd_build/am
d64/tooldir/bin/nbmkdep -d -f .depend -s .o\ .ln array.d dc.d eval.d misc.d numb
er.d numeric.d stack.d string.d
rm -f .gdbinit
echo "set solib-absolute-prefix /misc/netbsd_build/amd64/destdir" > .gdbinit
/misc/netbsd_build/amd64/tooldir/bin/x86_64--netbsd-gcc -E -O2 -pipe  -Werror -m
arch=k8  /misc/netbsd_src/src/gnu/dist/bc/dc/array.c | xstr -c -
/misc/netbsd_src/src/gnu/dist/bc/dc/array.c:27:20: error: config.h: No such file
 or directory
/misc/netbsd_src/src/gnu/dist/bc/dc/array.c:29:49: error: stdio.h: No such file
or directory
cc1: warnings being treated as errors

Removing SHAREDSTRINGS=yes causes the build to proceed fine.
>How-To-Repeat:
	
Put SHAREDSTRINGS=yes in mk.conf, and attempt to build release using build.sh
>Fix:
	
Not known, but I'm sure there's some makefile hackery that can be done.

>Unformatted: