I'm having difficulty compiling diald-0.99 (kernel is 2.2.9 with
ethertap support as a module; gcc is 2.7.2.3), getting error messages
when I 'make' from within /usr/src/diald-0.99. Below are reproduced the
error messages, and a part of the offending file. I cannot detect
anything wrong with the files. Any ideas?
cc -O2 -Wall -pipe -DTCP_WRAPPERS -c proxy_tap.c -o proxy_tap.o
In file included from proxy_tap.c:20:
/usr/include/linux/netlink.h:19: parse error before `__u32'
/usr/include/linux/netlink.h:19: warning: no semicolon at end of struct
or union
/usr/include/linux/netlink.h:20: warning: data definition has no type or
storage class
/usr/include/linux/netlink.h:25: parse error before `__u32'
/usr/include/linux/netlink.h:25: warning: no semicolon at end of struct
or union
/usr/include/linux/netlink.h:26: warning: data definition has no type or
storage class
/usr/include/linux/netlink.h:27: parse error before `nlmsg_flags'
/usr/include/linux/netlink.h:27: warning: data definition has no type or
storage class
/usr/include/linux/netlink.h:28: parse error before `nlmsg_seq'
/usr/include/linux/netlink.h:28: warning: data definition has no type or
storage class
/usr/include/linux/netlink.h:29: parse error before `nlmsg_pid'
/usr/include/linux/netlink.h:29: warning: data definition has no type or
storage class
/usr/include/linux/netlink.h:79: field `msg' has incomplete type
proxy_tap.c: In function `proxy_tap_init':
proxy_tap.c:124: storage size of `nl' isn't known
proxy_tap.c:124: warning: unused variable `nl'
make: *** [proxy_tap.o] Error 1
Here are the first 30 lines of /usr/include/linux/netlink.h:
#ifndef __LINUX_NETLINK_H
#define __LINUX_NETLINK_H
#define NETLINK_ROUTE 0 /* Routing/device hook */
#define NETLINK_SKIP 1 /* Reserved for ENskip */
#define NETLINK_USERSOCK 2 /* Reserved for user mode socket protocols
*/
#define NETLINK_FIREWALL 3 /* Firewalling hook */
#define NETLINK_ARPD 8
#define NETLINK_ROUTE6 11 /* af_inet6 route comm channel */
#define NETLINK_IP6_FW 13
#define NETLINK_TAPBASE 16 /* 16 to 31 are ethertap */
#define MAX_LINKS 32
struct sockaddr_nl
{
sa_family_t nl_family; /* AF_NETLINK */
unsigned short nl_pad; /* zero */
__u32 nl_pid; /* process pid
*/ <---------line
19
__u32 nl_groups; /* multicast groups mask */
};
struct nlmsghdr
{
__u32 nlmsg_len; /* Length of message including header */
__u16 nlmsg_type; /* Message content */
__u16 nlmsg_flags; /* Additional flags */
__u32 nlmsg_seq; /* Sequence number */
__u32 nlmsg_pid; /* Sending process PID */
};
-
To unsubscribe from this list: send the line "unsubscribe linux-diald" in
the body of a message to [EMAIL PROTECTED]