mongrel

URL
Rubyforge search (mongrel)
Author(s)
Zed A. Shaw
Summary
A small fast HTTP library and server that runs Rails, Camping, Nitro and Iowa apps.

Add your comment ↓

Comments

mongrel (1.2.0.pre2) is Working
for Lars O. Overskeid (Mac OSX, 9 days ago)

mongrel (mongrel 1.2.0--pre) is Working
for chrispand (GNU/Linux, 17 days ago)

remove mongrel-experimental and cgi_multipart_eof_fix

mongrel (1.2.0-pre2) is Working
for Toxinide (Mac OSX, 17 days ago)

gem install mongrel --pre

mongrel (1.1.5) is Failing
for Evan (Mac OSX, 18 days ago)

gem install mongrel fails when using Ruby 1.9.1-p378.

mongrel (1.1.5) is Failing
for Timofei Bolshakov (GNU/Linux, 21 days ago)

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

mongrel (1.2.0 pre) is Working
for Lucas (GNU/Linux, 2 months ago)

gem install mongrel --pre

mongrel (mongrel-1.2.0.pre2) is Working
for Maz (Mac OSX, 2 months ago)

I finally realized that you need to install it with the --pre option!

mongrel (1.1.5) is Failing
for Maz (Mac OSX, 2 months ago)

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

mongrel (1.2.0.pre2) is Working
for Adam Tretkowski (Windows, 3 months ago)

fauna-mongrel-1.2.0.pre2-5-g02b6e1d
ruby 1.9.1p378 (2010-01-10 revision 26273) [i386-mingw32]

mongrel (1.1.5) is Failing
for jg (GNU/Linux, 3 months ago)

Lucid Lynx x86_64

http11.c:77: error: ‘struct RString’ has no member named ‘ptr’

mongrel (1.2.0.pre2) is Working
for AlekSi (GNU/Linux, 4 months ago)

gem install mongrel -v 1.2.0.pre2 --pre --source http://rubygems.org

mongrel (1.1.6) is Working
for Millisami (GNU/Linux, 4 months ago)

Ubuntu 9.04 Jaunty.

mongrel (1.9.2dev) is Failing
for toddq (GNU/Linux, 4 months ago)

mongrel (1.1.5) is Failing
for xingyu.wang (Windows, 5 months ago)

not work, the lastest version is 1.1.5.
don't found newer 1.1.6.

mongrel (1.1.6) is Working
for Cadderly (GNU/Linux, 5 months ago)

Kubuntu 10.04 alpha 3

sudo gem1.9.1 install mongrel --source http://gems.rubyinstaller.org

mongrel (Ubuntu 9.04) is Working
for Evgeniy Dolzhenko (GNU/Linux, 5 months ago)

ruby 1.9.2dev (2010-03-09 trunk 26858)

gem install mongrel --source http://gems.rubyinstaller.org

Also for Rails 3 don't forget to add the following line to your Gemfile

gem 'mongrel'

so that Rails picks up Mongrel instead of WEBRick

mongrel (1.9.1p378 (2010-01-10 revision 26273)) is Working
for linopolus (GNU/Linux, 6 months ago)

mongrel (1.1.6) is Working
for nelson (GNU/Linux, 6 months ago)

ubuntu 9.10
ruby 1.9.2dev (2009-07-18 trunk 24186)
rvm 0.1.7

gem install mongrel --source http://gems.rubyinstaller.org

mongrel (1.1.6) is Working
for KD Gundermann (Windows, 6 months ago)

Sorry I was hit by a bug regarding rack:
https://rails.lighthouseapp.com/projects/8994/tickets/3685-actionpack-235-gem-declares-incompatibility-with-rack-110

mongrel (1.1.6) is Failing
for KD Gundermann (Windows, 6 months ago)

Running on Win XP with Ruby 1.9.1 and Rails 2.3.5

C:\> mongrel_rails start
** Starting Mongrel listening at 0.0.0.0:3000
** Starting Rails with development environment...
Missing the Rails 2.3.5 gem. Please `gem install -v=2.3.5 rails`, update your RAILS_GEM_VERSION setting in config/environment.rb for the Rails version you do have installed, or comment out RAILS_GEM_VERSION to use the latest version installed.

C:> gem list

*** LOCAL GEMS ***

actionmailer (2.3.5)
actionpack (2.3.5)
activerecord (2.3.5)
activeresource (2.3.5)
activesupport (2.3.5)
archive-tar-minitar (0.5.2)
cgi_multipart_eof_fix (2.5.0)
columnize (0.3.1)
gem_plugin (0.2.3)
json_pure (1.2.0)
linecache19 (0.5.11)
mongrel (1.1.6)
rack (1.1.0)
rails (2.3.5)
rake (0.8.7)
ruby_core_source (0.1.4)
rubyforge (2.0.3)

mongrel (1.1.6) is Working
for Dan (other, 6 months ago)

FreeBSD 8-STABLE, ruby 1.9.1-p378 under rvm 0.1.14:

gem install mongrel --source http://gems.rubyinstaller.org

mongrel (1.1.6) is Working
for Jabari Zakiya (GNU/Linux, 6 months ago)

installed locally for ruby-1.9.1-p378 with rvm

gem install mongrel --source http://gems.rubyinstaller.org

fixed install error with 1.1.5, which wouldn't compile

mongrel (1.1.6) is Working
for jason (Mac OSX, 7 months ago)

thanks!

gem install mongrel --source http://gems.rubyinstaller.org

mongrel (1.1.6) is Working
for Juan Romero Abelleira (Mac OSX, 9 months ago)

Worked with jaigouk's help:
gem install mongrel --source http://gems.rubyinstaller.org

mongrel (1.1.6) is Failing
for mg (GNU/Linux, 10 months ago)

Everytime I start mongrel. I get this message:

** Starting Mongrel listening at 0.0.0.0:3000
** Starting Rails with development environment...
** Rails loaded.
** Loading any Rails specific GemPlugins
** Signals ready. TERM => stop. USR2 => restart. INT => stop (no restart).
** Rails signals registered. HUP => reload (without restart). It might not work well.
** Mongrel 1.1.6 available at 0.0.0.0:3000
** Use CTRL-C to stop.
/usr/local/lib/ruby/gems/1.9.1/gems/mongrel-1.1.6/lib/mongrel.rb:117: [BUG] unknown type 0x22 (0xc given)
ruby 1.9.1p243 (2009-07-16 revision 24175) [i686-linux]

-- control frame ----------
c:0006 p:---- s:0029 b:0029 l:000028 d:000028 CFUNC :initialize
c:0005 p:---- s:0027 b:0027 l:000026 d:000026 CFUNC :new
c:0004 p:0019 s:0024 b:0024 l:000023 d:000023 METHOD /usr/local/lib/ruby/gems/1.9.1/gems/mongrel-1.1.6/lib/mongrel.rb:117
c:0003 p:0012 s:0007 b:0007 l:001404 d:000006 BLOCK /usr/local/lib/ruby/gems/1.9.1/gems/mongrel-1.1.6/lib/mongrel.rb:291
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:---- s:0002 b:0002 l:000001 d:000001 TOP
---------------------------
-- Ruby level backtrace information-----------------------------------------
/usr/local/lib/ruby/gems/1.9.1/gems/mongrel-1.1.6/lib/mongrel.rb:117:in `initialize'
/usr/local/lib/ruby/gems/1.9.1/gems/mongrel-1.1.6/lib/mongrel.rb:117:in `new'
/usr/local/lib/ruby/gems/1.9.1/gems/mongrel-1.1.6/lib/mongrel.rb:117:in `process_client'
/usr/local/lib/ruby/gems/1.9.1/gems/mongrel-1.1.6/lib/mongrel.rb:291:in `block (2 levels) in run'

-- C level backtrace information -------------------------------------------
0x811eee9 ruby19(rb_vm_bugreport+0x49) [0x811eee9]
0x814c55e ruby19 [0x814c55e]
0x814c5eb ruby19(rb_bug+0x2b) [0x814c5eb]
0x814cbbc ruby19(rb_check_type+0xcc) [0x814cbbc]
0xb7be8b6b /usr/local/lib/ruby/gems/1.9.1/gems/mongrel-1.1.6/lib/http11.so(HttpParser_init+0x2b) [0xb7be8b6b]
0x811a9da ruby19 [0x811a9da]
0x8111b56 ruby19(rb_funcall2+0x116) [0x8111b56]
0x8059e03 ruby19(rb_obj_call_init+0x43) [0x8059e03]
0x808216a ruby19(rb_class_new_instance+0x2a) [0x808216a]
0x810fc0e ruby19 [0x810fc0e]
0x811134e ruby19 [0x811134e]
0x8112157 ruby19 [0x8112157]
0x81148f3 ruby19 [0x81148f3]
0x8118abb ruby19 [0x8118abb]
0x8119024 ruby19 [0x8119024]
0x811950f ruby19(rb_vm_invoke_proc+0x7f) [0x811950f]
0x8122942 ruby19 [0x8122942]
0x8122a71 ruby19 [0x8122a71]
0xb7eee0bd /lib/tls/libpthread.so.0 [0xb7eee0bd]
0xb7e2301e /lib/tls/libc.so.6(__clone+0x5e) [0xb7e2301e]

[NOTE]
You may encounter a bug of Ruby interpreter. Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html

Aborted

I have no bloody guess, what causes this - but I'm still searching.

mongrel (1.1.6) is Working
for jaigouk (Mac OSX, 10 months ago)

gem install mongrel --source http://gems.rubyinstaller.org

mongrel is Working
for Awesome! (GNU/Linux, 10 months ago)

mongrel (1.1.6) is Working
for Trung LE (GNU/Linux, 10 months ago)

gem install mongrel --source http://gems.rubyinstaller.org

Ubuntu 9.10 and Ubuntu 9.04

mongrel (1.1.6) is Working
for Chip Miller (Mac OSX, 10 months ago)

So long WEBrick!

gem install mongrel --source http://gems.rubyinstaller.org

mongrel is Working
for tomer doron (Mac OSX, 11 months ago)

gem install mongrel --source http://gems.rubyinstaller.org

mongrel (1.1.6) is Working
for kdavo (Windows, 11 months ago)

gem install mongrel --source http://gems.rubyinstaller.org

mongrel (1.1.6) is Working
for Jason Madigan (Mac OSX, 11 months ago)

gem install mongrel --source http://gems.rubyinstaller.org

mongrel is Working
for taelor (Mac OSX, 11 months ago)

hey, I found the fix!

"sudo gem install thin"

works great!

mongrel (1.9.1p129) is Working
for Todd Fisher (Mac OSX, 11 months ago)

I added a patched version on github... here: http://github.com/taf2/mongrel

mongrel (1.1.5) is Working
for Berin Loritsch (GNU/Linux, 12 months ago)

After following the instructions left by several people here, I had to clean up the remnants of the gem I tried installing before making the fixes.

Once I removed the old mongrel-1.1.5 from my gem repository and installed the new locally created gem it worked just fine.

mongrel (1.1.5) is Working
for pyromaniac (GNU/Linux, 12 months ago)

git clone git://github.com/mongrel/mongrel.git

cd mongrel/ext/http11/

edit the http11.c(11-16):

#ifndef RSTRING_PTR
#define RSTRING_PTR(s) (RSTRING(s))
#endif
#ifndef RSTRING_LEN
#define RSTRING_LEN(s) (RSTRING(s))
#endif

gem install echoe

cd ../..

ruby setup.rb

gem build mongrel.gemspec

gem install mongrel-1.1.2.gem

gemspec is from 1.1.2 %)

mongrel (1.1.5) is Failing
for tc (GNU/Linux, 12 months ago)

Tried all the mentioned fixes,
Changed instances of RSTRING(foo) -> ptr/len

Change case statements

ran ruby extconfig.rb
make
make install

still no look,

any ideas?

mongrel (1.1.5) is Working
for Peter Wagenet (Mac OSX, 12 months ago)

The following worked for me:

git clone git://github.com/mongrel/mongrel.git
cd mongrel
git branch stable_1-1 --track origin/stable_1-1
git checkout stable_1-1

Then open ext/http11/http11.c and replace all instances of
RSTRING(foo)->len with RSTRING_LEN(foo)
and
RSTRING(foo)->ptr with RSTRING_PTR(foo)

Then run
rake install
(ignore the errors)

And then:
sudo gem install pkg/mongrel-1.1.5.gem

Finally, open up the installed gem directory and edit lib/mongrel/handlers.rb fixing the case statement in lines 208-212.

mongrel (1.1.5) is Working
for Lasse Fabisch (GNU/Linux, about 1 year ago)

Ubuntu 9.04
Fails when doing gem install with the described errors (RSTRING(x)->len etc).

Downloaded the source, fixed http11.c (ruby 1.9 macros) and handlers.rb (ruby 1.9 case statement) and then it worked.

mongrel (1.1.5) is Failing
for lateralpunk (Mac OSX, about 1 year ago)

@Ami - I still can't get it to work. I followed your steps, but what do I do after the make install? do i call sudo gem install mongrel? that just gives the same error. please help

mongrel (1.1.5) is Working
for Ami Mahloof (Mac OSX, about 1 year ago)

it is a compile issue easier to do:

git clone git://github.com/mongrel/mongrel.git

cd mongrel/ext/http/

edit the http11.c(lines 11-16) to show:

#ifndef RSTRING_PTR
#define RSTRING_PTR(s) (RSTRING(s))
#endif
#ifndef RSTRING_LEN
#define RSTRING_LEN(s) (RSTRING(s))
#endif

save it from the same directory do sudo ruby extconf.rb && sudo make && sudo make install

that's all im looking into packaging it as a gem
this is a very easy fix , i will try to contact the author of mongrel to put a block that check your Ruby version and then post the correct compilation code

mongrel (1.1.5) is Working
for Scott Andreas (Mac OSX, about 1 year ago)

Works for me on Mac OS X and Ubuntu Server 9.0.4 after applying the patch to http11.c and handlers.rb listed above by Ami Mahloof.

Using it in production at Sunago.org and it's running like a champ!

mongrel (1.1.5) is Failing
for James Thompson (Windows, about 1 year ago)

Failing to build native extension under Cygwin with Ruby 1.9.1 and gems 1.3.4:

$ gem install mongrel
Building native extensions. This could take a while...
ERROR: Error installing mongrel:
ERROR: Failed to build gem native extension.

/usr/local/bin/ruby.exe extconf.rb
checking for main() in -lc... yes
creating Makefile

make
gcc -I. -I/usr/local/include/ruby-1.9.1/i386-cygwin -I/usr/local/include/ruby-1.
9.1/ruby/backward -I/usr/local/include/ruby-1.9.1 -I. -O2 -g -Wall -Wno-parent
heses -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: 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

Gem files will remain installed in /usr/local/lib/ruby/gems/1.9.1/gems/mongrel-1
.1.5 for inspection.
Results logged to /usr/local/lib/ruby/gems/1.9.1/gems/mongrel-1.1.5/ext/http11/g
em_make.out

Nice that someone has patch directions, but those need to be applied to the actual package. They do no good sitting in a comment on this site...

mongrel (1.1.5) is Working
for Billy (Solaris, about 1 year ago)

Confirmed working thanks to the instructions from both Ami Mahloof and alan. Our mongrel cluster is now back up and running on ruby 1.9.1

mongrel (1.1.5) is Working
for Ami Mahloof (Mac OSX, about 1 year ago)

I found it!!! this is the fix!
Alan forgot to mention this should be done INSIDE the installed directory not on the original install files

here's the updated instructions:

1) cd /usr/local/lib/ruby/gems/1.9.1/gems/mongrel-1.1.5/ext/http11

2) sudo vi / mate on http11.c and:

replace line 77 with

for(ch = RSTRING_PTR(f), end = ch + RSTRING_LEN(f); ch < end; ch++) {

replace line 172 with
colon = strchr(RSTRING_PTR(temp), ':');

replace line 174 with

rb_hash_aset(req, global_server_name, rb_str_substr(temp, 0, colon - RSTRING_PTR(temp)));

replce line 176,177

rb_str_substr(temp, colon - RSTRING_PTR(temp)+1,
RSTRING_LEN(temp)));

replace lines 298 299

dptr = RSTRING_PTR(data);
dlen = RSTRING_LEN(data);

3) save the file, close the vi / textmate

4) sudo ruby extconf.rb && sudo make && sudo make install

5) cd ../../lib/mongrel
(or the full path "/usr/local/lib/ruby/gems/1.9.1/gems/mongrel-1.1.5/lib/mongrel"

6) mate / sudo vi handlers.rb

7) fix the case statements in

On lines 208-212, change instances of ": false" to "then false"

8) sudo gem install gem_plugin (else mongrel may hang)

done!

notes:
1) your current rails app config may stop mongrel from running
but i know for sure if you do a new rails app and run mongrel its working

2) sorry windows guys, try to find where the mongrel gem files will be stored for later review when you do gem install mongrel and get the error msg

mongrel (1.1.5) is Failing
for Josh Nichols (Mac OSX, about 1 year ago)

make
i686-apple-darwin9-gcc -I. -I/gentoo/usr/include/ruby19-1.9.1/i686-darwin9 -I/gentoo/usr/include/ruby19-1.9.1/ruby/backward -I/gentoo/usr/include/ruby19-1.9.1 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -O2 -pipe -march=nocona -fno-strict-aliasing -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: 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

mongrel (1.1.5) is Working
for roger (Windows, about 1 year ago)

C:\ruby19\bin>gem install mongrel
Successfully installed mongrel-1.1.5-x86-mingw32
1 gem installed
Installing ri documentation for mongrel-1.1.5-x86-mingw32...
Updating class cache with 384 classes...
Installing RDoc documentation for mongrel-1.1.5-x86-mingw32...

mongrel (1.1.5) is Failing
for Ami Mahloof (Mac OSX, about 1 year ago)

i followed Alan instructions which makes sense but even after removing the http11.bundle and following his steps

seems like gem install mongrel-1.1.5.gem looking at the wrong file to compile
it still complains that ptr is not a member of RSTRING even though i changed it and saved it

does anyone knows where it might be pointing to?

mongrel (1.1.5) is Failing
for Elricstorm (GNU/Linux, about 1 year ago)

ERROR: Failed to build gem native extension

mongrel (1.1.5.1) is Working
for Marcus Wyatt (Mac OSX, about 1 year ago)

I've tried the instructions from Allen and that works.

mongrel (1.1.5.1) is Failing
for Marcus Wyatt (Mac OSX, about 1 year ago)

I get the following error during the make process:

Building native extensions. This could take a while...
ERROR: Error installing mongrel:
ERROR: Failed to build gem native extension.

/opt/ruby-1.9.1-p129/bin/ruby extconf.rb
checking for main() in -lc... yes
creating Makefile

make
gcc -I. -I/opt/ruby-1.9.1-p129/include/ruby-1.9.1/i386-darwin9.7.0 -I/opt/ruby-1.9.1-p129/include/ruby-1.9.1/ruby/backward -I/opt/ruby-1.9.1-p129/include/ruby-1.9.1 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -O2 -g -Wall -Wno-parentheses -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

mongrel (1.1.5) is Working
for alan (Mac OSX, about 1 year ago)

It can be fixed by editing mongrel-1.1.5/ext/http11/http11.c and replacing all instances of :
RSTRING(foo)->len with RSTRING_LEN(foo)
and
RSTRING(foo)->ptr with RSTRING_PTR(foo)

in the same directory, as sudo, run (this might be excessive):
ruby extconf.rb install mongrel
make
make install

go back to mongrel-1.1.5/ and, as sudo, run:
ruby setup.rb
gem build mongrel.gemspec
gem install mongrel.gem

fix the case statements in mongrel-1.1.5/lib/mongrel/handlers.rb
in lines 208-212, change instances of ": false" to "then false"

mongrel (1.1.5) is Failing
for Si (GNU/Linux, about 1 year ago)

ERROR: Error installing mongrel:
ERROR: Failed to build gem native extension.

/usr/bin/ruby extconf.rb install mongrel
checking for main() in -lc... yes
creating Makefile

make
gcc -I. -I/usr/include/ruby-1.9.1/i686-linux -I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I. -D_FILE_OFFSET_BITS=64 -fPIC -O2 -g -Wall -Wno-parentheses -o http11_parser.o -c http11_parser.c
gcc -I. -I/usr/include/ruby-1.9.1/i686-linux -I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I. -D_FILE_OFFSET_BITS=64 -fPIC -O2 -g -Wall -Wno-parentheses -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: In function âheader_doneâ:
http11.c:172: error: âstruct RStringâ has no member named âptrâ
http11.c:172: error: âstruct RStringâ has no member named âptrâ
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

mongrel (1.1.5) is Failing
for Vidmantas (GNU/Linux, about 1 year ago)

Arch Linux:

checking for main() in -lc... yes
creating Makefile

make
gcc -I. -I/usr/include/ruby19-1.9.1/i686-linux -I/usr/include/ruby19-1.9.1/ruby/backward -I/usr/include/ruby19-1.9.1 -I. -D_FILE_OFFSET_BITS=64 -fPIC -march=i686 -mtune=generic -O2 -pipe -O2 -g -Wall -Wno-parentheses -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: In function ‘header_done’:
http11.c:172: error: ‘struct RString’ has no member named ‘ptr’
http11.c:172: error: ‘struct RString’ has no member named ‘ptr’
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

mongrel (?) is Failing
for jerome (Mac OSX, about 1 year ago)

Fastthread 1.0.1 doesn't compile either.

mongrel (1.1.5) is Failing
for Thomas Preymesser (GNU/Linux, about 1 year ago)

installation fails

mongrel (1.1.5) is Failing
for khelll (GNU/Linux, about 1 year ago)

i'm getting this error
Building native extensions. This could take a while...
ERROR: Error installing mongrel:
ERROR: Failed to build gem native extension.

/opt/ruby-1.9.1/bin/ruby extconf.rb install mongrel
creating Makefile

make
gcc -I. -I/opt/ruby-1.9.1/include/ruby-1.9.1/i686-linux -I/opt/ruby-1.9.1/include/ruby-1.9.1/ruby/backward -I/opt/ruby-1.9.1/include/ruby-1.9.1 -I. -D_FILE_OFFSET_BITS=64 -fPIC -O2 -g -Wall -Wno-parentheses -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:
/opt/ruby-1.9.1/include/ruby-1.9.1/ruby/backward/rubysig.h:14:2: warning: #warning rubysig.h is obsolete
fastthread.c:348: error: static declaration of ‘rb_mutex_locked_p’ follows non-static declaration
/opt/ruby-1.9.1/include/ruby-1.9.1/ruby/intern.h:707: error: previous declaration of ‘rb_mutex_locked_p’ was here
fastthread.c:365: error: static declaration of ‘rb_mutex_try_lock’ follows non-static declaration
/opt/ruby-1.9.1/include/ruby-1.9.1/ruby/intern.h:708: 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:405: error: static declaration of ‘rb_mutex_lock’ follows non-static declaration
/opt/ruby-1.9.1/include/ruby-1.9.1/ruby/intern.h:709: 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:462: error: static declaration of ‘rb_mutex_unlock’ follows non-static declaration
/opt/ruby-1.9.1/include/ruby-1.9.1/ruby/intern.h:710: 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:523: error: conflicting types for ‘rb_mutex_synchronize’
/opt/ruby-1.9.1/include/ruby-1.9.1/ruby/intern.h:712: 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 /opt/ruby-1.9.1/lib/ruby/gems/1.9.1/gems/fastthread-1.0.1 for inspection.
Results logged to /opt/ruby-1.9.1/lib/ruby/gems/1.9.1/gems/fastthread-1.0.1/ext/fastthread/gem_make.out

Add your comment




Yes No