Tcl Source Code

View Ticket
Login
Ticket UUID: 627546
Title: missing external error message
Type: Bug Version: obsolete: 8.4.0
Submitter: nobody Created on: 2002-10-23 15:34:18
Subsystem: 40. Dynamic Loading Assigned To: das
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2002-10-29 07:03:35
Resolution: Fixed Closed By: das
    Closed on: 2002-10-29 00:03:35
Description:
mac os x
tcl-dyload.c
TclpFindSymbol

when loading a package with unresolved externals
the only error message is Xxxx_Init not found

NSLOOKUPSYMBOLINIMAGE_OPTION_RETURN_ON_ERROR);
    if(nsSymbol) {
Tcl_DyldModuleHandle *dyldModuleHandle;
proc = NSAddressOfSymbol(nsSymbol);
dyldModuleHandle = (Tcl_DyldModuleHandle *)
ckalloc(sizeof(Tcl_DyldModuleHandle));
if (dyldModuleHandle) {
    dyldModuleHandle->module =
NSModuleForSymbol(nsSymbol);
    dyldModuleHandle->nextModuleHandle =
dyldLoadHandle->firstModuleHandle;
    dyldLoadHandle->firstModuleHandle = dyldModuleHandle;
}

add the following for a more useful error message
    } else {
NSLinkEditErrors editError;
char *name, *msg;
NSLinkEditError(&editError, &errno, &name, &msg);
Tcl_AppendResult(interp, msg, (char *) NULL);
    }
end of addition

    Tcl_DStringFree(&newName);
User Comments: das added on 2002-10-29 07:03:35:

File Added - 34123: tclLoadDyld.diff

Logged In: YES 
user_id=90580

attached patch and checked in.

Attachments: