222 |
/* Couldn't initialise the module system; diagnose and exit. */ |
/* Couldn't initialise the module system; diagnose and exit. */ |
223 |
if (errors) |
if (errors) |
224 |
M4ERROR ((EXIT_FAILURE, 0, |
M4ERROR ((EXIT_FAILURE, 0, |
225 |
_("ERROR: failed to initialise module loader: %s"), |
_("failed to initialise module loader: %s"), |
226 |
m4_module_dlerror ())); |
m4_module_dlerror ())); |
227 |
|
|
228 |
#ifdef DEBUG_MODULES |
#ifdef DEBUG_MODULES |
274 |
{ |
{ |
275 |
/* Couldn't open the module; diagnose and exit. */ |
/* Couldn't open the module; diagnose and exit. */ |
276 |
M4ERROR ((EXIT_FAILURE, 0, |
M4ERROR ((EXIT_FAILURE, 0, |
277 |
_("ERROR: cannot open module `%s': %s"), |
_("cannot open module `%s': %s"), |
278 |
name, m4_module_dlerror ())); |
name, m4_module_dlerror ())); |
279 |
} |
} |
280 |
|
|
284 |
if we were about to diagnose a module with no entry points. */ |
if we were about to diagnose a module with no entry points. */ |
285 |
if (!lt_dlsym (handle, M4_FINISH_SYMBOL)) |
if (!lt_dlsym (handle, M4_FINISH_SYMBOL)) |
286 |
M4ERROR ((EXIT_FAILURE, 0, |
M4ERROR ((EXIT_FAILURE, 0, |
287 |
_("ERROR: module `%s' has no entry points"), |
_("module `%s' has no entry points"), |
288 |
name)); |
name)); |
289 |
} |
} |
290 |
|
|
374 |
if (errors) |
if (errors) |
375 |
{ |
{ |
376 |
M4ERROR ((EXIT_FAILURE, 0, |
M4ERROR ((EXIT_FAILURE, 0, |
377 |
_("ERROR: cannot close module `%s': %s"), |
_("cannot close module `%s': %s"), |
378 |
name, m4_module_dlerror ())); |
name, m4_module_dlerror ())); |
379 |
} |
} |
380 |
|
|
402 |
if (lt_dlexit() != 0) |
if (lt_dlexit() != 0) |
403 |
{ |
{ |
404 |
M4ERROR ((EXIT_FAILURE, 0, |
M4ERROR ((EXIT_FAILURE, 0, |
405 |
_("ERROR: cannot close modules: %s"), |
_("cannot close modules: %s"), |
406 |
m4_module_dlerror ())); |
m4_module_dlerror ())); |
407 |
} |
} |
408 |
} |
} |
517 |
if (errors) |
if (errors) |
518 |
{ |
{ |
519 |
M4ERROR ((EXIT_FAILURE, 0, |
M4ERROR ((EXIT_FAILURE, 0, |
520 |
_("ERROR: cannot unload module `%s': %s"), |
_("cannot unload module `%s': %s"), |
521 |
name, m4_module_dlerror ())); |
name, m4_module_dlerror ())); |
522 |
} |
} |
523 |
} |
} |
556 |
if (errors) |
if (errors) |
557 |
{ |
{ |
558 |
M4ERROR ((EXIT_FAILURE, 0, |
M4ERROR ((EXIT_FAILURE, 0, |
559 |
_("ERROR: cannot unload all modules: %s"), |
_("cannot unload all modules: %s"), |
560 |
m4_module_dlerror ())); |
m4_module_dlerror ())); |
561 |
} |
} |
562 |
} |
} |