Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This 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.


  Search this Thread
Old 09-22-2011, 06:54 AM   #1
Registered: Nov 2009
Location: Burnaby BC
Posts: 60

Rep: Reputation: 1
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
/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?

Last edited by; 09-22-2011 at 06:59 AM. Reason: Add sample error, and question.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
error when compiling VPNC: "Incorrect register `%rdx' used with `l' suffix" flowher Slackware 0 03-11-2010 04:03 PM
Integer division operation in Linux kernel MahendraL Linux - Newbie 1 09-09-2009 08:10 AM
invalid integer value on a directory j-me Linux - Newbie 5 04-27-2009 08:13 PM
why get compiler error: suffix or operands invalid for 'push' (or 'pop') maxreason Programming 1 08-10-2008 11:42 AM
Error: suffix or operands invalid for `push' in 64 machine arya Linux - General 1 04-19-2007 11:32 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:02 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration