[#11439] comments needed for Random class — "NAKAMURA, Hiroshi" <nakahiro@...>

-----BEGIN PGP SIGNED MESSAGE-----

15 messages 2007/06/12

[#11450] Re: new method dispatch rule (matz' proposal) — David Flanagan <david@...>

This is a late response to the very long thread that started back in

17 messages 2007/06/13

[#11482] Ruby Changes Its Mind About Non-Word Characters — James Edward Gray II <james@...>

Does this look like a bug to anyone else?

10 messages 2007/06/16

[#11505] Question about the patchlevel release cycle — Sylvain Joyeux <sylvain.joyeux@...4x.org>

1.8.6 thread support was broken in bad ways. It stayed for three months

20 messages 2007/06/20
[#11512] Re: Question about the patchlevel release cycle — Urabe Shyouhei <shyouhei@...> 2007/06/20

Hi, I'm the 1.8.6 branch manager.

[#11543] Re: Apple reportedly to ship with ruby 1.8.6-p36 unless informed what to patch — James Edward Gray II <james@...>

On Jun 27, 2007, at 4:47 PM, Bill Kelly wrote:

10 messages 2007/06/27

Can't build extensions with g++

From: Daniel Berger <djberg96@...>
Date: 2007-06-18 15:20:01 UTC
List: ruby-core #11499
Hi,

Ruby 1.8.6-p36
OS X 10.4.9

$ g++ -v
Using built-in specs.
Target: i686-apple-darwin8
Configured with: /private/var/tmp/gcc/gcc-5363.obj~28/src/configure 
--disable-checking -enable-werror --prefix=/usr --mandir=/share/man 
--enable-languages=c,objc,c++,obj-c++ 
--program-transform-name=/^[cg][^.-]*$/s/$/-4.0/ 
--with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/lib 
--build=powerpc-apple-darwin8 --with-arch=nocona --with-tune=generic 
--program-prefix= --host=i686-apple-darwin8 --target=i686-apple-darwin8
Thread model: posix
gcc version 4.0.1 (Apple Computer, Inc. build 5363)

Sample code:

#include "ruby.h"

void Init_cvector(){
    VALUE cVector = rb_define_class("CVector", rb_cObject);
}

Whenever I try to build something as simple as the above extension I get 
this error:


g++ -Wall -I. -I/usr/local/lib/ruby/1.8/i686-darwin8.9.1 
-I/usr/local/lib/ruby/1.8/i686-darwin8.9.1 -I.  -fno-common -g -O2 -pipe 
-fno-common  -c cvector.c
/usr/local/lib/ruby/1.8/i686-darwin8.9.1/intern.h:207: error: use of 
enum 'rb_thread_status' without previous declaration
/usr/local/lib/ruby/1.8/i686-darwin8.9.1/intern.h:207: error: invalid 
type in declaration before ';' token

Any ideas?

Thanks,

Dan

In This Thread

Prev Next