Brendan Simon wrote: > Martin Costabel wrote: [] > Sounds like a pacth to ld is the best option, rather than requiring a > library that is not actually used by the application.
I have now confirmed via a small test case that the behavior of Tiger's ld is indeed like I suspected: At link time it wants to load all indirectly referenced dylibs and to satisfy all undefined symbol references in all dylibs it links to. This is weird, because it doesn't actually generate code for these symbols if they are not referenced in the executable it is creating. Leopard's ld does not do such things (but is has bugs, too, in the same area, perhaps introduced in trying to change Tiger's ld's behavior). > Anyone know if there is an update to ld or how to get it? Although I would characterize this behavior of ld as a bug, I don't think there is any chance that Apple will release a fix for it. First of all, this is *Tiger's* ld, not Leopard's, and I don't think they will ever fix ordinary bugs in the bintools of old OSX versions. The 10.3 linker, for example, has a long-standing bug that prevents you from linking to certain system libraries (QuickTime) in certain situations, and Apple even have had a fixed version of it for years, but they didn't release the fixed version, because it only appeared after Tiger was released. Secondly, they might even argue that this is not a bug, but a feature. > Do the normal Apple software updates include updates to the development > toolchain too (xcode?) ??? No, you have to download them from Apple's developer site. But in this case, the behavior is the same for Xcode-2.5, and I doubt that they will ever relase a later version for Tiger. > Is it possible to install gcc/binutils using fink and use them ??? I am > assuming not, but just wondered :) It wouldn't make much sense. We have to live with the bugs of Apple's bintools and work around them. All we can do is to file complaints at Apple's bugreporter site and hope that they fix them some day. At the moment, the most important thing in this area is to convince them to release a new version of *Leopard's* ld in order to fix a glaring and very annoying bug that they introduced a few weeks before Leopard's release. > So how do I get/install your patch to try out (I'm still new to fink, > and OS X for that matter) ? > Can I just do a "fink update net-snmp-unified" or is it something more > manual ??? Since the package has a maintainer who usually is very active, I didn't want to interfere with his management of this package. So for the moment, you would have to download the modified patch file from the Fink cvs server at <http://fink.cvs.sourceforge.net/*checkout*/fink/experimental/costabel/finkinfo/net-snmp-unified.patch> and replace the file /sw/fink/dists/unstable/main/finkinfo/net/net-snmp-unified.patch with this new file. Then run "fink update net-snmp-unified". If the package maintainer does not respond soon, I will put the modified patch file into the standard cvs repository, and then a subsequent "fink selfupdate" will bring the new version to you automatically. -- Martin ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Fink-users mailing list Fink-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fink-users