Ticket #20372 (closed defect: fixed)
glib2 won't build correctly on PPC machines
|Reported by:||mta@…||Owned by:||ryandesign@…|
|Keywords:||Cc:||LantzR@…, michael-macports@…, raphael@…, kioarthurdane@…|
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.
- Owner changed from macports-tickets@… to ryandesign@…
comment:2 in reply to: ↑ description Changed 7 years ago by ryandesign@…
- Status changed from new to assigned
comment:17 Changed 7 years ago by ryandesign@…
- Status changed from assigned to closed
- Resolution set to fixed