Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
"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.
make: 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,
/usr/src/linux-2.4.21-63.EL/include/asm/spinlock.h:9: invalid suffix on integer
/usr/src/linux-2.4.21-63.EL/include/asm/spinlock.h:9: syntax error before numeri
/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?
Last edited by email@example.com; 09-22-2011 at 05:59 AM.
Reason: Add sample error, and question.