errors compiling 0.71pre1
Eric Haines
mol-general@lists.maconlinux.org
Thu, 20 May 2004 16:59:59 -0400
On Wednesday 19 May 2004 23:42, you wrote:
> Have not compiled mol in ages. rsynced from rsync.penguinppc.org,
> using 2.4.26, saw the new menuconfig setup (!), left everything at
> default. Getting this make error:
>
> + Entering video
> Compiling x11.o : ok
> Compiling xvideo.o : ok
> Compiling checksum.o : ok
> Compiling checksum_asm.o : ok
> Compiling vncvideo.o : ok
> Compiling xdga.o : ok
> Compiling fbdev.o : ok
> Compiling video.o : ok
> Compiling offscreen.o : ok
> + Entering net
> Compiling if-tun.o : In file included from if-tun.c:21:
> /usr/include/linux/netlink.h:22: parse error before "__u32"
> /usr/include/linux/netlink.h:28: parse error before "__u32"
> /usr/include/linux/netlink.h:30: parse error before "nlmsg_flags"
> /usr/include/linux/netlink.h:31: parse error before "nlmsg_seq"
> /usr/include/linux/netlink.h:32: parse error before "nlmsg_pid"
> /usr/include/linux/netlink.h:82: field `msg' has incomplete type
> /usr/include/linux/netlink.h:83: confused by earlier errors, bailing out
> make[4]: *** [../../../obj-ppc/build/src/drivers/net//if-tun.o] Error 1
> make[3]: *** [sub-net-all] Error 2
> make[2]: *** [sub-drivers-all] Error 2
> make[1]: *** [sub-src-all] Error 2
> make: *** [bootstrap] Error 2
>
> Is this a linux error (kernel compiled fine) or mol?
>
>
> Stefan Jeglinski
I got the same or similar error with 2.4.22, which I fixed by editing the
/usr/include/linux/netlink.h file so that after the first two lines:
#ifndef __LINUX_NETLINK_H
#define __LINUX_NETLINK_H
I inserted these two lines:
#include <linux/types.h>
typedef unsigned long kernel_ulong_t;
--Eric