From: Daniel R. S. <dan...@ya...> - 2004-03-03 19:29:09
|
Did you remember to copy the linux-config file to your .config file and run make oldconfig? I downloaded the kernel-source of 2.4.24 directly from www.kernel.org , applied the patch, copied linux-config to .config, executed make oldconfig. Then ran make xconfig to add some other filesystem drivers as modules. Then ran make dep && make vmlinux && make modules && make modules_install All seemed to work fine for me. Dan -----Original Message----- From: col...@li... [mailto:col...@li...] On Behalf Of Gregor Mitsch Sent: Wednesday, March 03, 2004 1:00 PM To: col...@li... Subject: Re: [coLinux-devel] how to compile the kernel? Hi, > You need to compile your own kernel. To get started look at > doc/building in the coLinux tarball. I followed the instructions from doc/building. Applying the patch succeeded. But $ make vmlinux fails with the following error message from cooperative.c: [...] cooperative.c:16: parse error before `*' cooperative.c:16: warning: type defaults to `int' in declaration of `co_passage_page' cooperative.c:16: warning: data definition has no type or storage class cooperative.c:27: `CO_BOOTPARAM_STRING_LENGTH' undeclared here (not in a function) cooperative.c:29: parse error before `*' cooperative.c:30: warning: function declaration isn't a prototype [...] You can see the whole output below. I downloaded the kernel-source of 2.4.24 via apt-get and used gcc version 2.95.4 to compile it. Any hints? --Gregor ---------------- (Z)root@colinux:/usr/src/kernel-source-2.4.24> make vmlinux . scripts/mkversion > .tmpversion gcc -D__KERNEL__ -I/usr/src/kernel-source-2.4.24/include -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -O2 -pipe -mpreferred-stack-boundary=2 -march=i386 -DUTS_MACHINE='"i386"' -DKBUILD_BASENAME=version -c -o init/version.o init/version.c make CFLAGS="-D__KERNEL__ -I/usr/src/kernel-source-2.4.24/include -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -O2 -pipe -mpreferred-stack-boundary=2 -march=i386 " -C kernel make[1]: Entering directory `/usr/src/kernel-source-2.4.24/kernel' make all_targets make[2]: Entering directory `/usr/src/kernel-source-2.4.24/kernel' gcc -D__KERNEL__ -I/usr/src/kernel-source-2.4.24/include -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -O2 -pipe -mpreferred-stack-boundary=2 -march=i386 -nostdinc -iwithprefix include -DKBUILD_BASENAME=cooperative -c -o cooperative.o cooperative.c cooperative.c:16: parse error before `*' cooperative.c:16: warning: type defaults to `int' in declaration of `co_passage_page' cooperative.c:16: warning: data definition has no type or storage class cooperative.c:27: `CO_BOOTPARAM_STRING_LENGTH' undeclared here (not in a function) cooperative.c:29: parse error before `*' cooperative.c:30: warning: function declaration isn't a prototype cooperative.c: In function `colinux_start_c': cooperative.c:32: `passage_page' undeclared (first use in this function) cooperative.c:32: (Each undeclared identifier is reported only once cooperative.c:32: for each function it appears in.) cooperative.c:34: request for member `params' in something not a structure or union cooperative.c:35: request for member `params' in something not a structure or union cooperative.c:36: request for member `params' in something not a structure or union cooperative.c:37: request for member `params' in something not a structure or union cooperative.c:39: request for member `params' in something not a structure or union cooperative.c:39: request for member `params' in something not a structure or union cooperative.c: At top level: cooperative.c:50: parse error before `*' cooperative.c:51: warning: return-type defaults to `int' cooperative.c: In function `co_send_message_save': cooperative.c:53: request for member `operation' in something not a structure or union cooperative.c:53: `CO_OPERATION_MESSAGE_TO_MONITOR' undeclared (first use in this function) cooperative.c:54: request for member `params' in something not a structure or union cooperative.c:55: `co_message_t' undeclared (first use in this function) cooperative.c:55: parse error before `)' cooperative.c:55: request for member `params' in something not a structure or union cooperative.c:56: warning: control reaches end of non-void function cooperative.c: In function `co_send_message_restore': cooperative.c:60: warning: implicit declaration of function `co_switch_wrapper' cooperative.c: At top level: cooperative.c:64: parse error before `*' cooperative.c:65: warning: function declaration isn't a prototype cooperative.c: In function `co_send_message_s': cooperative.c:66: `co_message_t' undeclared (first use in this function) cooperative.c:66: `message' undeclared (first use in this function) cooperative.c:67: `params' undeclared (first use in this function) cooperative.c:67: warning: statement with no effect cooperative.c:68: parse error before `unsigned' cooperative.c:70: `flags' undeclared (first use in this function) cooperative.c:71: request for member `operation' in something not a structure or union cooperative.c:71: `CO_OPERATION_MESSAGE_TO_MONITOR' undeclared (first use in this function) cooperative.c:72: request for member `params' in something not a structure or union cooperative.c:73: parse error before `)' cooperative.c:73: request for member `params' in something not a structure or union cooperative.c:75: `data' undeclared (first use in this function) cooperative.c: At top level: cooperative.c:82: parse error before `from' cooperative.c:88: warning: function declaration isn't a prototype cooperative.c: In function `co_send_message': cooperative.c:89: `co_message_t' undeclared (first use in this function) cooperative.c:89: parse error before `params' cooperative.c:91: `params' undeclared (first use in this function) cooperative.c:91: `from' undeclared (first use in this function) cooperative.c:92: `to' undeclared (first use in this function) cooperative.c:93: `priority' undeclared (first use in this function) cooperative.c:94: `type' undeclared (first use in this function) cooperative.c:95: `size' undeclared (first use in this function) cooperative.c:97: `data' undeclared (first use in this function) cooperative.c: At top level: cooperative.c:100: parse error before `*' cooperative.c:101: warning: function declaration isn't a prototype cooperative.c: In function `co_receive_message': cooperative.c:103: parse error before `co_message_t' cooperative.c:103: warning: no semicolon at end of struct or union cooperative.c:104: `co_linux_message_t' undeclared (first use in this function) cooperative.c: At top level: cooperative.c:105: warning: type defaults to `int' in declaration of `linux_message' cooperative.c:105: warning: data definition has no type or storage class cooperative.c:107: warning: type defaults to `int' in declaration of `linux_message' cooperative.c:107: conflicting types for `linux_message' cooperative.c:105: previous declaration of `linux_message' cooperative.c:107: `message' undeclared here (not in a function) cooperative.c:107: warning: data definition has no type or storage class cooperative.c:109: parse error before `&' cooperative.c:109: warning: type defaults to `int' in declaration of `co_handle_device_interrupt' cooperative.c:109: warning: function declaration isn't a prototype cooperative.c:109: warning: data definition has no type or storage class cooperative.c: In function `co_callback': cooperative.c:114: request for member `operation' in something not a structure or union cooperative.c:114: `CO_OPERATION_MESSAGE_FROM_MONITOR' undeclared (first use in this function) cooperative.c:115: `co_message_t' undeclared (first use in this function) cooperative.c:115: parse error before `)' cooperative.c:115: request for member `params' in something not a structure or union cooperative.c:116: request for member `params' in something not a structure or union cooperative.c:120: request for member `operation' in something not a structure or union cooperative.c: In function `co_idle_processor': cooperative.c:130: request for member `operation' in something not a structure or union cooperative.c:130: `CO_OPERATION_IDLE' undeclared (first use in this function) cooperative.c: In function `co_printk': cooperative.c:138: `CO_MODULE_LINUX' undeclared (first use in this function) cooperative.c:139: `CO_MODULE_PRINTK' undeclared (first use in this function) cooperative.c:140: `CO_PRIORITY_DISCARDABLE' undeclared (first use in this function) cooperative.c:141: `CO_MESSAGE_TYPE_STRING' undeclared (first use in this function) cooperative.c: In function `co_debug_line': cooperative.c:157: request for member `operation' in something not a structure or union cooperative.c:157: `CO_OPERATION_DEBUG_LINE' undeclared (first use in this function) cooperative.c:158: request for member `params' in something not a structure or union cooperative.c: In function `co_trace_ent_name': cooperative.c:179: warning: unsigned int format, pointer arg (arg 6) cooperative.c: In function `co_trace_ent': cooperative.c:202: warning: unsigned int format, pointer arg (arg 5) cooperative.c: At top level: cooperative.c:209: parse error before `do' cooperative.c:212: `flags' used prior to declaration cooperative.c:215: parse error before `do' cooperative.c:216: parse error before `=' cooperative.c:217: parse error before `sizeof' cooperative.c:217: warning: type defaults to `int' in declaration of `vsnprintf' cooperative.c:217: warning: function declaration isn't a prototype cooperative.c:217: warning: type defaults to `int' in declaration of `fmt' cooperative.c:217: warning: type defaults to `int' in declaration of `args' cooperative.c:217: conflicting types for `args' cooperative.c:213: previous declaration of `args' cooperative.c:217: parse error before `)' cooperative.c:218: parse error before `void' cooperative.c:219: warning: type defaults to `int' in declaration of `co_debug_line' cooperative.c:219: warning: parameter names (without types) in function declaration cooperative.c:219: conflicting types for `co_debug_line' cooperative.c:147: previous declaration of `co_debug_line' cooperative.c:219: warning: data definition has no type or storage class cooperative.c:220: parse error before `__volatile__' cooperative.c:228: parse error before `->' cooperative.c:230: warning: type defaults to `int' in declaration of `co_switch_wrapper' cooperative.c:230: warning: function declaration isn't a prototype cooperative.c:230: warning: data definition has no type or storage class cooperative.c:231: parse error before `__volatile__' cooperative.c: In function `co_get_host_time': cooperative.c:240: request for member `operation' in something not a structure or union cooperative.c:240: `CO_OPERATION_GET_TIME' undeclared (first use in this function) cooperative.c:242: request for member `params' in something not a structure or union cooperative.c:237: warning: `time' might be used uninitialized in this function make[2]: *** [cooperative.o] Error 1 make[2]: Leaving directory `/usr/src/kernel-source-2.4.24/kernel' make[1]: *** [first_rule] Error 2 make[1]: Leaving directory `/usr/src/kernel-source-2.4.24/kernel' make: *** [_dir_kernel] Error 2 (Z)root@colinux:/usr/src/kernel-source-2.4.24> ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ coLinux-devel mailing list coL...@li... https://lists.sourceforge.net/lists/listinfo/colinux-devel |