R-beta: dyn.load update

Douglas Steele dsteele.demon.co.uk at dsteele.demon.co.uk
Sat Oct 10 21:45:51 CEST 1998


Hi Guido,

As you may have seen from my other message, I am now running Win95 B but
am still getting the dyn.load failure already reported.  So far as I can
see, the problem is in the DLL files, not the R.exe.

I have two versions, your version built with the cross-compiler, and one
built with Mingw32 version 1.02 (1.1 has an additional problem).  Your
cross build version works fine.  My locally built one results in the
following previously reported error...

        demo(dyn.load)
        ---- ~~~~~~~~

Type  <Return>   to start : 

> dyn.load(paste(getenv("RHOME"), "demos/dynload/zero.dll", 
            sep = "/")) 
Error in dyn.load(x) : unable to load shared library "C:\R-
0.62.3/demos/dynload/zero.dll"
> 

When I substitute your cross-built zero.dll into the binaries I have
built locally, it (demo(dyn.load)) works OK.  Conversely when I insert
my locally built zero.dll into your binary distribution, the error is
then reproduced.  (When library dll's are similarly exchanged, same
result).

Therefore the problem seems to be the DLL's

The zero.dll files are the same length; 4096.  However, if one obtains a
od -c on both files, and then looks at the diff, the files are clearly a
"bit" different.  The following is an extract from the beginning of the
diff output...

9c9
< 0000200   P   E  \0  \0   L 001 006  \0 336 210 377   5  \0  \0  \0
\0
---
> 0000200   P   E  \0  \0   L 001 006  \0   1 211 037   6  \0  \0  \0
\0
23c23
< 0000600 370 002  \0  \0  \0 020  \0  \0  \0 004  \0  \0  \0 004  \0
\0
---
> 0000600 374 002  \0  \0  \0 020  \0  \0  \0 004  \0  \0  \0 004  \0
\0
25c25
< 0000640   .   d   a   t   a  \0  \0  \0 030  \0  \0  \0  \0      \0
\0
---
> 0000640   .   d   a   t   a  \0  \0  \0 034  \0  \0  \0  \0      \0
\0
28c28
< 0000720 024  \0  \0  \0  \0   0  \0  \0  \0  \0  \0  \0  \0  \0  \0
\0
---
> 0000720 030  \0  \0  \0  \0   0  \0  \0  \0  \0  \0  \0  \0  \0  \0
\0

At which point I come to a halt due to my lack of knowledge on compilers
and DLL's etc.  

(Are the discrepancies at the termination of strings or lines.  Given
the unix/dos difference in string termination, I was wondering if this
might be the problem)

What do you think ?


-- 
Douglas
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help 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-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list