gettext 0.16 fails during "jhbuild bootstrap"
When gcc is set to gcc 4.2.1 (Apple gcc 4.2 build 5553, XCode 3.1 beta, http://www.opensource.apple.com/darwinsource/DevToolsMar2008/, but obtained for OS X 10.4 from http://r.research.att.com/gcc-42-5553-darwin8-all.tar.gz), gettext 0.16 fails to build during "jhbuild bootstrap". It builds fine with gcc 4.0.1 (Apple XCode 2.5). The diff outcomes are listed below, even though both's ld are symlinks pointing to the same /usr/bin/ld.
I get the same error with the above gcc 4.2.1 building gettext 0.16 from GNU source, but it builds gettext 0.17 from source fine. How feasible is it to have "jhbuild bootstrap" build the latter instead?
ls -al /usr/libexec/gcc/i686-apple-darwin8/4.2.1/ld
lrwxrwxrwx 1 root wheel 18 Jul 12 12:30 /usr/libexec/gcc/i686-apple-darwin8/4.2.1/ld -> ../../../../bin/ld
ls -al /usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld
lrwxr-xr-x 1 root wheel 18 Mar 13 11:57 /usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld -> ../../../../bin/ld
with gcc 4.2.1 (Apple gcc 4.2 build 5553, March 2008 Developer Tools, Xcode Tools 3.1 Beta, opensource.apple.com)
...
1232 -version-info 8:1:0 \^M
1233 -rpath /Users/raymond/gtk/inst/lib \^M
1234 -no-undefined^M
1235 /usr/bin/gcc-4.2 -dynamiclib -o .libs/libintl.8.0.1.dylib .libs/bindtextdom.o .libs/dcgettext.o .libs/dgettext.o .libs/gettext.o .libs/finddomain.o .libs/hash-string.o .libs/loadmsgcat.o . libs/localealias.o .libs/textdomain.o .libs/l10nflist.o .libs/explodename.o .libs/dcigettext.o .libs/dcngettext.o .libs/dngettext.o .libs/ngettext.o .libs/plural.o .libs/plural-exp.o .libs/l ocalcharset.o .libs/lock.o .libs/relocatable.o .libs/langprefs.o .libs/localename.o .libs/log.o .libs/printf.o .libs/version.o .libs/osdep.o .libs/intl-compat.o -L/Users/raymond/gtk/inst/li b /usr/lib/libiconv.dylib -lc -Wl,-headerpad_max_install_names -Wl,-framework -Wl,CoreFoundation -install_name /Users/raymond/gtk/inst/lib/libintl.8.dylib -Wl,-compatibility_version -Wl,9
-Wl,-current_version -Wl,9.1^M
1236 /usr/libexec/gcc/i686-apple-darwin8/4.2.1/ld: warning -L: directory name (/Users/raymond/gtk/inst/lib) does not exist^M
1237 /usr/libexec/gcc/i686-apple-darwin8/4.2.1/ld: unknown flag: -compatibility_version^M
1238 collect2: ld returned 1 exit status^M
1239 make[3]: *** [libintl.la] Error 1^M
1240 make[2]: *** [all-recursive] Error 1^M
1241 make[1]: *** [all] Error 2^M
1242 make: *** [all-recursive] Error 1^M
1243 ^[[1m*** error during stage build of gettext: ########## Error running make *** [1/13]^[[0;10m^M
1244 ^M
with gcc 4.0.1 (XCode 2.5)
...
1231 -version-info 8:1:0 \^M
1232 -rpath /Users/raymond/gtk/inst/lib \^M
1233 -no-undefined^M
1234 /usr/bin/gcc-4.0 -dynamiclib -o .libs/libintl.8.0.1.dylib .libs/bindtextdom.o .libs/dcgettext.o .libs/dgettext.o .libs/gettext.o .libs/finddomain.o .libs/hash-string.o .libs/loadmsgcat.o . libs/localealias.o .libs/textdomain.o .libs/l10nflist.o .libs/explodename.o .libs/dcigettext.o .libs/dcngettext.o .libs/dngettext.o .libs/ngettext.o .libs/plural.o .libs/plural-exp.o .libs/l ocalcharset.o .libs/lock.o .libs/relocatable.o .libs/langprefs.o .libs/localename.o .libs/log.o .libs/printf.o .libs/version.o .libs/osdep.o .libs/intl-compat.o -L/Users/raymond/gtk/inst/li b /usr/lib/libiconv.dylib -lc -Wl,-headerpad_max_install_names -Wl,-framework -Wl,CoreFoundation -install_name /Users/raymond/gtk/inst/lib/libintl.8.dylib -Wl,-compatibility_version -Wl,9
-Wl,-current_version -Wl,9.1^M
1235 ld: warning -L: directory name (/Users/raymond/gtk/inst/lib) does not exist^M
1236 ld: warning multiple definitions of symbol _locale_charset^M
1237 .libs/localcharset.o private external definition of _locale_charset in section (__TEXT,__text)^M
1238 /usr/lib/libiconv.dylib(localcharset.o) definition of _locale_charset^M
1239 (cd .libs && rm -f libintl.8.dylib && ln -s libintl.8.0.1.dylib libintl.8.dylib)^M
1240 (cd .libs && rm -f libintl.dylib && ln -s libintl.8.0.1.dylib libintl.dylib)^M
1241 creating libintl.la^M
1242 (cd .libs && rm -f libintl.la && ln -s ../libintl.la libintl.la)^M
1243 /bin/sh ./config.charset 'i386-apple-darwin8.11.1' > t-charset.alias^M
1244 mv t-charset.alias charset.alias^M

Have you tried with a more
Have you tried with a more recent xcode beta? I am not keen on upgrading gettext before it has been widely tested with gtk+/gnome upstream and 0.16 is what's used currently.