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

RE: [bluetooth-dev] Compile openbt-20010507 on Dev-board



> -----Original Message-----
> From: panyan [mailto:pany73@xxxxxxx.com]
> Sent: 07 June 2001 02:00
> To: bluetooth-dev@xxxxxxx.com
> Subject: [bluetooth-dev] Compile openbt-20010507 on Dev-board
> 
> Hello:
> 
> 
> I have compiled openbt-20010507 on my PC using Redhat 6.2 
> successfully. 
> Also I have compiled bluetooth_20010108 on elinux successfully.
> When i want to compile it on elinux, i had some problems.
> 
> I had done as follow:
> *copy files from openbt/linux/drivers/char/bluetooth to 
> axis/elinux/drivers/char/bluetooth
> *copy files from openbt/linux/include/bluetooth to 
> axis/elinux/include/bluetooth
> *make menuconfig  (adding bluetooth in kernel)
> *make clean
> *make dep
> *make
> then i got errors:
> make[3]: Entering directory `/usr/axis/elinux/drivers/char/bluetooth'
> make all_targets
> make[4]: Entering directory `/usr/axis/elinux/drivers/char/bluetooth'
> /usr/local/cris/lib/gcc-lib/cris/2.7.2/gcc -D__KERNEL__ 
> -I/usr/axis/elinux/de -O2 -fomit-frame-pointer 
> -fno-strength-reduce -DNO_MM -pipe -DMAGIC_ROM_-c -o 
> bluetooth.o bluetooth.c
> bluetooth.c:54: parse error
> bluetooth.c:65: linux/init.h: No such file or directory
> bluetooth.c:66: parse error
> bluetooth.c:71: parse error
> bluetooth.c: In function `bt_set_leds':
> bluetooth.c:2045: `LED_GREEN' undeclared (first use this function)
> bluetooth.c:2045: (Each undeclared identifier is reported only once
> bluetooth.c:2045: for each function it appears in.)
> bluetooth.c:2048: `LED_OFF' undeclared (first use this function)
> bluetooth.c: At top level:
> bluetooth.c:2065: parse error before `bt_init'
> bluetooth.c:2800: parse error before `bt_exit'
> bluetooth.c:2846: warning: parameter names (without types) in 
> function declon
> bluetooth.c:2846: warning: data definition has no type or 
> storage class
> bluetooth.c:2847: warning: parameter names (without types) in 
> function declon
> bluetooth.c:2847: warning: data definition has no type or 
> storage class
> make[4]: *** [bluetooth.o] Error 1

This may be due to the elinux source we currently have published is
not the latest we use internally. So the Bluetooth source and the elinux
source are not synchronised.

> and later i added
>  'source drivers/char/bluetooth/Config.in' to
>  char/Config.in as gordon has told in a previous mail.
>  and also in the Makefile of Char directory, I have
>  added
>  ifeq($(CONFIG_BLUETOOTH),y)
>  SUB_DIRS +=bluetooth
>  L_OBJS +=bluetooth/bt.o
>  endif
> 
> but also gots the same error message.

Was this for the elinux or the PC?
According to your log above it seems to at least try to build already.

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