Dynamic loading on HP-UX 10 (yet again)
vdcappel at imec.be
vdcappel at imec.be
Wed Sep 22 10:01:48 EDT 1999
I had a problem with dynamically loading a module compiled with
HP's ANSI C++ (aCC) compiler into python. The dynamic loader couldn't
find a symbol called __head, and indeed this symbol isn't defined in
any library --- I expect a bug in the HP software. However, __head is
not even used anywhere, and therefore this patch to Python 1.5.2 works:
diff -u Python-1.5.2/Python/importdl.c Python-1.5.2_n/Python/importdl.c
--- Python-1.5.2/Python/importdl.c Wed Jan 27 18:53:10 1999
+++ Python-1.5.2_new/Python/importdl.c Wed Sep 22 14:05:03 1999
@@ -725,9 +725,9 @@
shl_t lib;
int flags;
- flags = BIND_FIRST | BIND_DEFERRED;
+ flags = /* BIND_FIRST | */ BIND_DEFERRED;
if (Py_VerboseFlag) {
- flags = DYNAMIC_PATH | BIND_FIRST | BIND_IMMEDIATE |
+ flags = DYNAMIC_PATH | /* BIND_FIRST | */ BIND_IMMEDIATE |
BIND_NONFATAL | BIND_VERBOSE;
printf("shl_load %s\n",pathname);
}
Has anyone else encountered the same problem? Does this patch work
for you?
For the sake of completeness:
$ python
Python 1.5.2 (#6, Sep 22 1999, 14:05:17) [C] on hp-uxB
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>>
$ uname -a
HP-UX yeti B.10.20 E 9000/879 unknown
Happy,
arnie.
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
More information about the Python-list
mailing list