NetBSD/tools/compat
jmc 09709f97dd Before sucking in stdlib.h check if this is NetBSD. If so, explicitly make
sure to use _POSIX_C_SOURCE and undef _NETBSD_SOURCE so the myriad of NetBSD
extentions don't get pulled into scope (and likely conflict at some point
with branched code trying to build on -current due to drift). Fixes PR#25533

XXX: The entire process here is just wacky and the entire cross tools process
needed to be reviewed to build clean w. just _POSIX_C_SOURCE or the equiv
set on NetBSD hosts or this will lose again somewhere..
2004-06-14 06:13:15 +00:00
..
sys Overhaul MBR handling (part 1): 2003-10-08 04:25:43 +00:00
ufs use reachover relative paths in compat include files instead of 2003-05-14 00:30:26 +00:00
compat_defs.h Before sucking in stdlib.h check if this is NetBSD. If so, explicitly make 2004-06-14 06:13:15 +00:00
compat_pwd.h Apply patch from OGAWA Takaya to fix FreeBSD hosted builds. 2004-05-18 22:14:35 +00:00
configure regen after HAVE_SYS_POLL_H change 2003-11-12 19:44:33 +00:00
configure.ac use sys/poll.h and HAVE_SYS_POLL_H instead of just HAVE_POLL_H 2003-11-12 19:43:58 +00:00
db.h Overhaul how `build.sh tools' are used: 2003-10-27 00:12:41 +00:00
defs.mk.in Overhaul how `build.sh tools' are used: 2003-10-27 00:12:41 +00:00
fgetln.c Overhaul how `build.sh tools' are used: 2003-10-27 00:12:41 +00:00
flock.c Overhaul how `build.sh tools' are used: 2003-10-27 00:12:41 +00:00
fts.h Overhaul how `build.sh tools' are used: 2003-10-27 00:12:41 +00:00
getmode.c White space nit. 2004-01-13 00:53:06 +00:00
glob.h Overhaul how `build.sh tools' are used: 2003-10-27 00:12:41 +00:00
issetugid.c Overhaul how `build.sh tools' are used: 2003-10-27 00:12:41 +00:00
lchflags.c Overhaul how `build.sh tools' are used: 2003-10-27 00:12:41 +00:00
lchmod.c Overhaul how `build.sh tools' are used: 2003-10-27 00:12:41 +00:00
lchown.c Overhaul how `build.sh tools' are used: 2003-10-27 00:12:41 +00:00
Makefile Make this build on non-NetBSD again (specifically linux). Exclude __ndbm13.c 2004-05-03 03:20:20 +00:00
md2.h Overhaul how `build.sh tools' are used: 2003-10-27 00:12:41 +00:00
md4.h Overhaul how `build.sh tools' are used: 2003-10-27 00:12:41 +00:00
md5.h Overhaul how `build.sh tools' are used: 2003-10-27 00:12:41 +00:00
mpool.h Make many host tools compile on non-NetBSD hosts. Not complete, but 2002-01-21 20:04:36 +00:00
namespace.h Overhaul how `build.sh tools' are used: 2003-10-27 00:12:41 +00:00
nbtool_config.h.in use sys/poll.h and HAVE_SYS_POLL_H instead of just HAVE_POLL_H 2003-11-12 19:43:58 +00:00
nl_types.h Make almost all tools compile and run properly on non-NetBSD hosts. (In 2002-01-29 10:20:28 +00:00
pread.c Overhaul how `build.sh tools' are used: 2003-10-27 00:12:41 +00:00
putc_unlocked.c Overhaul how `build.sh tools' are used: 2003-10-27 00:12:41 +00:00
pwrite.c Overhaul how `build.sh tools' are used: 2003-10-27 00:12:41 +00:00
README List that all hosts require a posix sh and override with HOST_SH if needed. 2003-12-29 07:09:44 +00:00
rmd160.h Overhaul how `build.sh tools' are used: 2003-10-27 00:12:41 +00:00
setenv.c Overhaul how `build.sh tools' are used: 2003-10-27 00:12:41 +00:00
setgroupent.c Overhaul how `build.sh tools' are used: 2003-10-27 00:12:41 +00:00
setpassent.c Overhaul how `build.sh tools' are used: 2003-10-27 00:12:41 +00:00
setprogname.c Overhaul how `build.sh tools' are used: 2003-10-27 00:12:41 +00:00
sha1.h Overhaul how `build.sh tools' are used: 2003-10-27 00:12:41 +00:00
snprintf.c Overhaul how `build.sh tools' are used: 2003-10-27 00:12:41 +00:00
tzfile.h Roll in fixes to permit cross-compiling from non-NetBSD hosts. This 2002-01-31 22:43:33 +00:00
vis.h Overhaul how `build.sh tools' are used: 2003-10-27 00:12:41 +00:00

$NetBSD: README,v 1.10 2003/12/29 07:09:44 jmc Exp $

Special notes for cross-hosting a NetBSD build on certain platforms.  
Only those platforms which have been tested to complete a "build.sh" run
are listed.

All hosts must have a POSIX compatible sh. /bin/sh is assumed unless 
otherwise set. This can be overridden by setting HOST_SH in the environment.

In addition all hosts must provide the following local tools:

gzip

=====

HP-UX:

* zlib must be available.
  This will be fixed in the future to include zlib in libnbcompat.

=====

LINUX:

* Tested on RedHat Linux 7.1 (i386).
  Tested on RedHat Linux 7.3 (i686) on 16 Sep 2002.  Requires "LANG=C"
  in the environment.

* Tested on Redhat Linux 8.0 (i686) in Fall 2003. Requires no special settings.

* The gcc (and libstdc++, if needed) package must be installed, along
  with the typical system development packages (glibc-devel, etc.).

* The ncurses-devel package must be installed (for nbinfo).

* The zlib and zlib-devel packages must be installed.  This will be
  fixed in the future to include zlib in libnbcompat.

=====

MACOS
  Probably requires a case sensitive filesystem such as UFS

* Tested on 10.2.8 with Dec 2002 Developer Tools
    - may require a fix to /usr/bin/join, netbsd's join should work fine
* Tested on 10.3 with xcode 1.0
    - compiles fine out of the box

=====

NETBSD (earlier releases):

* Tested on NetBSD 1.5.2 (machine-independently).

* Should need no special setup.

=====

SOLARIS:

* Tested on Solaris/x86 8 (5.8) with gcc 2.95.2 and Solaris/sparc 8 (5.8)
  with gcc 3.2 (not yet tested with SUNWspro).

* $HOST_CC needs to be set properly (for gcc, it should be set to "gcc",
  otherwise the improper /usr/ucb/cc may be invoked by accident).

* The SUNWzlib package (or a built version of zlib visible to $HOST_CC,
  such as SMCzlib from sunfreeware.com) must be installed.  This will be
  fixed in the future to include zlib in libnbcompat.

* Needs the following paths, in this order, in $PATH:

      /usr/xpg4/bin
      /usr/ccs/bin
      <path to host C and C++ compilers>
      /usr/bin

  /usr/ucb may optionally be placed before /usr/bin, per your preference,
  but /usr/ucb *MUST NOT* be before /usr/ccs/bin or before the path to
  the host C and C++ compilers.