[MacRuby] #941: curb gem does not build under MacRuby

MacRuby ruby-noreply at macosforge.org
Thu Oct 7 19:43:32 PDT 2010


#941: curb gem does not build under MacRuby
------------------------------------+---------------------------------------
 Reporter:  mrada@…                 |       Owner:  lsansonetti@…        
     Type:  defect                  |      Status:  new                  
 Priority:  blocker                 |   Milestone:                       
Component:  MacRuby                 |    Keywords:                       
------------------------------------+---------------------------------------
 Ripped almost verbatim from the macruby-dev mailing list:

 curb does not compile successfully for MacRuby. Normally you have to
 compile curb with a universal binary of libcurl to get it running on MRI,
 so I suspect that architecture incompatibility has something to do with
 why the build is failing. I get the following when I try to install with
 macgem:

 /usr/bin/gcc -I.
 -I/Library/Frameworks/MacRuby.framework/Versions/0.7/usr/include/ruby-1.9.2
 /universal-darwin10.0
 -I/Library/Frameworks/MacRuby.framework/Versions/0.7/usr/include/ruby-1.9.2/ruby/backward
 -I/Library/Frameworks/MacRuby.framework/Versions/0.7/usr/include/ruby-1.9.2
 -I. -DRUBY_EXTCONF_H=\"curb_config.h\"  -fno-common -arch i386 -arch
 x86_64 -fexceptions -fno-common -pipe -O3 -g -Wall -I/opt/local/include -g
 -Wall -arch i386 -arch x86_64 -o curb_multi.o -c curb_multi.c
 curb_multi.c: In function ‘rb_curl_multi_mark_all_easy’:
 curb_multi.c:38: warning: implicit declaration of function ‘rb_gc_mark’
 curb_multi.c: In function ‘curl_multi_free’:
 curb_multi.c:64: warning: implicit declaration of function ‘RHASH’
 curb_multi.c:64: error: invalid type argument of ‘->’
 curb_multi.c: In function ‘rb_curl_multi_mark_all_easy’:
 curb_multi.c:38: warning: implicit declaration of function ‘rb_gc_mark’
 curb_multi.c: In function ‘curl_multi_free’:
 curb_multi.c:64: warning: implicit declaration of function ‘RHASH’
 curb_multi.c:64: error: invalid type argument of ‘->’
 lipo: can't open input file: /var/tmp//ccbAYK9V.out (No such file or
 directory)
 make: *** [curb_multi.o] Error 1

 > It looks like this C extension is using an element of the MRI C API that
 we do not support yet. I am guessing it's poking at the RHASH structure,
 which we won't probably support any time soon.

 >> Should I create a ticket for this?

 >>> Why not... but I don't think it will be ever fixed :(

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



More information about the macruby-tickets mailing list