Subject: bin/11563: lint(7) man page is not cross compile-safe.
To: None <>
From: None <>
List: netbsd-bugs
Date: 11/24/2000 20:38:13
>Number:         11563
>Category:       bin
>Synopsis:       lint(7) man page is not cross compile-safe.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Nov 24 20:38:00 PST 2000
>Originator:     Minoura Makoto
>Release:        2000.11.23
The NetBSD Project
Build host:
  System: NetBSD daisy 1.5K NetBSD 1.5K (DAISY) #176: Fri Nov 24 07:41:01 JST 2000 root@daisy:/usr/obj/sys/arch/i386/compile/DAISY i386
Target host:
  System: NetBSD donald 1.5K NetBSD 1.5K (TOKOCHAN) #0: Tue Nov 21 12:12:05 JST 2000 minoura@daisy:/tmp/TOKOCHAN x68k

When lint(7) is built, ${.OBJDIR}/${PROG}, i.e. lint1 which is just built
is executed in usr.bin/xlint/lint1/makeman shellscript called from
This breaks cross compilation.

Do cross compile in usr.bin/xlint/lint1.

Unknown.  Possible strategies include:
 - Use /usr/libexec/lint1 on the build host.  This assumes that the build
  host and the target host has the same OS, same version.
 - Build lint1 with HOST_CC and other tools.
 - sed or awk over usr.bin/xlint/lint1/err.c
 - Create a separate message list which is used to build err.c and lint.7.