
Does not install on Ruby 1.9.3
Reported by Konstantin Haase | May 3rd, 2011 @ 06:04 AM
See Sinatra CI.
Comments and changes to this ticket
-
Prem Sichanugrist (sikachu) August 3rd, 2011 @ 05:34 PM
I'm unable to install it on the current Ruby 1.9.3-preview1 too. Here's the error message:
Installing RedCloth (4.2.7) with native extensions /Users/sikachu/.rvm/rubies/ruby-1.9.3-preview1/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:551:in `rescue in block in build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError) /Users/sikachu/.rvm/rubies/ruby-1.9.3-preview1/bin/ruby extconf.rb checking for main() in -lc... yes creating Makefile make compiling redcloth_attributes.c cc1: warnings being treated as errors ragel/redcloth_attributes.c.rl: In function ‘redcloth_attributes’: ragel/redcloth_attributes.c.rl:45: warning: ISO C90 forbids mixed declarations and code ragel/redcloth_attributes.c.rl: In function ‘redcloth_link_attributes’: ragel/redcloth_attributes.c.rl:54: warning: ISO C90 forbids mixed declarations and code make: *** [redcloth_attributes.o] Error 1 Gem files will remain installed in /Users/sikachu/.rvm/gems/ruby-1.9.3-preview1/gems/RedCloth-4.2.7 for inspection. Results logged to /Users/sikachu/.rvm/gems/ruby-1.9.3-preview1/gems/RedCloth-4.2.7/ext/redcloth_scan/gem_make.out from /Users/sikachu/.rvm/rubies/ruby-1.9.3-preview1/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:529:in `block in build_extensions' from /Users/sikachu/.rvm/rubies/ruby-1.9.3-preview1/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:504:in `each' from /Users/sikachu/.rvm/rubies/ruby-1.9.3-preview1/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:504:in `build_extensions' from /Users/sikachu/.rvm/rubies/ruby-1.9.3-preview1/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:180:in `install' from /Users/sikachu/.rvm/gems/ruby-1.9.3-preview1/gems/bundler-1.0.15/lib/bundler/source.rb:101:in `block in install' from /Users/sikachu/.rvm/gems/ruby-1.9.3-preview1/gems/bundler-1.0.15/lib/bundler/rubygems_integration.rb:78:in `preserve_paths' from /Users/sikachu/.rvm/gems/ruby-1.9.3-preview1/gems/bundler-1.0.15/lib/bundler/source.rb:91:in `install' from /Users/sikachu/.rvm/gems/ruby-1.9.3-preview1/gems/bundler-1.0.15/lib/bundler/installer.rb:58:in `block (2 levels) in run' from /Users/sikachu/.rvm/gems/ruby-1.9.3-preview1/gems/bundler-1.0.15/lib/bundler/rubygems_integration.rb:93:in `with_build_args' from /Users/sikachu/.rvm/gems/ruby-1.9.3-preview1/gems/bundler-1.0.15/lib/bundler/installer.rb:57:in `block in run' from /Users/sikachu/.rvm/gems/ruby-1.9.3-preview1/gems/bundler-1.0.15/lib/bundler/spec_set.rb:12:in `block in each' from /Users/sikachu/.rvm/gems/ruby-1.9.3-preview1/gems/bundler-1.0.15/lib/bundler/spec_set.rb:12:in `each' from /Users/sikachu/.rvm/gems/ruby-1.9.3-preview1/gems/bundler-1.0.15/lib/bundler/spec_set.rb:12:in `each' from /Users/sikachu/.rvm/gems/ruby-1.9.3-preview1/gems/bundler-1.0.15/lib/bundler/installer.rb:49:in `run' from /Users/sikachu/.rvm/gems/ruby-1.9.3-preview1/gems/bundler-1.0.15/lib/bundler/installer.rb:8:in `install' from /Users/sikachu/.rvm/gems/ruby-1.9.3-preview1/gems/bundler-1.0.15/lib/bundler/cli.rb:222:in `install' from /Users/sikachu/.rvm/gems/ruby-1.9.3-preview1/gems/bundler-1.0.15/lib/bundler/vendor/thor/task.rb:22:in `run' from /Users/sikachu/.rvm/gems/ruby-1.9.3-preview1/gems/bundler-1.0.15/lib/bundler/vendor/thor/invocation.rb:118:in `invoke_task' from /Users/sikachu/.rvm/gems/ruby-1.9.3-preview1/gems/bundler-1.0.15/lib/bundler/vendor/thor.rb:246:in `dispatch' from /Users/sikachu/.rvm/gems/ruby-1.9.3-preview1/gems/bundler-1.0.15/lib/bundler/vendor/thor/base.rb:389:in `start' from /Users/sikachu/.rvm/gems/ruby-1.9.3-preview1/gems/bundler-1.0.15/bin/bundle:13:in `<top (required)>' from /Users/sikachu/.rvm/gems/ruby-1.9.3-preview1/bin/bundle:19:in `load' from /Users/sikachu/.rvm/gems/ruby-1.9.3-preview1/bin/bundle:19:in `<main>'
-
Prem Sichanugrist (sikachu) August 3rd, 2011 @ 06:29 PM
So, it seems like there're warnings that treated as error. If I clone the project and run the @rake compile@, I then got this:
[master][~/Projects/redcloth] rake compile /Users/sikachu/.rvm/gems/ruby-1.9.3-preview1@global/gems/rake-0.8.7/lib/rake/alt_system.rb:32: Use RbConfig instead of obsolete and deprecated Config. (in /Users/sikachu/Projects/redcloth) mkdir -p tmp/x86_64-darwin11.0.0/redcloth_scan/1.9.3 ragel -C -T0 ragel/redcloth_scan.c.rl -o ext/redcloth_scan/redcloth_scan.c ragel -C -T0 ragel/redcloth_inline.c.rl -o ext/redcloth_scan/redcloth_inline.c ragel -C -T0 ragel/redcloth_attributes.c.rl -o ext/redcloth_scan/redcloth_attributes.c cd tmp/x86_64-darwin11.0.0/redcloth_scan/1.9.3 /Users/sikachu/.rvm/rubies/ruby-1.9.3-preview1/bin/ruby -I. ../../../../ext/redcloth_scan/extconf.rb checking for main() in -lc... yes creating Makefile cd - cd tmp/x86_64-darwin11.0.0/redcloth_scan/1.9.3 make compiling ../../../../ext/redcloth_scan/redcloth_attributes.c ragel/redcloth_attributes.c.rl: In function ‘redcloth_attributes’: ragel/redcloth_attributes.c.rl:45: warning: ISO C90 forbids mixed declarations and code ragel/redcloth_attributes.c.rl: In function ‘redcloth_link_attributes’: ragel/redcloth_attributes.c.rl:54: warning: ISO C90 forbids mixed declarations and code compiling ../../../../ext/redcloth_scan/redcloth_inline.c ragel/redcloth_inline.c.rl: In function ‘red_parse_title’: ragel/redcloth_inline.c.rl:68: warning: ISO C90 forbids mixed declarations and code ragel/redcloth_inline.c.rl: In function ‘red_block’: ragel/redcloth_inline.c.rl:99: warning: ISO C90 forbids mixed declarations and code compiling ../../../../ext/redcloth_scan/redcloth_scan.c ragel/redcloth_scan.c.rl: In function ‘redcloth_transform’: ragel/redcloth_scan.c.rl:42: warning: ISO C90 forbids mixed declarations and code ragel/redcloth_scan.c.rl:46: warning: ISO C90 forbids mixed declarations and code ragel/redcloth_scan.rl:138: warning: ISO C90 forbids mixed declarations and code ragel/redcloth_scan.rl:138: warning: ISO C90 forbids mixed declarations and code NONE:9: warning: ISO C90 forbids mixed declarations and code NONE:9: warning: ISO C90 forbids mixed declarations and code ragel/redcloth_scan.rl:154: warning: ISO C90 forbids mixed declarations and code ragel/redcloth_scan.rl:154: warning: ISO C90 forbids mixed declarations and code ragel/redcloth_scan.rl:153: warning: ISO C90 forbids mixed declarations and code ragel/redcloth_scan.rl:153: warning: ISO C90 forbids mixed declarations and code ragel/redcloth_scan.rl:154: warning: ISO C90 forbids mixed declarations and code ragel/redcloth_scan.rl:154: warning: ISO C90 forbids mixed declarations and code NONE:3: warning: ISO C90 forbids mixed declarations and code NONE:3: warning: ISO C90 forbids mixed declarations and code ragel/redcloth_scan.rl:180: warning: ISO C90 forbids mixed declarations and code ragel/redcloth_scan.rl:180: warning: ISO C90 forbids mixed declarations and code NONE:21: warning: ISO C90 forbids mixed declarations and code NONE:21: warning: ISO C90 forbids mixed declarations and code ragel/redcloth_scan.c.rl: In function ‘redcloth_html_esc’: ragel/redcloth_scan.c.rl:86: warning: ISO C90 forbids mixed declarations and code ragel/redcloth_scan.c.rl:95: warning: ISO C90 forbids mixed declarations and code ragel/redcloth_scan.c.rl: In function ‘redcloth_latex_esc’: ragel/redcloth_scan.c.rl:155: warning: ISO C90 forbids mixed declarations and code ragel/redcloth_scan.c.rl:184: warning: ISO C90 forbids mixed declarations and code ragel/redcloth_scan.c.rl: In function ‘redcloth_to’: ragel/redcloth_scan.c.rl:206: warning: ISO C90 forbids mixed declarations and code linking shared-object redcloth_scan.bundle cd - install -c tmp/x86_64-darwin11.0.0/redcloth_scan/1.9.3/redcloth_scan.bundle lib/redcloth_scan.bundle
I've tried to move stuff around to silence the warning, but apparently I stuck.
-
Prem Sichanugrist (sikachu) August 3rd, 2011 @ 06:41 PM
Sorry that I come back so many times. I just trying to solve this one myself in the mean time.
So, if you really want to install the gem now you can do this:
gem install RedCloth -- --with-cflags="-std=c99"
If you're using Bundler, you'll then config it using
bundle config
bundle config build.RedCloth --with-cflags="-std=c99"
-
Jason Garber August 17th, 2011 @ 02:49 PM
Try RedCloth 4.2.8 that I just pushed. Close if that fixes it.
-
Jeff Kreeftmeijer September 13th, 2011 @ 10:29 AM
4.2.8 fixed this issue for me. Thanks Jason, I think this one can be closed. :)
-
-
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
RedCloth is a Ruby library for converting Textile into HTML