Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Sep 1995 00:24:50 -0700 (PDT)
From:      Julian Elischer <julian@ref.tfs.com>
To:        julian@freefall.freebsd.org (Julian Elischer)
Cc:        hackers@freefall.freebsd.org
Subject:   Re: oh oh!
Message-ID:  <199509140724.AAA02527@ref.tfs.com>
In-Reply-To: <199509140614.XAA24214@freefall.freebsd.org> from "Julian Elischer" at Sep 13, 95 11:14:13 pm

next in thread | previous in thread | raw e-mail | index | archive | help
on investigation:
sys/types.h:72 is:

typedef _BSD_OFF_T_     off_t;          /* file offset */
where BSD_OFF_T is defined in i386/include/ansi.h

but the files in /sys/libkern are looking in machine/ansi.h

as the /sys doesn't COME with a machine directory in it,
it is looking I presume in /usr/include/machine
which has an old version without BSD_OFF_T

this is dangerous!
it means we are picking up old include files if we checkout a new
sys tree!
is there a suggested way of fixing this?
I just quickly made a symlink machine -> i386/include
and it all magically fixed, but I bet
the depend.mk has the wrong one in it now..
(going to check)

julian
> 
> making the kernel..
> from a freshly checked out sys tree..
> cc -O -pipe -I/a/julian/src/sys/libkern -I/a/julian/src/sys/libkern/.. -DKERNEL -c adddi3.c -o adddi3.o
> In file included from quad.h:57,
>                  from adddi3.c:40:
> /a/julian/src/sys/libkern/../sys/types.h:72: parse error before `off_t'
> /a/julian/src/sys/libkern/../sys/types.h:72: warning: data definition has no type or storage class
> /a/julian/src/sys/libkern/../sys/types.h:73: parse error before `pid_t'
> /a/julian/src/sys/libkern/../sys/types.h:73: warning: data definition has no type or storage class
> *** Error code 1
> 
> eh?
> 
> anyone changed something recently that would do this?
> 
> julian
> 




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199509140724.AAA02527>