[MacRuby] #857: ld: duplicate symbol _vm_ivar_get

MacRuby ruby-noreply at macosforge.org
Wed Aug 18 02:45:49 PDT 2010


#857: ld: duplicate symbol _vm_ivar_get
----------------------------------------+-----------------------------------
 Reporter:  pontus.stromdahl@…          |       Owner:  lsansonetti@…            
     Type:  defect                      |      Status:  new                      
 Priority:  blocker                     |   Milestone:                           
Component:  MacRuby                     |    Keywords:  macrubyc duplicate symbol
----------------------------------------+-----------------------------------
 I tried the sample from the manpage for macrubyc and got this link error.

 {{{
 pontus> echo "def t1; 21; end" > t1.rb
 pontus> echo "def t2; 21; end" > t2.rb
 pontus> echo "require 't1'; require 't2'; p t1+t2" > test.rb
 pontus> macrubyc test.rb t1.rb t2.rb -o test
 unknown: warning: Insecure world writable dir /usr/local in PATH, mode
 040777
 ld: duplicate symbol _vm_ivar_get in t1.o and ./test.o
 collect2: ld returned 1 exit status
 Error when executing `/usr/bin/g++ -o "test" -arch x86_64 -lobjc -licucore
 -lauto -framework Foundation
 -L/Library/Frameworks/MacRuby.framework/Versions/0.7/usr/lib -lmacruby
 "/var/folders/bh/bhgttgWwHdaY7XEJL3VWDE+++TI/-Tmp-/main-40135.o"
 "./test.o" "t1.o" "t2.o"'
 }}}

 the .o files where generated fine
 {{{
 pontus> ls
 t1.o    t1.rb   t2.o    t2.rb   test.o  test.rb
 }}}

 used latest commit
 {{{
 pontus> git log -1
 commit 12b64e1564524cc1652ea77d798e6ab48c0892fe
 Author: lsansonetti at apple.com <lsansonetti at apple.com@23306eb0-4c56-4727
 -a40e-e92c0eb68959>
 Date:   Tue Aug 17 03:26:35 2010 +0000

     when killing the main thread, just exit the program (patch from
 watson1978 at gmail.co

     git-svn-id:
 http://svn.macosforge.org/repository/ruby/MacRuby/trunk@4431 23306eb0-4c56
 }}}

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



More information about the macruby-tickets mailing list