Re: can't make misc.c

Guilhem Lavaux (ylavaux@pratique.fr)
Mon, 07 Apr 1997 19:27:56 +0200


Michael Harnois wrote:
>
> This problem was introduced in 2.1.31 and is not fixed in
> 2.1.32. Using glibc-2.0.2, binutils-2.7.0.14, and gcc-2.7.2.2, I can
> compile a kernel successfully, but I can't install it because misc.c
> fails miserably to compile.
>
> By miserably, I mean
>
> gcc -D__KERNEL__ -I/usr/src/linux/include -O2 -DSTDC_HEADERS -D__SMP__ -c misc.c -o misc.o
> In file included from /usr/src/linux/include/linux/fs.h:225,
> from /usr/src/linux/include/linux/tty.h:19,
> from /usr/src/linux/include/linux/sched.h:26,
> from /usr/src/linux/include/linux/vmalloc.h:4,
> from /usr/src/linux/include/asm/io.h:4,
> from misc.c:14:
> /usr/src/linux/include/linux/hpfs_fs_i.h:5: parse error before `ino_t'
[ errors snipped ]
> --
> + Michael D. Harnois + If you want to follow Jesus, +
> + Redeemer Lutheran Church, Washburn, IA + you better look good on wood. +
> + mharnois@sbt.net aa0bt@aa0bt.ampr.org + -- Daniel Berrigan +

I've got this problem too. You just need to add #include <linux/types.h>
at the top of the file: it seems to work for me.

Regards.

Guilhem.

-- 
-----------------------------------|
|   /-\  LAVAUX Yves & Guilhem     |
|  /   \       /-\                 |
|-/     \     /   \   /------------|
|        \   /     \-/             |
|         \-/  ylavaux@pratique.fr |
-----------------------------------|