Compile error in mol-0.9.71-pre1
Eric Haines
mol-general@lists.maconlinux.org
Fri, 2 Apr 2004 15:42:22 -0500
On Tuesday 30 March 2004 15:01, you wrote:
> Hi,
>
> I'm getting the following compile 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 iface.o : In file included from
> iface.c:22:
> /usr/include/linux/netlink.h:22: parse error before `__u32'
> /usr/include/linux/netlink.h:22: warning: no semicolon at
> end of struct or union
> /usr/include/linux/netlink.h:23: warning: data definition
> has no type or storage class
> /usr/include/linux/netlink.h:28: parse error before `__u32'
> /usr/include/linux/netlink.h:28: warning: no semicolon at
> end of struct or union
> /usr/include/linux/netlink.h:29: warning: data definition
> has no type or storage class
> /usr/include/linux/netlink.h:30: parse error before
> `nlmsg_flags'
> /usr/include/linux/netlink.h:30: warning: data definition
> has no type or storage class
> /usr/include/linux/netlink.h:31: parse error before
> `nlmsg_seq'
> /usr/include/linux/netlink.h:31: warning: data definition
> has no type or storage class
> /usr/include/linux/netlink.h:32: parse error before
> `nlmsg_pid'
> /usr/include/linux/netlink.h:32: warning: data definition
> has no type or storage class
> /usr/include/linux/netlink.h:82: field `msg' has incomplete
> type
> iface.c: In function `tap_open':
> iface.c:200: storage size of `nladdr' isn't known
> iface.c:200: warning: unused variable `nladdr'
> make[4]: *** [.objs-ppc/iface.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
> [fwo@green mol-rsync]$
I've just gotten the latest rsync source, and trying to compile gave me a
similar error. After some searching on the web, I found what seems to be a
fix. Edit the /usr/include/linux/netlink.h file so that after the first two
lines:
#ifndef __LINUX_NETLINK_H
#define __LINUX_NETLINK_H
you insert these two lines:
#include <linux/types.h>
typedef unsigned long kernel_ulong_t;
Mind you, I've no idea what this does, not being a Linux programmer. It does
stop the compile errors though...now to see what works, if anything....
--Eric