[Mongrel] mongrel and fastthread on ruby 1.9?

Joe Carroll
Sat, 22 Nov 2008 23:26:26 -0000

Roger Pack wrote:
> I believe it''s
> gem install something -- --disable-fastthread

nope. that didn''t help. but thanks anyway.

still getting the same:

$ sudo /usr/local/bin/gem install mongrel -- --disable-fastthread
Building native extensions.  This could take a while...
ERROR:  Error installing mongrel:
  ERROR: Failed to build gem native extension.

/usr/local/bin/ruby extconf.rb install mongrel -- --disable-fastthread
creating Makefile

make
gcc -I. -I/usr/local/include/ruby-1.9.1/i386-darwin9.5.0
-I/usr/local/include/ruby-1.9.1/ruby/backward
-I/usr/local/include/ruby-1.9.1 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE
-fno-common -D_XOPEN_SOURCE=1 -O2 -g -Wall -Wno-parentheses  -fno-common
-pipe -fno-common  -o fastthread.o -c fastthread.c
fastthread.c:13:20: error: intern.h: No such file or directory
In file included from fastthread.c:14:
/usr/local/include/ruby-1.9.1/ruby/backward/rubysig.h:14:2: warning:
#warning rubysig.h is obsolete
fastthread.c:349: error: static declaration of ?rb_mutex_locked_p?
follows non-static declaration
/usr/local/include/ruby-1.9.1/ruby/intern.h:674: error: previous
declaration of ?rb_mutex_locked_p? was here
fastthread.c:366: error: static declaration of ?rb_mutex_try_lock?
follows non-static declaration
/usr/local/include/ruby-1.9.1/ruby/intern.h:675: error: previous
declaration of ?rb_mutex_try_lock? was here
fastthread.c: In function ?lock_mutex?:
fastthread.c:392: error: ?rb_thread_critical? undeclared (first use in
this function)
fastthread.c:392: error: (Each undeclared identifier is reported only
once
fastthread.c:392: error: for each function it appears in.)
fastthread.c: At top level:
fastthread.c:406: error: static declaration of ?rb_mutex_lock? follows
non-static declaration
/usr/local/include/ruby-1.9.1/ruby/intern.h:676: error: previous
declaration of ?rb_mutex_lock? was here
fastthread.c: In function ?set_critical?:
fastthread.c:438: error: ?rb_thread_critical? undeclared (first use in
this function)
fastthread.c: In function ?unlock_mutex?:
fastthread.c:447: error: ?rb_thread_critical? undeclared (first use in
this function)
fastthread.c: At top level:
fastthread.c:463: error: static declaration of ?rb_mutex_unlock? follows
non-static declaration
/usr/local/include/ruby-1.9.1/ruby/intern.h:677: error: previous
declaration of ?rb_mutex_unlock? was here
fastthread.c: In function ?rb_mutex_exclusive_unlock?:
fastthread.c:499: error: ?rb_thread_critical? undeclared (first use in
this function)
fastthread.c: At top level:
fastthread.c:524: error: static declaration of ?rb_mutex_synchronize?
follows non-static declaration
/usr/local/include/ruby-1.9.1/ruby/intern.h:679: error: previous
declaration of ?rb_mutex_synchronize? was here
fastthread.c: In function ?wait_condvar?:
fastthread.c:620: error: ?rb_thread_critical? undeclared (first use in
this function)
fastthread.c:626: warning: passing argument 1 of ?rb_ensure? from
incompatible pointer type
fastthread.c: In function ?rb_condvar_broadcast?:
fastthread.c:684: error: ?rb_thread_critical? undeclared (first use in
this function)
fastthread.c: In function ?signal_condvar?:
fastthread.c:703: error: ?rb_thread_critical? undeclared (first use in
this function)
fastthread.c: In function ?rb_queue_marshal_load?:
fastthread.c:824: error: ?struct RArray? has no member named ?len?
fastthread.c:828: error: ?struct RArray? has no member named ?ptr?
fastthread.c:828: error: ?struct RArray? has no member named ?len?
fastthread.c: In function ?Init_fastthread?:
fastthread.c:1182: error: ?rb_thread_critical? undeclared (first use in
this function)
make: *** [fastthread.o] Error 1


Gem files will remain installed in
/usr/local/lib/ruby/gems/1.9.1/gems/fastthread-1.0.1 for inspection.
Results logged to
/usr/local/lib/ruby/gems/1.9.1/gems/fastthread-1.0.1/ext/fastthread/gem_make.ou