[MacPorts] #20372: glib2 won't build correctly on PPC machines
MacPorts
noreply at macports.org
Sun Jul 19 20:41:09 PDT 2009
#20372: glib2 won't build correctly on PPC machines
---------------------------+------------------------------------------------
Reporter: mta@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 1.8.0
Keywords: | Port: glib2
---------------------------+------------------------------------------------
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. 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.
--
Ticket URL: <http://trac.macports.org/ticket/20372>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list