Re: [Libvir] building ruby bindings

2008-03-27 Thread David Lutterkort
On Wed, 2008-03-26 at 16:42 -0700, Vadim Zaliva wrote: > On Mar 26, 2008, at 16:24, David Lutterkort wrote: > > > This is very strange since the NORETURN macro is defined by ruby-devel > > (for gcc it amounts to __attribute__((noreturn)) ) It seems that gcc-4.1.1/gcc-4.1.2 don't like __attribut

Re: [Libvir] building ruby bindings

2008-03-26 Thread Vadim Zaliva
On Mar 26, 2008, at 16:24, David Lutterkort wrote: This is very strange since the NORETURN macro is defined by ruby-devel (for gcc it amounts to __attribute__((noreturn)) ) I just checked in my RHEL5 build root, and it's set to a noop in ruby.h if it is not defined by config.h This is with

Re: [Libvir] building ruby bindings

2008-03-26 Thread David Lutterkort
On Wed, 2008-03-26 at 14:53 -0700, Vadim Zaliva wrote: > The offending line is: > > NORETURN(static void vir_error(virConnectPtr conn, const char *fn)) { > rb_raise(rb_eSystemCallError, "libvir call %s failed", fn); > } This is very strange since the NORETURN macro is defined by ruby-devel

[Libvir] building ruby bindings

2008-03-26 Thread Vadim Zaliva
Hi! I am trying to build Ruby bindings for libvirt 0.4.1. I have checked out ruby-libvirt from mercurial repository, but it fails during the build: # rake build (in /home/lord/tmp/ruby-libvirt) make gcc -I. -I/usr/lib/ruby/1.8/i386-linux -I/usr/lib/ruby/1.8/i386-linux - I. -fPIC -O2 -g -pip