2005-05-15 12:26:36

by Maxim Berezovsky

[permalink] [raw]
Subject: linux kernel v2.4.30 bugreport

[1] .c files containing "#include <linux/delay.h>" do not compiling with make

[2] when I try to compile packages from sources, any file that contains
"#include <linux/delay.h> does not compile with make.
make outputs an error just like this:
gcc -D__KERNEL__ -DMODULE=1 -I/home/maxim/download/alsa-driver-1.0.4/include
-I/lib/modules/2.4.30/build/include -O2 -mpreferred-stack-boundary=2
-march=i686 -D__SMP__ -DCONFIG_SMP -DLINUX -Wall -Wstrict-prototypes
-fomit-frame-pointer -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-pipe -DALSA_BUILD -nostdinc -iwithprefix include -DKBUILD_BASENAME=cmipci
-c -o cmipci.o cmipci.c
In file included from ../alsa-kernel/pci/cmipci.c:29,
from cmipci.c:1:
/lib/modules/2.4.30/build/include/linux/delay.h:57: error: parse error before
"do"
/lib/modules/2.4.30/build/include/linux/delay.h:57: error: parse error before
'(' token
/lib/modules/2.4.30/build/include/linux/delay.h:60: error: parse error before
'(' token

cmipci.c 29 line is:
#include <linux/delay.h>

[3] bash-2.05b$ cat /proc/version
Linux version 2.4.30 (root@diesel) (gcc version 3.3.4) #2 SMP

--
Maxim "berry" Berezovsky.
-------------------------
vox emissa volat, litera scripta manet.


2005-05-15 12:38:18

by Willy Tarreau

[permalink] [raw]
Subject: Re: linux kernel v2.4.30 bugreport

On Sun, May 15, 2005 at 07:25:45PM +0700, Maxim Berezovsky wrote:
> [1] .c files containing "#include <linux/delay.h>" do not compiling with make
(...)
> /lib/modules/2.4.30/build/include/linux/delay.h:57: error: parse error before
> "do"

I suspect that your sources were corrupted (wrong patch, or something else),
because I don't have anything semblable in delay.h:57 :

57:static inline void msleep(unsigned long msecs)

And my system uses alsa-1.0.9-rc2 on top of 2.4.30 (modified though).

Regards,
Willy