[Rd] Error diagnostics in hpdlfcn.c
Peter Kleiweg
kleiweg@let.rug.nl
Mon, 15 Jan 2001 23:53:47 +0100 (CET)
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) {
--
Peter Kleiweg
http://www.let.rug.nl/~kleiweg/
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._