[MacRuby] #1236: Need ENCODING_GET to install the RedCloth.

MacRuby ruby-noreply at macosforge.org
Tue Apr 19 23:55:38 PDT 2011


#1236: Need ENCODING_GET to install the RedCloth.
----------------------------------+-----------------------------------------
 Reporter:  watson1978@…          |       Owner:  lsansonetti@…        
     Type:  defect                |      Status:  new                  
 Priority:  major                 |   Milestone:                       
Component:  MacRuby               |    Keywords:                       
----------------------------------+-----------------------------------------
 {{{
 $ sudo macgem install RedCloth
 WARNING:  You are installing a new version of /usr/bin/redcloth.
 This file already exists with a different shebang, possibly from a
 different
 ruby implementation or version. This operation may break the script.
 Do you still wish to continue? [yn]  y
 Building native extensions.  This could take a while...
 ERROR:  Error installing RedCloth:
         ERROR: Failed to build gem native extension.

 /Library/Frameworks/MacRuby.framework/Versions/0.11/usr/bin/macruby
 extconf.rb
 checking for main() in -lc... yes
 creating Makefile

 make
 /usr/bin/gcc -I.
 -I/Library/Frameworks/MacRuby.framework/Versions/0.11/usr/include/ruby-1.9.2
 /universal-darwin10.3
 -I/Library/Frameworks/MacRuby.framework/Versions/0.11/usr/include/ruby-1.9.2/ruby/backward
 -I/Library/Frameworks/MacRuby.framework/Versions/0.11/usr/include/ruby-1.9.2
 -I.  -fno-common -arch x86_64 -fexceptions -fno-common -pipe -O3 -g -Wall
 -O0 -Wall -Werror -arch x86_64 -o redcloth_attributes.o -c
 redcloth_attributes.c
 cc1: warnings being treated as errors
 ragel/redcloth_common.rl: In function ‘redcloth_attribute_parser’:
 ragel/redcloth_common.rl:9: warning: implicit declaration of function
 ‘ENCODING_GET’
 ragel/redcloth_attributes.c.rl: In function ‘redcloth_attributes’:
 ragel/redcloth_attributes.c.rl:46: warning: passing argument 3 of
 ‘redcloth_attribute_parser’ discards qualifiers from pointer target type
 ragel/redcloth_attributes.c.rl:46: warning: passing argument 4 of
 ‘redcloth_attribute_parser’ discards qualifiers from pointer target type
 ragel/redcloth_attributes.c.rl: In function ‘redcloth_link_attributes’:
 ragel/redcloth_attributes.c.rl:55: warning: passing argument 3 of
 ‘redcloth_attribute_parser’ discards qualifiers from pointer target type
 ragel/redcloth_attributes.c.rl:55: warning: passing argument 4 of
 ‘redcloth_attribute_parser’ discards qualifiers from pointer target type
 make: *** [redcloth_attributes.o] Error 1


 Gem files will remain installed in
 /Library/Frameworks/MacRuby.framework/Versions/0.11/usr/lib/ruby/Gems/1.9.2/gems/RedCloth-4.2.7
 for inspection.
 Results logged to
 /Library/Frameworks/MacRuby.framework/Versions/0.11/usr/lib/ruby/Gems/1.9.2/gems/RedCloth-4.2.7/ext/redcloth_scan/gem_make.out
 }}}

 It seems that MacRuby has not ENCODING_GET() macro.
 {{{
 $grep ENCODING_GET -r *
 parse.c:14282:  if (idx != ENCODING_GET(str) &&
 parse.y:9024:   if (idx != ENCODING_GET(str) &&
 y.tab.c:14280:  if (idx != ENCODING_GET(str) &&
 }}}

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/1236>
MacRuby <http://macruby.org/>



More information about the macruby-tickets mailing list