Re: [PATCH] include/linux/coda.h

2001-05-24 Thread Thomas Dodd
Ryan Cumming wrote: > When compiling the kernel under FreeBSD, __KERNEL__ is defined, but > __linux__ is not. I think this is an error on the part of the header file, > because on non-Linux build environments, which would otherwise compile the > Linux kernel correctly, do not have __linux__ define

Re: [PATCH] include/linux/coda.h

2001-05-22 Thread Alan Cox
> When compiling the kernel under FreeBSD, __KERNEL__ is defined, but > __linux__ is not. I think this is an error on the part of the header file, > because on non-Linux build environments, which would otherwise compile the > Linux kernel correctly, do not have __linux__ defined. Thats a problem

UML cross-platform build problems (was Re: [PATCH] include/linux/coda.h)

2001-05-22 Thread Jan Harkes
On Tue, May 22, 2001 at 09:40:19AM -0700, Ryan Cumming wrote: > On Tue, 22 May 2001, Alan Cox wrote: > > > If __linux__ is not defined by the cross compiler, then the cross compiler > > is broken. A cross compiler has the same environment as the native compiler > > for the target. The only stuff

Re: [PATCH] include/linux/coda.h

2001-05-22 Thread Jan Harkes
On Tue, May 22, 2001 at 04:57:24PM +0100, David Woodhouse wrote: > The kernel compiles quite happily with compilers which aren't targetted > specifically at Linux -- the CODA compatibility cruft being the one > exception. I often just comment out the CODA includes from to > get round the same

Re: [PATCH] include/linux/coda.h

2001-05-22 Thread David Woodhouse
[EMAIL PROTECTED] said: > Why is your cross compiler outputting different symbols to a linux > native compiler ? > If __linux__ is not defined by the cross compiler, then the cross > compiler is broken. A cross compiler has the same environment as the > native compiler for the target. The only

Re: [PATCH] include/linux/coda.h

2001-05-22 Thread Alan Cox
> Sorry, I should've been more specific. I'm trying to compile the Linux kernel > (2.4.5pre3) on a FreeBSD machine, which actually works quite well with this > patch applied. This is the only place in the core that FreeBSD gets hung up Why is your cross compiler outputting different symbols to

Re: [PATCH] include/linux/coda.h

2001-05-22 Thread Me
On Tuesday 22 May 2001 06:18, you wrote: > Are you trying to compile a Linux kernel on a FreeBSD machine, or is > this a bug in the Coda kernel module in the FreeBSD tree? > Sorry, I should've been more specific. I'm trying to compile the Linux kernel (2.4.5pre3) on a FreeBSD machine, which actua

Re: [PATCH] include/linux/coda.h

2001-05-22 Thread Jan Harkes
On Mon, May 21, 2001 at 09:24:20PM -0700, Me wrote: > Coda.h assumes that __KERNEL__ can only be defined if __linux__ is, which is > painfully false. This allows the kernel compile to get farther on my token > FreeBSD box. > > -Ryan Are you trying to compile a Linux kernel on a FreeBSD machin

[PATCH] include/linux/coda.h

2001-05-21 Thread Me
Coda.h assumes that __KERNEL__ can only be defined if __linux__ is, which is painfully false. This allows the kernel compile to get farther on my token FreeBSD box. -Ryan --- linux/include/linux/coda.h Wed Apr 25 16:18:54 2001 +++ linux/include/linux/coda.h Mon May 21 21:19:21 2001 @@ -100,6