Menu

#7 Iability to make the files as documented

closed
nobody
None
5
2002-02-19
2002-02-19
Anonymous
No

After doing a source init_env from
the /home/vishy/bluetooth/openbt and issuing the make
command,
I get the following messge :
-----------------START OF MESSAGE---------------
make -C linux/drivers/char/bluetooth
make[1]: Entering directory
`/home/vishy/bluetooth/openbt/linux/drivers/char/blueto
oth'
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
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
`/home/vishy/bluetooth/openbt/linux/drivers/char/blueto
oth'
make: *** [all] Error 2
-----------------END OF MESSAGE---------------

Kindly help. Changing <linux/malloc.h> to
<linux/slab.h> did not help
I use the following version of linux :
Linux version 2.4.8-26mdk
(quintela@bi.mandrakesoft.com) (gcc version 2.96
20000731
(Mandrake Linux 8.1 2.96-0.62mdk))

Discussion

  • Peter Kjellerstedt

    Logged In: YES
    user_id=93108

    This is answered in the FAQ at:
    http://sourceforge.net/docman/display_doc.php?
    docid=3926&group_id=19666#incorrect-kernel-headers

    The problem with slab.h is just a warning, and it can be
    ignored.

     
  • Peter Kjellerstedt

    • status: open --> closed
     

Log in to post a comment.