From: Tom Werner Date: 2007-07-21T07:13:51+09:00 Subject: Re: Is god playing favorites? (has anyone installed it on an Ubuntu/Debian system? (was Re: [ANN] god 0.2.0 released) Dan Sully wrote: > * Tom Werner shaped the electrons to say... > >> Hmm, just tried the patched install on Dapper and still no luck (supposedly works on Edgy and Feisty though). I'll keeping looking into the problem and see what I can find. > > Edgy (and Dapper apparently) have a broken /usr/include/linux/cn_proc.h, > which will prevent the netlink extension from compiling at all. > > To fix, remove the time.h & connector.h includes and change the timeval > struct to be: > > __u64 __attribute__((aligned(8))) timestamp_ns; > > in cn_proc.h > > -D > -- > please describe web 2.0 to me in 2 sentences or less. > you make all the content. they keep all the revenue. > > There also seems to be a netlink header discrepancy on Dapper. netlink.h contains the following #defines: #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_TCPDIAG 4 /* TCP socket monitoring */ #define NETLINK_NFLOG 5 /* netfilter/iptables ULOG */ #define NETLINK_XFRM 6 /* ipsec */ #define NETLINK_SELINUX 7 /* SELinux event notifications */ #define NETLINK_ARPD 8 #define NETLINK_AUDIT 9 /* auditing */ #define NETLINK_ROUTE6 11 /* af_inet6 route comm channel */ #define NETLINK_IP6_FW 13 #define NETLINK_DNRTMSG 14 /* DECnet routing messages */ #define NETLINK_KOBJECT_UEVENT 15 /* Kernel messages to userspace */ #define NETLINK_TAPBASE 16 /* 16 to 31 are ethertap */ while Feisty has: #define NETLINK_ROUTE 0 /* Routing/device hook */ #define NETLINK_UNUSED 1 /* Unused number */ #define NETLINK_USERSOCK 2 /* Reserved for user mode socket protocols */ #define NETLINK_FIREWALL 3 /* Firewalling hook */ #define NETLINK_INET_DIAG 4 /* INET socket monitoring */ #define NETLINK_NFLOG 5 /* netfilter/iptables ULOG */ #define NETLINK_XFRM 6 /* ipsec */ #define NETLINK_SELINUX 7 /* SELinux event notifications */ #define NETLINK_ISCSI 8 /* Open-iSCSI */ #define NETLINK_AUDIT 9 /* auditing */ #define NETLINK_FIB_LOOKUP 10 #define NETLINK_CONNECTOR 11 #define NETLINK_NETFILTER 12 /* netfilter subsystem */ #define NETLINK_IP6_FW 13 #define NETLINK_DNRTMSG 14 /* DECnet routing messages */ #define NETLINK_KOBJECT_UEVENT 15 /* Kernel messages to userspace */ #define NETLINK_GENERIC 16 Notice that NETLINK_CONNECTOR, which god uses, is not defined in the former. Adding it to netlink.h on Dapper allows the extension to compile, but doesn't make the event conditions work. We'll look into this some more and see if we can come up with a good solution for Dapper. Tom