Subject:
[ruby-ffi] Re: What constitutes a sane building environment?
From:
James
Date:
11/30/10 1:09 AM
To:
ruby-ffi

Well I've been installing a bunch of other things in the mean time and
amazingly enough ffi 0.6.3 has managed to successfully install iteslf
somewhere along the way!

I have no idea what has changed, but at least it is working now :)

Thanks for your help!

On Nov 29, 9:05 pm, Mike Dalessio <mike.dales...@gmail.com> wrote:
> On Sat, Nov 27, 2010 at 5:18 AM, James <james.b.thomp...@gmail.com> wrote:
> > Hey Mike - thanks for giving me a hand.
>
> > So I installed the libffi-devel package and then got past the initial
> > error that I had and on to a new one. I have managed to install
> > version 0.6.2, but I am getting the following errors for 0.6.3...
> > (sorry about the massive copy-paste)
>
> > gem_make.out: ==================================
>
> <snip>
>
> > gcc -I. -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I. -DRUBY_EXTCONF_H=
> > \"extconf.h\"    -fPIC -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -
> > fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -
> > mtune=generic -fno-strict-aliasing  -fPIC  -I/usr/lib64/libffi-3.0.9/
> > include    -c MappedType.c
> > MappedType.c: In function ‘mapped_allocate’:
> > MappedType.c:54:26: error: ‘NATIVE_MAPPED’ undeclared (first use in
> > this function)
> > MappedType.c:54:26: note: each undeclared identifier is reported only
> > once for each function it appears in
> > MappedType.c: In function ‘mapped_initialize’:
> > MappedType.c:64:11: warning: unused variable ‘t’
> > make: *** [MappedType.o] Error 1
>
> I don't think this is an environment issue. NATIVE_MAPPED is defined in
> Types.h, which is included by Type.h, which is included by MappedType.c on
> line 33. So I'm at a loss to explain what's going on.
>
> Perhaps if you included some information about your platform - what distro,
> version of GCC, etc., someone might have deeper insight than I do.
>
> Good luck,
> -mike