Subject: cross-compiling on solaris fails...
To: None <current-users@netbsd.org>
From: Kurt Schreiner <ks@ub.uni-mainz.de>
List: current-users
Date: 08/28/2006 17:15:45
Hi,

I'm trying to cross-compile NetBSD on a Solaris machine (running Solaris
Express build b44, ako Sunos 5.11 - but that should'n matter ;-)

Compiling fails early while building compat:

#   compile  compat/efun.lo
/opt/csw/gcc4/bin/gcc -O  -I. -I./include -I/u/NetBSD/src/tools/compat -DHAVE_NBTOOL_CONFIG_H=1  -D_FILE_OFFSET_BITS=64 -D__DBINTERFACE_PRIVATE -c -o efun.lo.o    /u/NetBSD/src/tools/compat/../../lib/libutil/efun.c
/u/NetBSD/src/tools/compat/../../lib/libutil/efun.c:52: error: 'err' undeclared here (not in a function)

*** Failed target:  efun.lo
*** Failed command: /opt/csw/gcc4/bin/gcc -O -I. -I./include -I/u/NetBSD/src/tools/compat -DHAVE_NBTOOL_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -D__DBINTERFACE_PRIVATE -c -o efun.lo.o /u/NetBSD/src/tools/compat/../../lib/libutil/efun.c
*** Error code 1

Stop.
nbmake: stopped in /u/NetBSD/src/tools/compat

*** Failed target:  dependall


'err' is defined in (NetBSD) src/include/err.h - but that's not available
on Solaris...


So how to proceed?

Kurt