site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com On Jul 13, 2008, at 10:33 AM, Terry Lambert wrote: -- Terry On Jul 13, 2008, at 7:08 AM, YJZ <vollkommen@gmx.net> wrote: Hello, [/usr/bin]$ ls -al libtool -r-xr-xr-x 1 root wheel 293636 Sep 20 2007 libtool _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/bwaters%40nrao.edu _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... Use the -v flag to get GCC to tell you exactly what it's doing (which ld it's calling etc). I use the stock GCC 4.2 on Tiger all the time to build our data- analysis application. I vaguely recall running into this "compatibility_version" problem. For some reason I remember running into some command-line flags that took options like this: compatibility-version -- note the words delimited with dashes, rather than underscores... I'll dig through my MacPorts patches/hacks to see if I can dig that up... I suspect it is because the 4.2 compiler used ld64 rather than ld by default, and it doesn't take the compatibility_version flag. On Mac OS X 10.4.11, when gcc is set to Apple gcc 4.2 build 5553 (http://r.research.att.com/gcc-42-5553-darwin8-all.tar.gz ), the following error is encountered when the "jhbuild bootstrap" step on "http://developer.imendio.com/projects/gtk-macosx/build-instructions " tries to build gettext 1.6 (step 1 of 13) . Switching to gcc 4.0.1 that comes from XCode 2.5 (either "sudo gcc_select 4.0" or "export CC=/usr/bin/gcc-4.0") gets through "jhbuild bootstrap" just fine, though both 4.2.1 and 4.0.1's ld are just symlinks pointing to /usr/bin/ld. The few hits on google point to libtool, since - compatibility_version applies to it. Included below are "jhbuild bootstrap" outputs contrasting the diff with gcc 4.2.1 and 4.0.1. The diff starts around line 1235-1237. Could anyone shed some light on why the error only occurs with 4.2.1 and how to resolve it? lrwxr-xr-x 1 root wheel 7 Jul 13 02:45 cc -> gcc-4.2 lrwxr-xr-x 1 root wheel 7 Jul 13 02:45 gcc -> gcc-4.2 -r-xr-xr-x 1 root wheel 260616 Apr 20 2007 gcc-3.3 -rwxr-xr-x 1 root wheel 80168 Apr 20 2007 gcc-4.0 -rwxr-xr-x 1 root wheel 97064 May 7 12:33 gcc-4.2 -rwxr-xr-x 1 root wheel 343972 Apr 20 2007 i686-apple- darwin8-gcc-4.0.1 -rwxr-xr-x 1 root wheel 512072 May 7 12:33 i686-apple- darwin8-gcc-4.2.1 -rwxr-xr-x 1 root wheel 352256 Apr 20 2007 powerpc- apple-darwin8-gcc-4.0.1 -rwxr-xr-x 1 root wheel 516168 May 7 12:33 powerpc- apple-darwin8-gcc-4.2.1 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) ... 1228 /usr/bin/gcc-4.2 -c -DLOCALEDIR=\"/Users/raymond/gtk/inst/ share/locale\" -DLOCALE_ALIAS_PATH=\"/Users/raymond/gtk/inst/share/ locale\" -DLIBDIR=\"/Users/raymond/gtk/inst/lib\" - DBUILDING_LIB INTL -DBUILDING_DLL -DIN_LIBINTL - DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\"/Users/raymond/ gtk/inst/lib\" -DNO_XMALLOC - Dset_relocation_prefix=libintl_set_relocation_prefix - Drelocat e=libintl_relocate -DDEPENDS_ON_LIBICONV=1 - DHAVE_CONFIG_H -I. -I. -I.. -I/Users/raymond/gtk/inst/include -O0 - gstabs+3 -std=gnu89 -fvisibility=hidden ./intl-compat.c -fno- common -DPIC -o . libs/intl-compat.o^M 1229 /bin/sh ../libtool --mode=link \^M 1230 /usr/bin/gcc-4.2 -I/Users/raymond/gtk/inst/include -O0 - gstabs+3 -std=gnu89 -fvisibility=hidden -L/Users/raymond/gtk/inst/ lib -Wl,-headerpad_max_install_names -o libintl.la \^M 1231 bindtextdom.lo dcgettext.lo dgettext.lo gettext.lo finddomain.lo hash-string.lo loadmsgcat.lo localealias.lo textdomain.lo l10nflist.lo explodename.lo dcigettext.lo dcngettext.lo dngettext .lo ngettext.lo plural.lo plural- exp.lo localcharset.lo lock.lo relocatable.lo langprefs.lo localename.lo log.lo printf.lo version.lo osdep.lo intl-compat.lo - liconv -Wl,-framework -Wl,CoreF oundation -lc \^M 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) ... 1227 /usr/bin/gcc-4.0 -c -DLOCALEDIR=\"/Users/raymond/gtk/inst/ share/locale\" -DLOCALE_ALIAS_PATH=\"/Users/raymond/gtk/inst/share/ locale\" -DLIBDIR=\"/Users/raymond/gtk/inst/lib\" - DBUILDING_LIB INTL -DBUILDING_DLL -DIN_LIBINTL - DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\"/Users/raymond/ gtk/inst/lib\" -DNO_XMALLOC - Dset_relocation_prefix=libintl_set_relocation_prefix - Drelocat e=libintl_relocate -DDEPENDS_ON_LIBICONV=1 - DHAVE_CONFIG_H -I. -I. -I.. -I/Users/raymond/gtk/inst/include -O0 - gstabs+3 -std=gnu89 -fvisibility=hidden ./intl-compat.c -fno- common -DPIC -o . libs/intl-compat.o^M 1228 /bin/sh ../libtool --mode=link \^M 1229 /usr/bin/gcc-4.0 -I/Users/raymond/gtk/inst/include -O0 - gstabs+3 -std=gnu89 -fvisibility=hidden -L/Users/raymond/gtk/inst/ lib -Wl,-headerpad_max_install_names -o libintl.la \^M 1230 bindtextdom.lo dcgettext.lo dgettext.lo gettext.lo finddomain.lo hash-string.lo loadmsgcat.lo localealias.lo textdomain.lo l10nflist.lo explodename.lo dcigettext.lo dcngettext.lo dngettext .lo ngettext.lo plural.lo plural- exp.lo localcharset.lo lock.lo relocatable.lo langprefs.lo localename.lo log.lo printf.lo version.lo osdep.lo intl-compat.lo - liconv -Wl,-framework -Wl,CoreF oundation -lc \^M 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 1245 sed -e '/^#/d' -e 's/@''PACKAGE''@/gettext-runtime/g' ./ref- add.sin > t-ref-add.sed^M -- GMX Kostenlose Spiele: Einfach online spielen und Spaß haben mit Pastry Passion! http://games.entertainment.gmx.net/de/entertainment/games/free/puzzle/616919... _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/tlambert %40apple.com This email sent to tlambert@apple.com This email sent to bwaters@nrao.edu This email sent to site_archiver@lists.apple.com