Re: Debugging a problem library & LC_DYLD_INFO_ONLY
Eric Gorr <[email protected]>
| Newsgroups | gmane.comp.macosx.devel |
|---|---|
| Message-ID | <[email protected]> |
Ok. Thank you. On Mar 8, 2010, at 11:08 AM, Shantonu Sen wrote: > You need to get a version of libmine.dylib from your third party that is built with a deployment target of 10.5. > > Shantonu > > Sent from my MacBook > > On Mar 8, 2010, at 7:59 AM, Eric Gorr wrote: > >> So, I've got this library, when I include it in a default project under 10.5, I get the following in the console: >> >> dyld: Library not loaded: @executable_path/../MacOS/libmine.dylib >> Referenced from: /Projects2/My.app/Contents/MacOS/My >> Reason: no suitable image found. Did find: >> /Projects2/My.app/Contents/MacOS/../MacOS/libmine.dylib: unknown required load command 0x80000022 >> /Projects2/My.app/Contents/MacOS/../MacOS/libmine.dylib: unknown required load command 0x80000022 >> >> The same is not true for a default project under 10.6 - that works. >> >> I did not build the library...it was obtained from a third party. >> >> I used otool -l to take a peek into the library and when I do this under 10.5, I see: >> >> Load command 5 >> cmd ?(0x80000022) Unknown load command >> cmdsize 48 >> 00517000 00000acc 00517acc 00000568 00518034 0001dd10 00535d44 00000340 >> 00536084 00096470 >> >> When I do this under 10.6, I see: >> >> Load command 5 >> cmd LC_DYLD_INFO_ONLY >> cmdsize 48 >> rebase_off 5337088 >> rebase_size 2764 >> bind_off 5339852 >> bind_size 1384 >> weak_bind_off 5341236 >> weak_bind_size 122128 >> lazy_bind_off 5463364 >> lazy_bind_size 832 >> export_off 5464196 >> export_size 615536 >> >> Using lipo, I get this information about the file: >> >> ~ $lipo -detailed_info /Projects2/My.app/Contents/MacOS/libmine.dylib >> input file /Projects2/My.app/Contents/MacOS/libmine.dylib is not a fat file >> Non-fat file: /Projects2/My.app/Contents/MacOS/libmine.dylib is architecture: i386 >> >> >> I did find one old thread about LC_DYLD_INFO_ONLY: >> >> http://lists.apple.com/archives/xcode-users/2010/Jan/msg00339.html >> >> but, I am not sure if I understood everything stated. >> >> Can anyone provide some insight? >> >> Thank you. >> >> _______________________________________________ >> MacOSX-dev mailing list >> [email protected] >> http://www.omnigroup.com/mailman/listinfo/macosx-dev >