Re: Problem compiling 2.3.99-pre1

From: John Cavan (john.cavan@sympatico.ca)
Date: Wed Mar 15 2000 - 17:51:15 EST


drivers/char/drm/drmP.h has at line 53:

#include <asm/spinlock.h>

But it should actually be:

#include <linux/spinlock.h>

I changed this in my tree, recompiled with the Voodoo3 drivers and I am
happily working with the pre1 kernel, XFree86 4.0 with mtrrs enabled.
There may be more to this, but so far so good for about 10 or 12 hours.

Sorry it's not a patch, but heck it's only a single line... :o)

John

"Hausheer, Geoffrey" wrote:
>
> I went to kernel.org, and retrieved 2.3.99-pre1.
> I configured it, and went to compile and got the messages below.
> When I disabled drm, everything compiled smoothly. I checked newsflash and
> the archives and didn't see anything like this.
>
> I am running debian potato w/ libc 2.1.3 and gcc 2.95.2
>
> Not that I actually need drm, but I was surprised to see it break the
> compile.
> Is this a known problem?
>
> Thanks,
> .Geoff
>
> make[4]: Entering directory `/usr/src/linux-2.3.99-pre1/drivers/char/drm'
> gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
> -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -DCPU=686
> -march=i686 -fno-strct-aliasing -c -o init.o init.c
> In file included from drmP.h:53,
> from init.c:32:
> /usr/src/linux/include/asm/spinlock.h:36: warning:
> `SPIN_LOCK_UNLOCKED' redefind
> /usr/src/linux/include/linux/spinlock.h:51: warning: this
> is the location of th previous definition
> /usr/src/linux/include/asm/spinlock.h:38: warning:
> `spin_lock_init' redefined
> /usr/src/linux/include/linux/spinlock.h:54: warning: this
> is the location of th previous definition
> /usr/src/linux/include/asm/spinlock.h:46: warning:
> `spin_unlock_wait' redefined/usr/src/linux/include/linux/spinlock.h:58:
> warning: this is the location of th previous definition
> /usr/src/linux/include/asm/spinlock.h:47: warning:
> `spin_is_locked' redefined
> /usr/src/linux/include/linux/spinlock.h:56: warning: this
> is the location of th previous definition
> /usr/src/linux/include/asm/spinlock.h:101: warning:
> `spin_trylock' redefined
> /usr/src/linux/include/linux/spinlock.h:57: warning: this
> is the location of th previous definition
> /usr/src/linux/include/asm/spinlock.h:128: warning:
> `RW_LOCK_UNLOCKED' redefine/usr/src/linux/include/linux/spinlock.h:114:
> warning: this is the location of te previous definition
> /usr/src/linux/include/asm/spinlock.h:159: warning:
> `read_unlock' redefined
> /usr/src/linux/include/linux/spinlock.h:118: warning: this
> is the location of te previous definition
> /usr/src/linux/include/asm/spinlock.h:160: warning:
> `write_unlock' redefined
> /usr/src/linux/include/linux/spinlock.h:120: warning: this
> is the location of te previous definition
> In file included from drmP.h:53,
> from init.c:32:
> /usr/src/linux/include/asm/spinlock.h:26:
> conflicting types for `spinlock_t'
>
> /usr/src/linux/include/linux/spinlock.h:50: previous declaration of
> `spinlock_t/usr/src/linux/include/asm/spinlock.h:73: parse error before
> `void'
> /usr/src/linux/include/asm/spinlock.h:88:
> parse error before `do'
> /usr/src/linux/include/asm/spinlock.h:118:
> conflicting types for `rwlock_t'
>
> /usr/src/linux/include/linux/spinlock.h:113: previous declaration of
> `rwlock_t'/usr/src/linux/include/asm/spinlock.h:141: parse error before
> `void'
> /usr/src/linux/include/asm/spinlock.h:150:
> parse error before `void'
> make[4]: *** [init.o] Error 1
> make[4]: Leaving directory
> `/usr/src/linux-2.3.99-pre1/drivers/char/drm'
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.rutgers.edu
> Please read the FAQ at http://www.tux.org/lkml/

-- 
*********************************

Tell me and I may forget, Show me and I may remember, Involve me and I will understand.

*********************************

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Mar 23 2000 - 21:00:19 EST