glib configure endianness detect fails on PPC

Although I had no problems building with jhbuild before, I now ran into troubles while building gtk. To be specific I got following error:

gtk-update-icon-cache "The generated cache was invalid"

After some googling I found out that the problem is glibs configure script that didn't detect the endianess correctly. In fact I noticed following line:

configure: WARNING: Could not determine endianness.

It turned out that "endian.h" could not be found, so I changed the include in the configure.in file to "machine/endian.h" and after that every thing compiled fine. I'm afraid this patch breaks the build on ppc-linux though...

Following bug report fixed the problem for ppc-linux in the past but I guess not for MacOS: https://bugzilla.redhat.com/show_bug.cgi?id=453566

So it seems that this is more a general glib bug. I find it odd though that nobody here has complained before...

So how do we proceed and has anyone else seen this problem?

Cheers,
Ezra.

The best way is to file a

The best way is to file a bug in GNOME's bugzilla against the glib product.

I will do that... Thanx.

I will do that... Thanx.

So, after reading the

So, after reading the appropriate bug report (http://bugzilla.gnome.org/show_bug.cgi?id=552003) I tried using autoconf 2.63 and the problem didn't occur anymore. I believe building universal binaries will still fail though...

However, I think that adding the latest autoconf to jhbuild's bootstrap.modules does the trick for now...

Easy.

Ah, good catch! You could

Ah, good catch! You could file a bug against jhbuild in gnome's bugzilla then :)

done.

done.

Excellent. It's 579304, and

Excellent. It's 579304, and it's already fixed.