NetBSD Problem Report #18292
Received: (qmail 6327 invoked by uid 605); 15 Sep 2002 00:49:02 -0000
Message-Id: <20020915004900.7776B7DA6@yeah-baby.shagadelic.org>
Date: Sat, 14 Sep 2002 17:49:00 -0700 (PDT)
From: thorpej@shagadelic.org
Sender: gnats-bugs-owner@netbsd.org
Reply-To: thorpej@shagadelic.org
To: gnats-bugs@gnats.netbsd.org
Subject: file/mkmagic not build as a host tool properly
X-Send-Pr-Version: 3.95
>Number: 18292
>Category: bin
>Synopsis: file/mkmagic not build as a host tool properly
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pooka
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Sep 15 00:50:00 +0000 2002
>Closed-Date: Wed Mar 26 00:42:57 +0000 2003
>Last-Modified: Wed Mar 26 00:42:57 +0000 2003
>Originator: Jason R Thorpe
>Release: NetBSD 1.6D
>Organization:
Wasabi Systems, Inc.
>Environment:
System: NetBSD yeah-baby.shagadelic.org 1.6D NetBSD 1.6D (YEAH-BABY-XP) #10: Wed Jul 10 11:36:52 PDT 2002 thorpej@yeah-baby.shagadelic.org:/u1/netbsd/src/sys/arch/i386/compile/YEAH-BABY-XP i386
Architecture: i386
Machine: i386
>Description:
mkmagic uses apprentice.c and print.c from the file sources.
However, it includes a "config.h" which is the target's config.h
in the file sources. It needs to include the host's config.h
generated for host tools (and that config.h also needs to define
macros that mksyntax needs).
To do this properly probably requires a separate directory in
which to build these the host tool.
>How-To-Repeat:
Code inspection.
>Fix:
Not provided.
>Release-Note:
>Audit-Trail:
From: Manuel Bouyer <bouyer@antioche.eu.org>
To: thorpej@shagadelic.org
Cc: gnats-bugs@gnats.netbsd.org, netbsd-bugs@netbsd.org
Subject: Re: bin/18292: file/mkmagic not build as a host tool properly
Date: Sun, 15 Sep 2002 15:33:27 +0200
On Sat, Sep 14, 2002 at 05:49:00PM -0700, thorpej@shagadelic.org wrote:
> >Description:
> mkmagic uses apprentice.c and print.c from the file sources.
> However, it includes a "config.h" which is the target's config.h
> in the file sources. It needs to include the host's config.h
> generated for host tools (and that config.h also needs to define
> macros that mksyntax needs).
Lots of sources uses a local config.h. To solve this I proposed
to rename the tool config.h to config-tool.h, to avoid confusion.
Maybe it's better ?
http://mail-index.netbsd.org/tech-toolchain/2002/03/27/0007.html
--
Manuel Bouyer <bouyer@antioche.eu.org>
--
From: fredb@immanent.net (Frederick Bruckman)
To: thorpej@shagadelic.org
Cc: gnats-bugs@gnats.netbsd.org, netbsd-bugs@netbsd.org
Subject: Re: bin/18292: file/mkmagic not build as a host tool properly
Date: Mon, 16 Sep 2002 21:38:48 -0500 (CDT)
In article <20020915004900.7776B7DA6@yeah-baby.shagadelic.org>,
thorpej@shagadelic.org writes:
>
>>Synopsis: file/mkmagic not build as a host tool properly
I developed a patch to give "file" => "nbfile" the full host tool
treatment. Please see PR toolchain/17584. A possible improvement
would be to build "nbfile" from only "apprentice.o" and "file.o",
just as "mkmagic" is built now.
--
Frederick
Responsible-Changed-From-To: bin-bug-people->pooka
Responsible-Changed-By: pooka
Responsible-Changed-When: Sun Feb 23 23:54:15 EET 2003
Responsible-Changed-Why:
ok sw-bug, time to get nasty with me
State-Changed-From-To: open->closed
State-Changed-By: pooka
State-Changed-When: Wed Mar 26 02:36:18 EET 2003
State-Changed-Why:
it is now (well, I'm still open to discussion on "properly" ...)
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.