LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 09-22-2011, 05:54 AM   #1
john.wythe@activant.com
Member
 
Registered: Nov 2009
Location: Burnaby BC
Posts: 77

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
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?

Last edited by john.wythe@activant.com; 09-22-2011 at 05:59 AM. Reason: Add sample error, and question.
 
  


Reply



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 03:03 PM
Integer division operation in Linux kernel MahendraL Linux - Newbie 1 09-09-2009 07:10 AM
invalid integer value on a directory j-me Linux - Newbie 5 04-27-2009 07:13 PM
why get compiler error: suffix or operands invalid for 'push' (or 'pop') maxreason Programming 1 08-10-2008 10:42 AM
Error: suffix or operands invalid for `push' in 64 machine arya Linux - General 1 04-19-2007 10:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:00 AM.

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