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

RE: [bluetooth-dev] Problems compiling openbt-20011021



> -----Original Message-----
> From: owner-bluetooth-dev On Behalf Of Filipa Duarte
> Sent: Thursday, October 28, 2004 14:56
> To: Bluetooth-dev
> Subject: [bluetooth-dev] Problems compiling openbt-20011021
> 
> Hi everyone
> 
> I am trying to install openbt-20011021 but I am having
> a lot of problems. I started running:
> #source init_env
> #make
> 
> And the first error was:
> 
> In file included from <command line>:7:
> /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 rather headers from
an appropriate kernel-source package.
> /usr/include/linux/modversions.h:3:2: #error Change
-I/usr/src/linux/include (or similar) to
> /usr/include/linux/modversions.h:4:2: #error -I/lib/modules/$(uname
-r)/build/include
> /usr/include/linux/modversions.h:5:2: #error to build against the
currently-running kernel.
> 
> I search your mailing list I found the we should run:
> #make INCLUDEDIR=/usr/src/linux-2.4/include/
> 
> Then I got the following error:
> In file included from bluetooth.c:49:
> /usr/src/linux-2.4/include/linux/malloc.h:4:2: #error linux/malloc.h
is deprecated, use linux/slab.h instead.
> 
> I solved this one by going to every *.c file and
> change  #include <malloc.h> by #include <slab.h>.
> 
> After this I got the following warning:
> /usr/src/linux-2.4/include/asm/system.h:189: warning: dereferencing
type-punned pointer will break strict-aliasing rules
> 
> Once again searching the web I discover that on the
> gcc command I should use the option -fstrict-aliasing
> instead of -Wall.
> 
> And now I am stuck! I cannot find a solution for the
> following warning:
> warning: concatenation of string literals with __FUNCTION__ is
deprecated
> 
> Can anyone help me?

That one is just a warning, and can safely be ignored.

> Many thanks in advance.
> 
> Filipa Duarte

I would suggest you use the latest code from CVS rather
than the extremely old code from the 2001-10-21 release.
There has been _a lot_ of changes since then...

Also note that all development of OpenBT has been 
discontinued. It is suggested that those who want to
use Bluetooth with Linux use BlueZ instead as it is
part of the official kernel nowadays.

Best regards,
//Peter

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