Subject:
Re: [ruby-ffi] Re: What constitutes a sane building environment?
From:
Mike Dalessio
Date:
11/29/10 1:05 PM
To:
ruby-ffi@googlegroups.com



On Sat, Nov 27, 2010 at 5:18 AM, James <james.b.thompson@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