Skip navigation.
 
mlRe: urgent dyld question
FROM : Shantonu Sen
DATE : Thu Nov 21 06:35:52 2002

On Tuesday, November 12, 2002, at 08:33 AM, Alex Rice wrote:
> # otool -L Emacs.app/Contents/MacOS/Emacs
> Emacs.app/Contents/MacOS/Emacs:
>          /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
> (compatibility version 2.0.0, current version 122.0.0)
>          /usr/lib/libncurses.5.dylib (compatibility version 5.0.0,
> current version 5.0.0)
>          /usr/lib/libSystem.B.dylib (compatibility version 1.0.0,
> current version 60.2.0)


What is the output of otool -Llhv on your binary?

> # export DYLD_PREBIND_DEBUG=1
> # open /Applications/Emacs/Emacs.app
> dyld: in map_image() determined the system shared regions ARE used
> dyld: open: prebinding enabled
> dyld: /Applications/Emacs/Emacs.app/Contents/MacOS/Emacs: prebinding
> disabled because time stamp of library:
> /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon did not
> match
> dyld: 51 two-level prebound libraries used out of 51
> 2002-11-12 09:28:51.735 Console[5008] Exception raised during posting
> of notification.  Ignored.  exception: *** NSRunStorage,
> _NSBlockNumberForIndex(): index (45429) beyond array bounds (45429)


I would not have expected this output from "open foo.app", since open
just messages someone else (the Window Server) to launch the
application.

> # redo_prebinding  Emacs.app/Contents/MacOS/Emacs dyld: in map_image()
> determined the system shared regions ARE used
> dyld: redo_prebinding: prebinding enabled
> redo_prebinding: file not in an order that can be processed (hints
> table out of place): Emacs.app/Contents/MacOS/Emacs


Did you compile this with CodeWarrior? I think it places the Mach-O
headers in a different order than the vendor ld, but this should be
mostly harmless...

Can you run the application under gdb and see what happens? just
gdb Emacs.app/Contents/MacOS/Emacs
run
<wait for it to die>
backtrace

Shantonu


Related mailsAuthorDate
mlurgent dyld question Alex Rice Nov 12, 08:33
mlRe: urgent dyld question Alex Rice Nov 12, 08:47
mlRe: urgent dyld question Shantonu Sen Nov 21, 06:35
mlRe: urgent dyld question Alex Rice Nov 23, 22:59
mlRe: urgent dyld question Shantonu Sen Nov 24, 16:46
mlRe: urgent dyld question Alex Rice Nov 27, 09:08