#49 undefined local variable or method `trans'

closed
kimura wataru
build (7)
5
2009-09-23
2008-10-22
Christian Hansen
No

The build instructions mention that I might run into trouble with "local variable or method `transitive'" during the config phase, but I'm having trouble with `trans'.

This is Intel Mac OS X Tiger. Ruby 1.8 from MacPorts.

Full output:

rowe:~/Desktop/RubyCocoa-0.13.2$ ruby install.rb config
install.rb: entering config phase...
create ext/rubycocoa/extconf.rb
create framework/GeneratedConfig.xcconfig
create framework/src/objc/Version.h
create tests/Makefile
---> framework
create /Users/vest/Desktop/RubyCocoa-0.13.2/framework/src/objc/osx_ruby.h ...
create /Users/vest/Desktop/RubyCocoa-0.13.2/framework/src/objc/osx_intern.h ...
BSROOT="/Users/vest/Desktop/RubyCocoa-0.13.2/framework/bridge-support" CFLAGS="" /opt/local/bin/ruby build.rb
Generating BridgeSupport metadata for: CoreFoundation ...
Collect metadata (11.740489 seconds)
/opt/local/lib/ruby/1.8/rexml/document.rb:187:in `write': undefined local variable or method `trans' for <UNDEFINED> ... </>:REXML::Document (NameError)
from ./gen_bridge_metadata.rb:1516:in `generate_xml'
from ./gen_bridge_metadata.rb:1516:in `open'
from ./gen_bridge_metadata.rb:1516:in `generate_xml'
from ./gen_bridge_metadata.rb:542:in `write'
from build.rb:106
from build.rb:50:in `measure'
from build.rb:104
from build.rb:62:in `each'
from build.rb:62
config failed
hook /Users/vest/Desktop/RubyCocoa-0.13.2/framework/post-config.rb failed:
'system BSROOT="/Users/vest/Desktop/RubyCocoa-0.13.2/framework/bridge-support" CFLAGS="" /opt/local/bin/ruby build.rb' failed
try 'ruby install.rb --help' for usage
rowe:~/Desktop/RubyCocoa-0.13.2$

Discussion

  • kimura wataru
    kimura wataru
    2008-10-27

    This is a bug of Ruby's REXML library.
    Please upgrade your ruby.

     
  • kimura wataru
    kimura wataru
    2009-09-23

    this is a bug of Ruby's REXML library. now, this problem has been fixed.

     
  • kimura wataru
    kimura wataru
    2009-09-23

    • assigned_to: nobody --> kimuraw
    • status: open --> closed