pike.git / src / dynamic_load.c

version» Context lines:

pike.git/src/dynamic_load.c:303:    return NULL;    }       handle->image = NULL;    handle->module = NULL;       /* FIXME: Should be fixed to detect if the module already is loaded. */    if ((code = NSCreateObjectFileImageFromFile(module_name,    &handle->image)) !=    NSObjectFileImageSuccess) { - #ifdef PIKE_DEBUG -  fprintf(stderr, "NSCreateObjectFileImageFromFile(\"%s\") failed with %d\n", +  DWERR("NSCreateObjectFileImageFromFile(\"%s\") failed with %d\n",    module_name, code); - #endif /* PIKE_DEBUG */ +     pike_dl_error = "NSCreateObjectFileImageFromFile() failed.";    dlclose(handle);    return NULL;    }       handle->module = NSLinkModule(handle->image, module_name,    how | NSLINKMODULE_OPTION_RETURN_ON_ERROR |    NSLINKMODULE_OPTION_PRIVATE);    if (!handle->module) {    dlclose(handle);