[MacPorts] #20372: glib2 won't build correctly on PPC machines

MacPorts noreply at macports.org
Sun Jul 19 23:21:39 PDT 2009


#20372: glib2 won't build correctly on PPC machines
---------------------------+------------------------------------------------
 Reporter:  mta@…          |       Owner:  ryandesign@…           
     Type:  defect         |      Status:  assigned               
 Priority:  Normal         |   Milestone:                         
Component:  ports          |     Version:  1.8.0                  
 Keywords:                 |        Port:  glib2                  
---------------------------+------------------------------------------------
Changes (by ryandesign@…):

  * status:  new => assigned


Comment:

 Replying to [ticket:20372 mta@…]:
 > The configure script for glib2 can't figure out the endianness of the
 machine if there is a "-arch" parameter in CFLAGS and assumes little-
 endian with a warning.  This causes problems in both the universal and
 non-universal builds of glib2 (for different reasons).  Sometime recently
 MacPorts was changed to provide a -arch flag even in a non-universal
 build, this causes this build to assume a little-endian machine in all
 cases.

 Maybe r53217.

 > Of course on a universal build the -arch parameter is necessary and the
 Portfile contains some code to deal with this.  However it is incorrect
 and the universal build also assumes a little-endian machine in all cases.
 >
 > Since the build appears to succeed (if you don't see the warning from
 configure), but assumes little-endian architecture, this is a somewhat
 subtle bug.  It generates header files which may cause other programs to
 build incorrectly and libraries which mostly work, but fail for some
 calls.  After fixing this bug you need to rebuild everything that depends
 on glib2 to be sure things will work again.

 We had this problem before and fixed it; see #15816. But it must've broken
 again in a newer glib version. I discovered this myself again recently
 (using MacPorts 1.7.1 I'm pretty sure) and thought I had filed a ticket
 but I can't find it now.

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


More information about the macports-tickets mailing list