[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bluetooth-dev] can't compile
/usr/include/linux contains the system headers...and that's not what you're
supposed to use. Instead you've got to use the headers in the kernel source.
So for instance, if you're using kernel 2.4.2, this is what you've got to
and yes...the kernel does work on 2.4.x. I'm using 2.4.6...managed to
compile it successfully...but it seems to be incredibly unstable. But don't
worry...don't think it's got anything to do with 2.4.x...think it's because
of the stack itself. (Openbt gurus....please correct me if I'm wrong!! :) )
----- Original Message -----
From: "daniel" <firstname.lastname@example.org>
Sent: Friday, July 27, 2001 3:28 AM
Subject: [bluetooth-dev] can't compile
> I'm trying to compile your stack on redhat 2.4.2, it allways give me the
> root@localhost openbt]# make
> make -C linux/drivers/char/bluetooth
> make: Entering directory `/root/openbt/linux/drivers/char/bluetooth'
> gcc -D__KERNEL__ -DMODULE -I../../../include -I/usr/include -Wall
> -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strength-reduce
> -DMODVERSIONS -include /usr/include/linux/modversions.h -MD -c -o
> bluetooth.o bluetooth.c
> In file included from bluetooth.c:1:
> /usr/include/linux/modversions.h:1:2: #error Modules should never use
> kernel-headers system headers,
> /usr/include/linux/modversions.h:2:2: #error but headers from an
> make: *** [bluetooth.o] Error 1
> make: Leaving directory `/root/openbt/linux/drivers/char/bluetooth'
> make: *** [all] Error 2
> any sugestions ? will it work on 2.4 kernel ?
> Do You Yahoo!?
> Get your free @xxxxxxx.com">http://mail.yahoo.com
> To unsubscribe from this list: send the line "unsubscribe bluetooth-dev"
> the body of a message to email@example.com
Do You Yahoo!?
Get your free @xxxxxxx.com">http://mail.yahoo.com
To unsubscribe from this list: send the line "unsubscribe bluetooth-dev" in
the body of a message to firstname.lastname@example.org