Install/Build failure on a 64bit AMD with SuSE 10.1

25 views
Skip to first unread message

Jan Krutisch

unread,
Feb 11, 2008, 2:50:22 PM2/11/08
to god.rb
Hi *,

I just tried to install god and failed. Interestingly with an error
that has been reported on version 0.2.0 (or something like that) @ the
sdruby ML in August 2007 and should be fixed with 0.3.0. I'll try to
make it as detailed as possible:

I tried installing god using the standard commandline (as root,
obviously):

> gem install god

This is the output:

------------------8<-------------------
Building native extensions. This could take a while...
ERROR: While executing gem ... (Gem::Installer::ExtensionBuildError)
ERROR: Failed to build gem native extension.

ruby extconf.rb install god
checking for linux/netlink.h... yes
checking for linux/connector.h... yes
checking for linux/cn_proc.h... yes
creating Makefile

make
gcc -fPIC -O2 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -g -g -fno-
strict-aliasing -fPIC -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I/usr/
lib64/ruby/1.8/x86_64-linux -I. -DHAVE_LINUX_NETLINK_H -
DHAVE_LINUX_CONNECTOR_H -DHAVE_LINUX_CN_PROC_H -c kqueue_handler.c
gcc -fPIC -O2 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -g -g -fno-
strict-aliasing -fPIC -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I/usr/
lib64/ruby/1.8/x86_64-linux -I. -DHAVE_LINUX_NETLINK_H -
DHAVE_LINUX_CONNECTOR_H -DHAVE_LINUX_CN_PROC_H -c netlink_handler.c
In file included from /usr/include/linux/cn_proc.h:29,
from netlink_handler.c:9:
/usr/include/linux/time.h:12: error: redefinition of 'struct timespec'
/usr/include/linux/time.h:18: error: redefinition of 'struct timeval'
/usr/include/linux/time.h:23: error: redefinition of 'struct timezone'
/usr/include/linux/time.h:173: error: redefinition of 'struct
itimerval'
make: *** [netlink_handler.o] Error 1
------------------8<-------------------
/proc/version says:
Linux version 2.6.20.21-071108a (root@buildd-amd64) (gcc version 4.1.2
20061115 (prerelease) (Debian 4.1.1-21)) #1 SMP Thu Nov 8 13:04:34 CET
2007

So I'm obviously running a 64bit AMD machine. The system is a SuSE
10.1 (despite the Debian line in the output above).

Any Idea what re-introduces this bug? Is there a smart way to disable
building the ext stuff so that god would run without the event
features?

And above all: Should I file a bug? Is there any additional
information that I could provide?

Thanks,

Jan
Reply all
Reply to author
Forward
0 new messages