Subject: bin/11447: cannot compile GNU grep.
To: None <gnats-bugs@gnats.netbsd.org>
From: None <maekawa@math.sci.kobe-u.ac.jp>
List: netbsd-bugs
Date: 11/08/2000 07:01:12
>Number:         11447
>Category:       bin
>Synopsis:       cannot compile GNU grep.
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Nov 08 07:01:00 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     MAEKAWA Masahide
>Release:        NetBSD 1.5H
>Organization:
>Environment:
NetBSD sweeper.hell 1.5H NetBSD 1.5H (SWEEPER) #1: Wed Nov  1 19:04:30 JST 2000
>Description:
Recent commit to src/gnu/usr.bin/grep breaks to compile itself.

mkdep -a  -DHAVE_CONFIG_H -I/usr/src/gnu/usr.bin/grep/../../dist/grep/src -I/usr
/src/gnu/usr.bin/grep -DENABLE_NLS -DHAVE_LIBINTL_H=1  -DGNULOCALEDIR=\"/usr/sha
re/locale\"  -DLOCALE_ALIAS_PATH=\"/usr/share/locale:.\"  -DLOCALEDIR=\"/usr/sha
re/locale\" -nostdinc -idirafter /home/build/world/usr/include /usr/src/gnu/usr.
bin/grep/../../dist/grep/src/grep.c /usr/src/gnu/usr.bin/grep/../../dist/grep/sr
c/dfa.c /usr/src/gnu/usr.bin/grep/../../dist/grep/src/kwset.c /usr/src/gnu/usr.b
in/grep/../../dist/grep/src/obstack.c /usr/src/gnu/usr.bin/grep/../../dist/grep/
src/savedir.c /usr/src/gnu/usr.bin/grep/../../dist/grep/src/getopt.c /usr/src/gn
u/usr.bin/grep/../../dist/grep/src/getopt1.c /usr/src/gnu/usr.bin/grep/../../dis
t/grep/src/search.c /usr/src/gnu/usr.bin/grep/../../dist/grep/src/stpcpy.c /usr/
src/gnu/usr.bin/grep/../../dist/grep/src/regex.c /usr/src/gnu/usr.bin/grep/../..
/dist/grep/src/grepmat.c
In file included from /usr/src/gnu/usr.bin/grep/../../dist/grep/src/system.h:185
,
                 from /usr/src/gnu/usr.bin/grep/../../dist/grep/src/grep.c:34:
/usr/src/gnu/usr.bin/grep/libintl.h:3: libgettext.h: No such file or directory

blah, blah, blah
>How-To-Repeat:
1. Clean sources. (rm -rf /usr/src)
2. Re-checkout them
3. Just type 'make DESTDIR=/some/where build'

/some/where is not '/'. Your machine has already libintl.h under /usr/include.
>Fix:
Add -I${DESTDIR}/usr/include to CPPFLAGS and remove gnusrc/gnu/usr.bin/grep/libintl.h.
The current NetBSD has libintl.h rewritten by Citrus Project.
>Release-Note:
>Audit-Trail:
>Unformatted: