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

Re: [bluetooth-dev] Compiling on Madrake 7.0



Lyle.Zumbach@xxxxxxx.com wrote:
> 
> I am having problems getting the stack to compile on Mandrake 7.0.
> Kernel 2.2.14-15mdk and gcc version 2.95.2.
> 
> Here is a snippet of the compiler errors? Any ideas?
> 
> cc -D__KERNEL__ -DMODULE -I../include -Wall -Wstrict-prototypes -O2
> -fomit-frame
> -pointer -fno-strength-reduce -DMODVERSIONS -include
> /usr/include/linux/modversi
> ons.h   -c bluetooth.c -o bluetooth.o
> In file included from /usr/include/linux/string.h:37,
>                  from /usr/include/linux/poll.h:9,
>                  from ../include/linux/bluetooth/sysdep-2.1.h:68,
>                  from bluetooth.c:25:
> /usr/include/asm/string.h:46: parse error before `size_t'
> /usr/include/asm/string.h: In function `strncpy':
> /usr/include/asm/string.h:47: number of arguments doesn't match prototype
> /usr/include/linux/string.h:13: prototype declaration
> /usr/include/asm/string.h:61: `src' undeclared (first use in this function)
> /usr/include/asm/string.h:61: (Each undeclared identifier is reported only
> once /usr/include/asm/string.h:61: for each function it appears in.)
> /usr/include/asm/string.h:61: `dest' undeclared (first use in this function)
> /usr/include/asm/string.h:61: `count' undeclared (first use in this
> function)
> /usr/include/asm/string.h:63: warning: control reaches end of non-void
> function /usr/include/asm/string.h: At top level:
> /usr/include/asm/string.h:84: parse error before `size_t'
> /usr/include/asm/string.h: In function `strncat':

I fixed similar problem by adding _LOOSE_KERNEL_NAMES flag in Makefile
at the end of CFLAGS.

---->
CFLAGS = -D__KERNEL__ ... $(MODFLAGS) -D_LOOSE_KERNEL_NAMES


	Pegax

-- 
Pekka Jäppinen	email: pegax@xxxxxxx.fi/~pjappine/">http://www.lut.fi/~pjappine/
Coordinator	Phone: +358405116382 
Lappeenranta University of Technology	http://www.lut.fi/
Datacommunications laboratory		http://www.it.lut.fi/comlab