[MacRuby] #1053: Need to implement rb_newobj to install the perftools.rb.

MacRuby ruby-noreply at macosforge.org
Thu Dec 16 07:53:23 PST 2010


#1053: Need to implement rb_newobj to install the perftools.rb.
----------------------------------+-----------------------------------------
 Reporter:  watson1978@…          |       Owner:  lsansonetti@…        
     Type:  defect                |      Status:  new                  
 Priority:  blocker               |   Milestone:                       
Component:  MacRuby               |    Keywords:                       
----------------------------------+-----------------------------------------
 {{{
 $ sudo macgem install ruby_core_source

 # I do a fork of an original project because 'require "rubygems"' was
 necessary.

 $ git clone https://github.com/Watson1978/perftools.rb.git
 $ cd perftools.rb/
 $ macgem build perftools.rb.gemspec
 $ sudo macgem install perftools.rb-0.5.4.gem
 -----snip-----
 perftools.c:2:1: warning: this is the location of the previous definition
 perftools.c:96:5: warning: "/*" within comment
 perftools.c: In function ‘rb_stack_trace’:
 perftools.c:140: warning: implicit declaration of function ‘rb_during_gc’
 perftools.c: In function ‘cpuprofiler_gc_mark’:
 perftools.c:279: error: ‘rb_gc_mark’ undeclared (first use in this
 function)
 perftools.c:279: error: (Each undeclared identifier is reported only once
 perftools.c:279: error: for each function it appears in.)
 perftools.c: At top level:
 perftools.c:349: error: expected ‘)’ before ‘event’
 perftools.c: In function ‘methprofiler_setup’:
 perftools.c:363: error: ‘event_handler’ undeclared (first use in this
 function)
 perftools.c:363: error: too few arguments to function ‘rb_add_event_hook’
 perftools.c: In function ‘methprofiler_teardown’:
 perftools.c:376: error: ‘event_handler’ undeclared (first use in this
 function)
 perftools.c: In function ‘objprofiler_setup’:
 perftools.c:421: error: ‘rb_newobj’ undeclared (first use in this
 function)
 perftools.c: In function ‘Init_perftools’:
 perftools.c:491: warning: implicit declaration of function
 ‘rb_set_end_proc’
 make: *** [perftools.o] Error 1
 }}}

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



More information about the macruby-tickets mailing list