Subject: defined(SHAREDSTRINGS) == failed build.
To: NetBSD Current Users <current-users@netbsd.org>
From: Greywolf <greywolf@starwolf.com>
List: current-users
Date: 10/24/2003 10:27:08
Greetings, all, please redirect this to the appropriate place (would
tech-toolchain have been better?).

If I define SHAREDSTRINGS in /etc/mk.conf, the build fails in gnu/dist/bc
with:

#    create  dc.info
/usr/src/tools/tools-i386/bin/nbmakeinfo  --no-split -o dc.info /usr/src/gnu/dis
t/bc/doc/dc.texi
rm -f .gdbinit
echo "set solib-absolute-prefix /d2/arch/i386/build" > .gdbinit
/usr/src/tools/tools-i386/bin/i386--netbsdelf-gcc -E -O2  -O2  -march=athlon-xp
  -Werror   -O2  -march=athlon-xp  /usr/src/gnu/dist/bc/dc/array.c | xstr -c -
/usr/src/gnu/dist/bc/dc/array.c:27:20: config.h: No such file or directory
/usr/src/gnu/dist/bc/dc/array.c:29:54: stdio.h: No such file or directory
/usr/src/gnu/dist/bc/dc/array.c:34:40: extra tokens at end of #line directive
/usr/src/gnu/dist/bc/dc/dc.h:81:44: extra tokens at end of #line directive
/usr/src/gnu/dist/bc/dc/array.c:35:46: extra tokens at end of #line directive
/usr/src/gnu/dist/bc/dc/dc-proto.h:27: warning: parameter names (without types)
in function declaration
/usr/src/gnu/dist/bc/dc/dc-proto.h:54: error: parse error before '*' token
/usr/src/gnu/dist/bc/dc/dc-proto.h:59: error: parse error before '*' token
/usr/src/gnu/dist/bc/dc/dc-proto.h:71: error: parse error before "dc_strlen"
/usr/src/gnu/dist/bc/dc/dc-proto.h:71: warning: data definition has no type or s
torage class
/usr/src/gnu/dist/bc/dc/dc-proto.h:79: error: parse error before "size_t"
/usr/src/gnu/dist/bc/dc/dc-proto.h:80: error: parse error before '*' token
/usr/src/gnu/dist/bc/dc/dc-proto.h:91:44: extra tokens at end of #line directive
/usr/src/gnu/dist/bc/dc/array.c:36:47: extra tokens at end of #line directive
/usr/src/gnu/dist/bc/dc/dc-regdef.h:1:44: extra tokens at end of #line directive
/usr/src/gnu/dist/bc/dc/array.c: In function `dc_array_set':
/usr/src/gnu/dist/bc/dc/array.c:61: error: `NULL' undeclared (first use in this
function)
/usr/src/gnu/dist/bc/dc/array.c:61: error: (Each undeclared identifier is report
ed only once
/usr/src/gnu/dist/bc/dc/array.c:61: error: for each function it appears in.)

*** Failed target:  array.o
*** Failed command: /usr/src/tools/tools-i386/bin/i386--netbsdelf-gcc -O2 -O2 -m
arch=athlon-xp -Werror -O2 -march=athlon-xp -c x.c -o array.o
*** Error code 1

Stop.
nbmake: stopped in /.amd/rivendell/.../src/gnu/usr.bin/dc

*** Failed target:  dependall
*** Failed command: cd /.amd/rivendell/.../src/gnu/usr.bin/dc; /usr/src/tools/to
ols-i386/bin/nbmake realall
*** Error code 1
###

I would like not to have to disregard or disable SHAREDSTRINGS.

				--*greywolf;
--
NetBSD: priapic OS