Subject: Re: cross-compiling on solaris fails...
To: Christos Zoulas <christos@astron.com>
From: Garrett D'Amore <garrett_damore@tadpole.com>
List: current-users
Date: 08/28/2006 08:57:02
Christos Zoulas wrote:
> 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
>
I don't think there is <err.h>. Certainly not on b44 of Solaris
Express. (Not in the sources anyway.)
And, not on my Solaris 10 system, either.
--
Garrett D'Amore, Principal Software Engineer
Tadpole Computer / Computing Technologies Division,
General Dynamics C4 Systems
http://www.tadpolecomputer.com/
Phone: 951 325-2134 Fax: 951 325-2191