Subject: toolchain/23237: usr.sbin/config/main.c not buildable on non-netbsd
To: None <>
From: None <>
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
>Originator:     Dan McMahill
>Release:        NetBSD 20031020

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

using 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


./ -T /cross/tools -m sparc64
on non-netbsd


#ifndef _PATH_UNIX
#define _PATH_UNIX "/netbsd"

in usr.sbin/config/main.c

real fix: ?