Subject: bin/11563: lint(7) man page is not cross compile-safe.
To: None <gnats-bugs@gnats.netbsd.org>
From: None <minoura@netbsd.org>
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
>Closed-Date:
>Last-Modified:
>Originator:     Minoura Makoto
>Release:        2000.11.23
>Organization:
The NetBSD Project
>Environment:
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

>Description:
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
usr.bin/xlint/lint1/Makefile.
This breaks cross compilation.

>How-To-Repeat:
Do cross compile in usr.bin/xlint/lint1.

>Fix:
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.
>Release-Note:
>Audit-Trail:
>Unformatted: