site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Cédric Luthi _______________________________________________ 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... Hello list, Here is my problem: /usr/lib/libxml2.2.dylib (as of Mac OS X 10.4.7) is version 20616 and this is the version used by the Foundation framework. It contains a very annoying bug that may validate invalid documents :-( This bug vanished in later version of libxml2. My own compiled version (20626) of libxml2 is working fine and I need to use this one instead of /usr/lib/libxml2.2.dylib. I don't want to ask users their admin password to mess with /usr/lib/libxml2.2.dylib, so I'd like to use dyld capabilities instead. My libxml2.2.6.26.dylib is compiled to load in my application with the proper install_name: $ otool -L XMLToy XMLToy: @executable_path/../lib/libxml2.2.6.26.dylib (compatibility version 9.0.0, current version 9.26.0) /System/Library/Frameworks/Foundation.framework/Versions/C/ Foundation (compatibility version 300.0.0, current version 567.23.0) /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 88.1.3) I have checked that my libxml2.2.6.26.dylib is loaded by setting DYLD_PRINT_LIBRARIES, but the system version is used anyway. I'm not very familiar with dyld but I guess it doesn't work because /usr/lib/ libxml2.2.dylib uses two level namespace. Any solution in order Foundation to use my lib instead of the system lib without messing with the /usr/lib/libxml2.2.dylib file ? This email sent to site_archiver@lists.apple.com
participants (1)
-
Cédric Luthi