[MacPorts] #24240: rb-rubygems needs a zlib ruby module

MacPorts noreply at macports.org
Sun Mar 28 16:16:59 PDT 2010


#24240: rb-rubygems needs a zlib ruby module
------------------------------+---------------------------------------------
 Reporter:  cdavis@…          |       Owner:  kimuraw@…           
     Type:  defect            |      Status:  new                 
 Priority:  Normal            |   Milestone:                      
Component:  ports             |     Version:  1.8.2               
 Keywords:                    |        Port:  ruby rb-rubygems    
------------------------------+---------------------------------------------

Comment(by cdavis@…):

 I did some research, and I figured out what's happening.

 Ruby actually comes with a zlib extension module, but for some reason, it
 isn't getting built. Looking at the 'mkmf.log' file, I find (lines broken
 up to enhance readability):

 {{{
 have_header: checking for zlib.h... -------------------- no

 "/usr/bin/gcc-4.2 -E -I../.. -I../../. -I../.././ext/zlib
 -I/opt/local/include -D_XOPEN_SOURCE
 -D_DARWIN_C_SOURCE  -I/opt/local/include -O2 -arch x86_64 -arch i386
 -fno-common -pipe -fno-common
 conftest.c -o conftest.i"
 gcc-4.2: -E, -S, -save-temps and -M options are not allowed with multiple
 -arch flags
 checked program was:
 /* begin */
 1: #include <zlib.h>
 /* end */
 }}}

 The problem is that, once again, somebody stupidly passed -arch flags at
 the same time as the -E flag, and instead of ignoring the -arch flags, GCC
 stupidly insists that we run -E without them.

-- 
Ticket URL: <http://trac.macports.org/ticket/24240#comment:2>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list