[Mongrel] mongrel and fastthread on ruby 1.9?

Joe Carroll
Sat, 22 Nov 2008 23:45:11 -0000

i''ve tried downloading mongrel as a tarball and installing via
setup.rb,
but that doesn''t work either:

---> bin
<--- bin
---> lib
---> lib/mongrel
<--- lib/mongrel
<--- lib
---> ext
---> ext/http11
/usr/local/bin/ruby /usr/local/src/mongrel-1.1.5/ext/http11/extconf.rb
checking for main() in -lc... yes
creating Makefile
---> ext/http11/conftest.dSYM
---> ext/http11/conftest.dSYM/Contents
---> ext/http11/conftest.dSYM/Contents/Resources
---> ext/http11/conftest.dSYM/Contents/Resources/DWARF
<--- ext/http11/conftest.dSYM/Contents/Resources/DWARF
<--- ext/http11/conftest.dSYM/Contents/Resources
<--- ext/http11/conftest.dSYM/Contents
<--- ext/http11/conftest.dSYM
<--- ext/http11
---> ext/http11_java
---> ext/http11_java/org
---> ext/http11_java/org/jruby
---> ext/http11_java/org/jruby/mongrel
<--- ext/http11_java/org/jruby/mongrel
<--- ext/http11_java/org/jruby
<--- ext/http11_java/org
<--- ext/http11_java
<--- ext
---> bin
<--- bin
---> lib
---> lib/mongrel
<--- lib/mongrel
<--- lib
---> ext
---> ext/http11
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/usr/local/src/mongrel-1.1.5/ext/http11 -D_XOPEN_SOURCE
-D_DARWIN_C_SOURCE   -fno-common -D_XOPEN_SOURCE=1 -O2 -g -Wall
-Wno-parentheses  -fno-common -pipe -fno-common  -o http11.o -c http11.c
http11.c: In function ?http_field?:
http11.c:77: error: ?struct RString? has no member named ?ptr?
http11.c:77: error: ?struct RString? has no member named ?len?
http11.c:77: warning: left-hand operand of comma expression has no
effect
http11.c:77: warning: statement with no effect
http11.c: In function ?header_done?:
http11.c:172: error: ?struct RString? has no member named ?ptr?
http11.c:174: error: ?struct RString? has no member named ?ptr?
http11.c:176: error: ?struct RString? has no member named ?ptr?
http11.c:177: error: ?struct RString? has no member named ?len?
http11.c: In function ?HttpParser_execute?:
http11.c:298: error: ?struct RString? has no member named ?ptr?
http11.c:299: error: ?struct RString? has no member named ?len?
make: *** [http11.o] Error 1
./setup.rb:655:in `command'': system("make") failed
(RuntimeError)
  from ./setup.rb:664:in `make''
  from ./setup.rb:1258:in `setup_dir_ext''
  from ./setup.rb:1532:in `block in traverse''
  from ./setup.rb:1549:in `dive_into''
  from ./setup.rb:1530:in `traverse''
  from ./setup.rb:1534:in `block (2 levels) in traverse''
  from ./setup.rb:1533:in `each''
  from ./setup.rb:1533:in `block in traverse''
  from ./setup.rb:1549:in `dive_into''
  from ./setup.rb:1530:in `traverse''
  from ./setup.rb:1524:in `block in exec_task_traverse''
  from ./setup.rb:1519:in `each''
  from ./setup.rb:1519:in `exec_task_traverse''
  from ./setup.rb:1246:in `exec_setup''
  from ./setup.rb:996:in `exec_setup''
  from ./setup.rb:813:in `invoke''
  from ./setup.rb:773:in `invoke''
from ./setup.rb:1578:in ` ''