Visit the LQ Articles and Editorials section
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 09-22-2004, 01:29 AM   #1
LQ Newbie
Registered: Jul 2004
Location: California
Posts: 5

Rep: Reputation: 0
problem building modules

I am trying to do "make modules" and got error messages as:

/usr/src/linux-2.4.22-1.2115.nptl/include/asm/spinlock.h:9: invalid on integer constant
/usr/src/linux-2.4.22-1.2115.nptl/include/asm/spinlock.h:9: syntax error before numeric constant
/usr/src/linux-2.4.22-1.2115.nptl/include/asm/spinlock.h:10:`printk_R_ver_str' declared as function returnning a function

/usr/src/linux-2.4.22-1.2115.nptl/include/asm/spinlock.h:9 is:

extern int printk(const char * fmt, ...)
__attribute__ (( format (printf, 1, 2)));

Obviously, it does not make sense to generate the error messages. So, I guess there are some macros to make the line 9 look different. I copied the compile line and changed the "-c" to "-E" and redirect the preprocess output to a file then look at the corresponding line. It is:

extern int printk_R_ver_str(1b7d4074)(const char *fmt, ...)
__attribute__((format (printf, 1, 2)));

Now, the error messages make sense.

My question is what I did wrong to make the preprocess to generate such result? How can I fix this problem?

Thanks in advance!
Old 09-22-2004, 01:44 AM   #2
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 658Reputation: 658Reputation: 658Reputation: 658Reputation: 658Reputation: 658
Perhaps you made the same mistake at the person who started this similar thread:
Old 09-22-2004, 02:12 AM   #3
LQ Newbie
Registered: Jul 2004
Location: California
Posts: 5

Original Poster
Rep: Reputation: 0
jschiwal, thank you very much! You are absolutely right!


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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Building driver modules to work with Install kernels? Erik_FL Slackware 4 10-06-2005 10:05 PM
Problem building RH9 kernel modules dominicporter Red Hat 1 09-25-2005 01:53 PM
Building new kernel modules? raid517 Linux - Software 2 05-26-2005 04:07 AM
Strangeness (or pilot error) building network driver modules cacheout Fedora 0 07-27-2004 07:39 PM
Building modules for the kernel... Nichole_knc Slackware 3 04-13-2004 09:28 AM

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

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