I'm trying to work around a problem where the latest update of Mac OS X (10.5.8) has a broken XQuery.framework. I've discovered that replacing the XQuery.framework on Mac OS X 10.5.8 with a version from Mac OS X 10.5.7 solves all the problems.

I'd like to embed the XQuery.framework from Mac OS X 10.5.7 in my application and force it to be used over the faulty system version on Mac OS X 10.5.8. I've managed to get it into the application bundle and setting the environment variables DYLD_PRINT_LIBRARIES and DYLD_PRINT_LIBRARIES_POST_LAUNCH show that it's being loaded but it doesn't appear that the framework is being used. GDB also shows that the symbols are loaded, I can create breakpoints on functions in the XQuery.framework. I'm wondering why when I call -[NSXMLNode objectsForXQuery:error:] it doesn't call out to the corresponding functions in the XQuery.framework unless it's been loaded from /System/ Library/PrivateFrameworks?

dyld: loaded: /Users/mlink/Code/code-cocoaref/Bug7037807/build/Debug/ Bug7037807.app/Contents/MacOS/Bug7037807 dyld: loaded: /Developer/Applications/Xcode.app/Contents/Resources/../ PlugIns/GDBMIDebugging.xcplugin/Contents/Resources/ PBGDBIntrospectionSupport.A.dylib dyld: loaded: /System/Library/Frameworks/Cocoa.framework/Versions/A/ Cocoa dyld: loaded: /Users/mlink/Code/code-cocoaref/Bug7037807/build/Debug/ Bug7037807.app/Contents/MacOS/../Frameworks/XQuery.framework/Versions/ A/XQuery
dyld: loaded: /usr/lib/libgcc_s.1.dylib
...

(gdb) info break
Num Type           Disp Enb Address    What
1   breakpoint     keep y   0x00116df6 <pcre_compile+6>
2   breakpoint     keep y   0x00116587 <pcre_compile2+6>
3   breakpoint     keep y   0x0010efab <pcre_exec+9>
4 breakpoint keep y 0x000dee6e <-[XQueryFunctionCall evaluateWithContext:]+6>
(gdb) info sym 0x00116df6
pcre_compile + 6 in section LC_SEGMENT.__TEXT.__text of /Users/mlink/ Code/code-cocoaref/Bug7037807/build/Debug/Bug7037807.app/Contents/ Frameworks/XQuery.framework/Versions/A/XQuery
(gdb) info sym 0x000dee6e
-[XQueryFunctionCall evaluateWithContext:] + 6 in section LC_SEGMENT.__TEXT.__text of /Users/mlink/Code/code-cocoaref/Bug7037807/ build/Debug/Bug7037807.app/Contents/Frameworks/XQuery.framework/ Versions/A/XQuery

Anyone know how I might be able to get this to work?

--
Michael
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to