-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 9/28/10 1:53 PM, Martin Costabel wrote: > On 28/09/10 18:44, Lizzy Wilbanks wrote: > > [] >> $ /usr/bin/gcc-4.0 --version >> dyld: Library not loaded: /usr/lib/libiconv.2.dylib >> Referenced from: /usr/bin/i686-apple-darwin10-gcc-4.0.1 >> Reason: no suitable image found. Did find: >> /usr/lib/libiconv.2.dylib: mach-o, but wrong architecture >> /usr/local/lib/libiconv.2.dylib: mach-o, but wrong architecture >> /usr/lib/libiconv.2.dylib: mach-o, but wrong architecture >> >> >> $ file /usr/lib/libiconv.2.dylib >> /usr/lib/libiconv.2.dylib: Mach-O 64-bit dynamically linked shared >> library x86_64 > > I am bouncing this back to the list, because I don't know what could be > the cause that your /usr/bin/gcc-4.0 is 32bit
gcc-4.0 being 32-bit is in fact normal on 10.6: $ file /usr/bin/gcc-4.0 /usr/bin/gcc-4.0: Mach-O universal binary with 2 architectures /usr/bin/gcc-4.0 (for architecture i386): Mach-O executable i386 /usr/bin/gcc-4.0 (for architecture ppc7400): Mach-O executable ppc and your > /usr/lib/libiconv.2.dylib is only 64bit and not "fat". Something must > have gone wrong in your system installation. > > The fink bootstrap process tests whether /usr/bin/gcc-4.0 is not too old > (this used to be important on older OSX versions), even if "gcc" is in > reality /usr/bin/gcc-4.2. And in your case, /usr/bin/gcc-4.0 does not > work, because it doesn't find the dynamic libraries it needs. Fink then > concludes that it is too old, which is of course not very intelligent. > > Maybe someone else has an idea. > > Anyway, reinstalling the xcode tools might repair your gcc-4.0, although > I doubt that /usr/lib/libiconv.2.dylib is installed from the xcode > tools. It is part of the base system, I believe. > On 10.6.4 I have: $ /usr/bin/file /usr/lib/libiconv.2.dylib /usr/lib/libiconv.2.dylib: Mach-O universal binary with 3 architectures /usr/lib/libiconv.2.dylib (for architecture x86_64): Mach-O 64-bit dynamically linked shared library x86_64 /usr/lib/libiconv.2.dylib (for architecture i386): Mach-O dynamically linked shared library i386 /usr/lib/libiconv.2.dylib (for architecture ppc7400): Mach-O dynamically linked shared library ppc $ ls -l /usr/lib/libiconv.2.dylib - -r-xr-xr-x 1 root wheel 3205760 2010-02-10 23:49 /usr/lib/libiconv.2.dylib $ pkgutil --file-info /usr/lib/libiconv.2.dylib volume: / path: /usr/lib/libiconv.2.dylib pkgid: com.apple.pkg.BaseSystem pkg-version: 10.6.0.1.1.1249291854 install-time: 1282520957 uid: 0 gid: 0 mode: 644 pkgid: com.apple.pkg.update.os.10.6.4.combo pkg-version: 1.0.1.1249367152 install-time: 1282528670 uid: 0 gid: 0 mode: 555 And even on 10.5.8, libiconv.2.dylib is supposed to be fat (it's even fatter, in fact, because it has ppc64). Could you have installed something from a third-party source which overwrote the system's libiconv (and perhaps other libraries)? I'd recommend at the very least manually re-downloading the 10.6.4 Combo update (since Software Update won't see it any more). Then run sudo pkgutil --forget com.apple.pkg.update.os.10.6.4.combo to unregister it. Then reinstall the update from your download, and use file /usr/lib/libiconv.2.dylib again to make sure that it has all three architectures in it. - -- Alexander Hansen Fink User Liaison -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkyiNuQACgkQB8UpO3rKjQ9DaACeO8ZToRMWc4rjns259LUG0bdO 2ScAnifFGIsAKZmDlOLuIC4yzNOT46V2 =ziKf -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev _______________________________________________ Fink-users mailing list Fink-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fink-users