2.1.114 x86 compile problem

Felix von Leitner (leitner@math.fu-berlin.de)
Wed, 5 Aug 1998 11:20:23 +0200


2.1.114 fails to compile bios32.c without PCI direct access enabled, and
when you define that, the next error is

gcc -D__KERNEL__ -I/bla/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -pipe -fno-strength-reduce -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=686 -c -o init_task.o init_task.c
init_task.c:24: parse error before `,'
init_task.c:24: warning: missing braces around initializer for `init_task_union.task.sigmask_lock'
init_task.c:24: warning: excess elements in struct initializer after `init_task_union.task.sigmask_lock'
init_task.c:24: warning: braces around scalar initializer for `init_task_union.task.sig'
init_task.c:24: warning: braces around scalar initializer for `init_task_union.task.sig'
init_task.c:24: warning: initialization makes integer from pointer without a cast
init_task.c:24: warning: initialization makes integer from pointer without a cast
make[1]: *** [init_task.o] Error 1
make[1]: Leaving directory `/bla/linux/arch/i386/kernel'
make: *** [linuxsubdirs] Error 2

This line hasn't changed in ages, so it must be some include or define
or so. It looks like this:

union task_union init_task_union __attribute__((__section__(".text"))) = { INIT_TASK };

Felix

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html