Subject: Re: Compiling NetBSD on other OS's.
To: John Clark <j1clark@ucsd.edu>
From: Jason R Thorpe <thorpej@wasabisystems.com>
List: netbsd-help
Date: 04/13/2002 16:26:17
On Sat, Apr 13, 2002 at 04:15:43PM -0700, John Clark wrote:

 > /usr/cvs/NetBSD/src/tools/compat/../../lib/libc/db/recno/rec_utils.c
 > /usr/cvs/NetBSD/src/tools/compat/../../lib/libc/hash/rmd160.c:32: 
 > sys/endian.h: No such file or directory
 > cc -O  -I. -I./include -I/usr/cvs/NetBSD/src/tools/compat 
 > -DHAVE_CONFIG_H  -D_FILE_OFFSET_BITS=64 -D__DBINTERFACE_PRIVATE -c -o 
 > basename.lo 
 > /usr/cvs/NetBSD/src/tools/compat/../../lib/libc/gen/basename.c
 > In file included from config.h:101,
 >                   from /usr/cvs/NetBSD/src/tools/compat/namespace.h:9,
 >                   from 
 > /usr/cvs/NetBSD/src/tools/compat/../../lib/libc/gen/basename.c:44:
 > /usr/cvs/NetBSD/src/tools/compat/compat_defs.h:189: conflicting types 
 > for `user_from_uid'
 > /usr/include/stdlib.h:178: previous declaration of `user_from_uid'
 > /usr/cvs/NetBSD/src/tools/compat/compat_defs.h:193: conflicting types 
 > for `group_from_gid'
 > /usr/include/stdlib.h:160: previous declaration of `group_from_gid'
 > *** Error code 1

Ok, so there are two problems... the sys/endian.h thing, as well as the
conflicting prototypes thing.

We should probably define _POSIX_SOURCE in our compat header to get
all that stuff out of the user namespace on foreign systems.

-- 
        -- Jason R. Thorpe <thorpej@wasabisystems.com>