[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bluetooth-dev] compilation difficulties with RH 7.1



Hi,

You're using the system headers in /usr/include/linux. You should be using
the headers in the kernel source instead. So for instance, if you're using
kernel 2.4.2, this is what you've got to do:

make INCLUDEDIR=/usr/src/linux-2.4.2/include

br,
supriyo

----- Original Message -----
From: "Yon Chung" <yonjunchung@xxxxxxx.com>
To: <bluetooth-dev@xxxxxxx.com>
Sent: Monday, August 06, 2001 10:01 AM
Subject: [bluetooth-dev] compilation difficulties with RH 7.1


> Hi,
>
> I'm trying to compile openbt-0_0_5.tar.gz with
> HCI_EMULATION on.  When I try the command
>
> make -C linux/drivers/char/bluetooth
>
> I get the following error
>
> make: Entering directory
> `/home/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 appropriate kernel-source
> make: *** [bluetooth.o] Error 1
> make: Leaving directory
> `/home/openbt/linux/drivers/char/bluetooth'
>
>
> essentially, the repetition of the modversions.h file
> in RH7.1
> #error Modules should never use kernel-headers system
> headers,
> #error but headers from an appropriate kernel-source
>
> How can I get around this problem?
>
> Thanks,
>
> Yon Chung
>
> __________________________________________________
> Do You Yahoo!?
> Make international calls for as low as $.04/minute with Yahoo! Messenger
> http://phonecard.yahoo.com/
> -
> To unsubscribe from this list: send the line "unsubscribe bluetooth-dev"
in
> the body of a message to majordomo@xxxxxxx.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 majordomo@xxxxxxx.com