LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Mandrake kernel 2.4.21 compiling (https://www.linuxquestions.org/questions/linux-newbie-8/mandrake-kernel-2-4-21-compiling-72868/)

phaestos 07-15-2003 05:58 AM

Mandrake kernel 2.4.21 compiling
 
Hi !

I just tried to kill a small keyboard.c bug at Toshiba notebooks. Compiling the kernel image was no problem. But making tthe modules is a REAL problem. Wetheer the the normal kernel, nor the *multimedia* kernel from Mandrake worked. There seems to be a bug (original kernel 2.4.21 worked fine!). So, who gots similiar problem and who knows a solution ?

> make modules
...
In file included from ac.c:26:
/usr/src/linux-2.4.21-0.16mm-mdk/include/linux/kernel.h:61: invalid suffix on integer constant
/usr/src/linux-2.4.21-0.16mm-mdk/include/linux/kernel.h:61: parse error before numeric constant
/usr/src/linux-2.4.21-0.16mm-mdk/include/linux/kernel.h:62: `panic_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.21-0.16mm-mdk/include/linux/kernel.h:62: warning: function declaration isn't a prototype
/usr/src/linux-2.4.21-0.16mm-mdk/include/linux/kernel.h:68: parse error before numeric constant
....

PS: Output doesn't depend from module. Turning off ACPI makes crashing the next module source.

kernel.h line 60 and following
....
extern struct notifier_block *panic_notifier_list;
NORET_TYPE void panic(const char * fmt, ...)
__attribute__ ((NORET_AND format (printf, 1, 2)));
asmlinkage NORET_TYPE void do_exit(long error_code)
ATTRIB_NORET;
NORET_TYPE void complete_and_exit(struct completion *, long)
ATTRIB_NORET;

...

phaestos 07-15-2003 08:41 AM

...found problem. If anyone gets same errors...don't use KControl for customizing your .config file for kernel compilation ! Make xconfig works fine. No errors left !


All times are GMT -5. The time now is 07:49 AM.