Subject: Re: cross-compiling on solaris fails...
To: None <current-users@netbsd.org>
From: Christos Zoulas <christos@astron.com>
List: current-users
Date: 08/28/2006 15:51:44
In article <20060828151545.GJ16367@sb1001.name>,
Kurt Schreiner  <ks@ub.uni-mainz.de> wrote:
>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)

But this means that there is an <err.h> header, because efun.c includes
it and gcc does not complain about not finding the header. Where does
it find it, and doesn't that header declare err(3)?

christos