glib2 won't build correctly on PPC machines
|Reported by:||mta@…||Owned by:||ryandesign (Ryan Schmidt)|
|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.
Change History (19)
Changed 8 years ago by mta@…
comment:1 Changed 8 years ago by mf2k (Frank Schima)
- Owner changed from macports-tickets@… to ryandesign@…
comment:2 in reply to: ↑ description Changed 8 years ago by ryandesign (Ryan Schmidt)
- Status changed from new to assigned
comment:17 Changed 8 years ago by ryandesign (Ryan Schmidt)
- Resolution set to fixed
- Status changed from assigned to closed