Skip to content
Prev 4934 / 63424 Next

Error diagnostics in hpdlfcn.c

A while back I had trouble running R on HP-UX. R couldn't load
shared libraries, and I had no idea what was wrong. The problem
was in the system libraries. I didn't discover this until
someone suggested to add a request for diagnostic messages in
the call to shl_load. 

The problem was solved. It might be a good idea to include this
request for diagnostic messages in the distribution of R, it
might help other people encountering similar problems.


This is for R version 1.2.1:


--- src/unix/hpdlfcn.c  Mon Jan 15 17:12:58 2001
+++ src/unix/hpdlfcn.c.new      Mon Jan 15 17:13:45 2001
@@ -133,7 +133,7 @@
   if (fname == NULL)
     handle = PROG_HANDLE;
   else {
-    handle = shl_load(fname, mode, 0L);
+    handle = shl_load(fname, mode | BIND_VERBOSE, 0L);
     if (handle != NULL) {
       if ((entry = find_lib_entry(handle)) == NULL) {
        if ((entry = new_lib_entry(handle)) == NULL) {