On HP-UX 11 python -v sometimes fails to find the init
method for a
dynamic library. An instance of this can be found
when trying to load
libsip. A possible work around is the following patch:
diff -c -c -r1.1 dynload_hpux.c
*** dynload_hpux.c 2 May 2002 16:04:08 -0000
1.1
--- dynload_hpux.c 2 May 2002 17:12:01 -0000
***************
*** 29,35 ****
flags = BIND_FIRST | BIND_DEFERRED;
if (Py_VerboseFlag) {
! flags = DYNAMIC_PATH | BIND_FIRST |
BIND_IMMEDIATE |
BIND_NONFATAL | BIND_VERBOSE;
printf("shl_load %s\n",pathname);
}
--- 29,35 ----
flags = BIND_FIRST | BIND_DEFERRED;
if (Py_VerboseFlag) {
! flags = BIND_FIRST | BIND_IMMEDIATE |
BIND_NONFATAL | BIND_VERBOSE;
printf("shl_load %s\n",pathname);
}
I do not know why DYNAMIC_PATH is causing the loading
to fail since
the man page for shl_load says:
DYNAMIC_PATH Allow the loader todynamically search for
the library
specified by the path argument. The directories to be
searched are
determined by the +s and +b options of the ld command
used when the
program was linked. On PA64, this is enabled by
default if ld +compat
was not specified.
|