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 04-26-2004, 04:16 AM   #1
thomasmathew
LQ Newbie
 
Registered: Apr 2003
Location: India
Distribution: Red Hat 8.0
Posts: 23

Rep: Reputation: 15
Question Error while 'make modules' -- Error in processor.h


Hai,
Can you people tell me the details of the error snippets I am including with this. I got this error while trying to 'make modules'. I had a keen look at the processor.h header file and I could'nt able to understand what is wrong there in the structure in which loops_per_jifffy is decleared. If we change the loops_per_jiffy member variable to some thing else then this error will go out. Why it so? Again also some more preceeding error after that are also coming for the structure variable created for above mentioned structure. Please help me after a look the processor.h header file.


The error goes on like this:

/usr/src/linux-2.4/include/asm/processor.h:51: warning: parameter names
(without types) in function declaration
/usr/src/linux-2.4/include/asm/processor.h:51: field
`loops_per_jiffy_R_ver_str' declared as a function
/usr/src/linux-2.4/include/asm/processor.h:73: invalid suffix on integer
constant
/usr/src/linux-2.4/include/asm/processor.h:73: parse error before numeric
constant
.................................etc.

If anybody have any idea regarding this please let me know. Thanks in advance.

With regards,
Thomas.
 
Old 04-26-2004, 12:59 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,336

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
The error is probably in line 51 or in one of the lines ahead of line 51. This looks like a problem where a parentheses, close parentheses, or some other syntax delimiter is missing. Then you get error messages on subsequent valid lines because the compiler is confused about the syntax.

----------------------
Steve Stites
 
Old 04-26-2004, 10:41 PM   #3
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
probably a dependency problem, iv seen some dependency problems cause syntax errors like those before in other software packages, its probably missing a header or something... maybe a bad kernel config ? (I'm not sure of that tho, shouldn't it work either way?)
 
Old 04-29-2004, 02:38 AM   #4
thomasmathew
LQ Newbie
 
Registered: Apr 2003
Location: India
Distribution: Red Hat 8.0
Posts: 23

Original Poster
Rep: Reputation: 15
I have found recently that it is because of a problem with same identifier named loops_per_jiffy which is as a fuction inside the modversions.h header file that I am explicitly including in gcc options. In the processer.h header file also this same identifier is there as a structure variable which is at line number 51. So if I rename that and compile it will compile smoothly. Why such a coincidence arises in header file? The author of processor.h header file is Linus Tolvards why he had'nt noticed that? So is it desirable to rename that to what we wish so that no errors from that line will come? But my question is that then how people compiled there 'make modules' with out any errors like this. I used the fresh source located in the /usr/src/linux-2.4 of the Red Hat installation. So if anybody know about these issues please let me know. Seeking for your comments.

THOMAS MATHEW.
 
  


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
make modules complie error..... hkl8324 Debian 1 06-14-2005 05:13 PM
Kernel 2.6 make modules error on RH9 t0mmy Linux - Newbie 3 04-08-2005 10:26 PM
error with make modules - pls help-output attached Dineth Linux - Software 7 12-29-2003 02:09 AM
updating to kernel 2.4.22 error 'make modules' concerning aic7 Mestax Linux - Newbie 1 09-23-2003 02:51 PM
'make modules' error liguorir Linux - Software 6 06-26-2003 05:34 PM

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

All times are GMT -5. The time now is 09:36 PM.

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