[xml] xmlModulePlatformSymbol() doesn't work on HP-UX
- From: Albert Chin <libxml mlists thewrittenword com>
- To: xml gnome org
- Subject: [xml] xmlModulePlatformSymbol() doesn't work on HP-UX
- Date: Thu, 27 Oct 2005 23:34:43 -0500
HP-UX uses shl_load() and, if the correct patch is installed,
dlopen(). xmlModulePlatformSymbol doesn't work because shl_findsym
wants a pointer to the handle. Patch below.
BTW, why the "errno = 0"? AFAIK, It's not needed.
Tested on HP-UX 10.20, 11.00, 11.11.
--
albert chin (china thewrittenword com)
-- snip snip
Index: xmlmodule.c
===================================================================
--- xmlmodule.c.orig 2005-07-28 18:58:57.000000000 -0500
+++ xmlmodule.c 2005-10-27 23:22:31.524048000 -0500
@@ -277,7 +277,7 @@
int rc;
errno = 0;
- rc = shl_findsym(handle, name, TYPE_PROCEDURE, symbol);
+ rc = shl_findsym(&handle, name, TYPE_PROCEDURE, symbol);
if ((-1 == rc) && (0 == errno)) {
rc = shl_findsym(handle, name, TYPE_DATA, symbol);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]