Is god playing favorites? (has anyone installed it on an Ubu

On 7/19/07, Tom W. [email protected] wrote:

A lot of work has gone into god since the last release. …

INSTALL

sudo gem install god

  • note: currently tested only on Redhat Linux and Darwin (won’t work on
    Windows)

I’ve tried installing on Ubuntu Dapper with no joy.

The make is failing complaining about missing linux/connect.h and
linux/cn_proc.h I thought I found the appropriate package which
includes these for my system (linux-headers-686 which in-turn depends
on the latest equivalent version for my kernel) and installed it.

trying the gem install fails in the same way, the package installs
these elsewhere, so I put symlinks in /usr/include/linux to these two
files as installed by the package, and now it gets them but complains
about redefinitions.

Any ideas?

Rick DeNatale

My blog on Ruby
http://talklikeaduck.denhaven2.com/

One issue that Ubuntu has that some other systems might not have is that
the header files and compilers are not installed by default as the user
will be installing pre-compiled applications with the package manager.
To get this to work for me I have had to use package manager to install
the libc (libstdc???) headers package and make and all the other tools
to get things to work. You can actually install the C compiler but this
does not automatically include the various header files. For that you
need to download the appropriate package.

I’m away from my Ubuntu box at the moment so I can’t give you the
details but this could be something to check.

On 7/20/07, Peter H. [email protected] wrote:

details but this could be something to check.
I’ve done lots of source installs on this box so the normal headers
are there. These seem to be linux related headers rather than libc
stuff.

I don’t use debian/ubuntu packaged ruby stuff in general since they
generally don’t get ruby packaging.

Normally when something like this happens, I try to find an ubuntu
package for the thing I’m trying to build and do an apt-get build-dep
which gets the source packages it depends on, this usually gets things
fixed. However in this case there’s no such package.

The fallback, which I’ve pursued with this, is to use apt-file to
search for the package(s) which has the file(s) which is what I did
here, but it doesn’t work in this case.

Rick DeNatale

My blog on Ruby
http://talklikeaduck.denhaven2.com/

On Jul 20, 9:25 am, “Rick DeNatale” [email protected] wrote:

Normally when something like this happens, I try to find an ubuntu
package for the thing I’m trying to build and do an apt-get build-dep
which gets the source packages it depends on, this usually gets things
fixed. However in this case there’s no such package.

The fallback, which I’ve pursued with this, is to use apt-file to
search for the package(s) which has the file(s) which is what I did
here, but it doesn’t work in this case.

How about just downloading the source, building it manually, and see
what the extconf.rb emits? The mkmf.log file should point you in the
right direction.

Regards,

Dan

On 7/20/07, Daniel B. [email protected] wrote:

How about just downloading the source, building it manually, and see
what the extconf.rb emits? The mkmf.log file should point you in the
right direction.

Gem install is already showing me what’s failing, and the Makefile
generated by the gem install is in the gem inside the local gem
directory. No help.


Rick DeNatale

My blog on Ruby
http://talklikeaduck.denhaven2.com/

On 7/20/07, Tom W. [email protected] wrote:

Rick DeNatale wrote:

I’ve tried installing on Ubuntu Dapper with no joy.

An Ubuntu user has sent in a patch that fixes the problem on Edgy. I’ve
applied the patch and will push an 0.2.1 release shortly.

Thanks, I’ll watch for it. Hopefully this will also work for Dapper.
Since god seems to be most useful for servers, Dapper should be a
target platform since it’s the latest Ubuntu LTS release.


Rick DeNatale

My blog on Ruby
http://talklikeaduck.denhaven2.com/

Rick DeNatale wrote:

about redefinitions.

Any ideas?

An Ubuntu user has sent in a patch that fixes the problem on Edgy. I’ve
applied the patch and will push an 0.2.1 release shortly.

Tom

  • Tom W. 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

Rick DeNatale wrote:

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.

Tom

Dan Sully wrote:

  • Tom W. 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