LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   invalid suffix on integer compiling linux kernel (http://www.linuxquestions.org/questions/linux-general-1/invalid-suffix-on-integer-compiling-linux-kernel-904397/)

john.wythe@activant.com 09-22-2011 05:54 AM

invalid suffix on integer compiling linux kernel
 
"invalid suffix on integer constant" compiling modules for linux kernel RHEL3, CentOS 3. Kernel version is the latest for RHEL3/Cent OS 3. Occurs on many modules ie lp.c if module is compiled into kernel there is no error. Kernel version 2.4.21-63.

sample error:
make[2]: Entering directory `/usr/src/linux-2.4.21-63.EL/drivers/char'
gcc -D__KERNEL__ -I/usr/src/linux-2.4.21-63.EL/include -Wall -Wstrict-prototypes
-Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -Wno-unused -fno-delete-nu
ll-pointer-checks -fomit-frame-pointer -pipe -freorder-blocks -mpreferred-stack-
boundary=2 -march=i586 -DMODULE -DMODVERSIONS -include /usr/src/linux-2.4.21-63.
EL/include/linux/modversions.h -nostdinc -iwithprefix include -DKBUILD_BASENAME
=hangcheck_timer -c -o hangcheck-timer.o hangcheck-timer.c
In file included from /usr/src/linux-2.4.21-63.EL/include/linux/spinlock.h:56,
from /usr/src/linux-2.4.21-63.EL/include/linux/module.h:11,
from hangcheck-timer.c:40:
/usr/src/linux-2.4.21-63.EL/include/asm/spinlock.h:9: invalid suffix on integer
constant
/usr/src/linux-2.4.21-63.EL/include/asm/spinlock.h:9: syntax error before numeri
c constant
/usr/src/linux-2.4.21-63.EL/include/asm/spinlock.h:10: `printk_R_ver_str' declar
ed as function returning a function
/usr/src/linux-2.4.21-63.EL/include/asm/spinlock.h:10: warning: function declara
tion isn't a prototype

How do I get around this problem without making everything compile into the kernel, instead of a module?


All times are GMT -5. The time now is 04:18 AM.