Subject: Getting repeatedly the same compile error with groff.
To: NetBSD-current <>
From: Marcin Jessa <>
List: current-users
Date: 11/07/2005 15:06:59
Hi guys.

I really do not know why but I allways get this error running 
./ -O /usr/obj -T /usr/tools distribution
on freshly installed boxes. It's been like that for many months.
This one was installed from CURRENT (3.9.7) iso and the sources are
updated to 3.9.11.
And yes, I created tools running ./ -O /usr/obj -T /usr/tools

#    create  eqn/eqn.d
CC=/usr/tools/bin/i386--netbsdelf-gcc /usr/tools/bin/nbmkdep -f eqn.d
--   -DHAVE_CONFIG_H -I/usr/src/gnu/dist/groff/src/include
-I/usr/src/gnu/usr.bin/groff/src/include  -nostdinc++
-isystem-cxx  /usr/obj/destdir.i386/usr/include/g++    -nostdinc
-isystem /usr/obj/destdir.i386/usr/include
eqn.cpp /usr/src/gnu/dist/groff/src/preproc/eqn/eqn.y:27:17: box.h: No
such file or directory nbmkdep: compile failed.

A fix to this error is to manually run:
cp /usr/src/gnu/dist/groff/src/preproc/eqn/box.h /usr/src/gnu/dist/groff/src/include/

After that you get
#    create  eqn/lex.d
CC=/usr/tools/bin/i386--netbsdelf-gcc /usr/tools/bin/nbmkdep -f lex.d
--   -DHAVE_CONFIG_H -I/usr/src/g nu/dist/groff/src/include
-I/usr/src/gnu/usr.bin/groff/src/include  -nostdinc++
-isystem-cxx  /usr/obj/ destdir.i386/usr/include/g++    -nostdinc
-isystem /usr/obj/destdir.i386/usr/include   /usr/src/gnu/dis
t/groff/src/preproc/eqn/lex.cpp /usr/src/gnu/dist/groff/src/preproc/eqn/lex.cpp:25:21:
eqn_tab.h: No such file or directory nbmkdep: compile failed.

*** Failed target:  lex.d
*** Failed command:
CC=/usr/tools/bin/i386--netbsdelf-gcc /usr/tools/bin/nbmkdep -f lex.d
-- -DHAVE_CON FIG_H -I/usr/src/gnu/dist/groff/src/include
-I/usr/src/gnu/usr.bin/groff/src/include -nostdinc++ -isyst
em-cxx /usr/obj/destdir.i386/usr/include/g++ -nostdinc
-isystem /usr/obj/destdir.i386/usr/include /usr/
src/gnu/dist/groff/src/preproc/eqn/lex.cpp *** Error code 1

nbmake: stopped in /usr/src/gnu/usr.bin/groff/src/preproc/eqn

A fix to this one is to manually run:
cp /usr/obj/tools/groff/build/src/preproc/eqn/eqn_tab.h  /usr/src/gnu/dist/groff/src/preproc/eqn/

Then I had to copy tons of other header files related to groff and
required to run

Or maybe I'm doing something wrong following ?