From: Ian L. <Ian...@mq...> - 2004-01-31 23:51:22
|
Hi Dan, See below, using the colinux-20040131 patch, I am getting a kernel compile error, regarding the variable "data" in cooperative.h ("putcs" structure within the co_console_message_t structure). I have decided that if you haven't seen this in your compiles, then it may be compiler related - this is my compiler version; [root@host]# gcc --version 2.96 Has anyone else seen this issue? If not, which compiler version are you using? Alternatively, if this is supposed to be a single char (put-char-screen?) then how about redefining data[] as data[2]? COMPILE ERROR; gcc -D__KERNEL__ -I/usr/src/linux-2.4.24/include -Wall -Wstrict-prototypes -Wno-trigraphs - O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack- boundary=2 -march=i586 -DKBUILD_BASENAME=main -c -o init/main.o init/main.c In file included from /usr/src/linux-2.4.24/include/linux/cooperative.h:15, from /usr/src/linux-2.4.24/include/asm/io.h:5, from /usr/src/linux-2.4.24/include/linux/blkdev.h:11, from /usr/src/linux-2.4.24/include/linux/blk.h:4, from init/main.c:25: /usr/src/linux-2.4.24/include/asm/cooperative.h:73: array size missing in `params' In file included from /usr/src/linux-2.4.24/include/asm/io.h:5, from /usr/src/linux-2.4.24/include/linux/blkdev.h:11, from /usr/src/linux-2.4.24/include/linux/blk.h:4, from init/main.c:25: /usr/src/linux-2.4.24/include/linux/cooperative.h:103: array size missing in `data' make: *** [init/main.o] Error 1 INCLUDE FILE typedef struct { unsigned long size; co_operation_console_t type; union { struct { long t; /* Start of scroll region (row) */ long b; /* End of scroll region (row) */ long dir; /* End of scroll region (row) */ long lines; /* Number of lines to scroll */ } scroll; struct { long x; long y; long count; char data[]; <-- line 103 } putcs; struct { long x; long y; unsigned short charattr; } putc; co_cursor_pos_t cursor; }; } co_console_message_t; -- Ian Latter Internet and Networking Security Officer Macquarie University Meet me at the Australian Unix and open systems User Group (AUUG) Security Symposium; 2004 http://www.auug.org.au/events/2004/security/ |