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

RE: [bluetooth-dev] Problem during Compilation

This has been answered a number of times on this list, and I finally decided
that it was time to add it to the FAQ. So the answer is now in the FAQ at:
http://sourceforge.net/docman/display_doc.php?docid=3926 <http://sourceforge.net/docman/display_doc.php?docid=3926&group_id=19666#incorrect-kernel-headers> &group_id=19666#incorrect-kernel-headers

-----Original Message-----
From: Victor Chan [mailto:eecow@xxxxxxx.com]
Sent: 10 January 2002 11:10
To: bluetooth-dev@xxxxxxx.com
Subject: [bluetooth-dev] Problem during Compilation

I am a newbie and I just installed Mandrake (the latest version)
Here is a copy of my action in the openbt directory
[eecow@eecow openbt]$ source init_env
[eecow@eecow openbt]$ make
make -C linux/drivers/char/bluetooth
make[1]: Entering directory 
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
/usr/include/linux/modversions.h:2:2: #error but headers from an appropriate 
In file included from bluetooth.c:49:
/usr/include/linux/malloc.h:3:2: warning: #warning The Use of linux/malloc.h 
is deprecated,
use linux/slab.h
make[1]: *** [bluetooth.o] Error 1
make[1]: Leaving directory 
make: *** [all] Error 2
[eecow@eecow openbt]$
Can somebody help me to compile this successfully for the first time?

To unsubscribe from this list: send the line "unsubscribe bluetooth-dev" in
the body of a message to majordomo@xxxxxxx.com