Subject: toolchain/23237: usr.sbin/config/main.c not buildable on non-netbsd
To: None <gnats-bugs@gnats.netbsd.org>
From: None <dmcmahill@netbsd.org>
List: netbsd-bugs
Date: 10/22/2003 20:50:10
>Number: 23237
>Category: toolchain
>Synopsis: usr.sbin/config/main.c not buildable on non-netbsd
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: toolchain-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Oct 23 00:51:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: Dan McMahill
>Release: NetBSD 20031020
>Organization:
NetBSD
>Environment:
any non-netbsd
System: NetBSD bondage 1.6.1 NetBSD 1.6.1 (BONDAGE) #0: Mon Apr 21 18:28:45 EDT 2003 dan@bondage:/export/disk1/src/src-netbsd-1-6-1/sys/arch/alpha/compile/BONDAGE alpha
Architecture: alpha
Machine: alpha
>Description:
using build.sh to build the cross-toolchain will fail on usr.sbin/config/main.c
on a non-netbsd system because it includes paths.h and then uses the define
for _PATH_UNIX. On non-netbsd systems, paths.h won't be found and you'll get
an empty tools/compat/obj.sparc64/include/paths.h
>How-To-Repeat:
./build.sh -T /cross/tools -m sparc64
on non-netbsd
>Fix:
workaround:
#ifndef _PATH_UNIX
#define _PATH_UNIX "/netbsd"
#endif
in usr.sbin/config/main.c
real fix: ?
>Release-Note:
>Audit-Trail:
>Unformatted: