Linux - NewbieThis 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!
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.
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
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?