Skip to content

install of new maptools package fails

3 messages · William McCoy, Roger Bivand, Clint Bowman

#
I tried updating my installed packages on R today since the new rgeos 
and maptools packages were out.  The update of the maptools package 
failed with the message:

 > ERROR: installing package indices failed

I then tried removing the old maptools package and reinstalling it with 
depend = TRUE to be sure I had all the needed dependencies.  However it 
still fails with:

 > ** building package indices ...
 > Warning: file 'gpcholes.rda' has magic number ''
 >    Use of save versions prior to 2 is deprecated
 > Error : bad restore file magic number (file may be corrupted) -- no 
data loaded
 > ERROR: installing package indices failed
 > * removing ?/usr/share/R/library/maptools?


I'm not sure what the underlying cause is.  Can someone suggest a solution?

The full text of the install.packages() output is below.


Bill
#
On Tue, 22 Mar 2011, William McCoy wrote:

            
Which system - output of sessionInfo() and other relevant details, please? 
The release has checked cleanly pre-submission on Redhat 5 x86_64, but I 
don't see the -m64 flag for my regularly configured R on compiled code. It 
checked OK on pre-release R 2.13 on 32-bit Fedora 14, and on the 
development R 2.14, without the errors you list.

We can take this offlist until it is resolved if you like.

Roger

  
    
#
I have a failure installing rgeos:
R version 2.12.2 (2011-02-25)
Platform: x86_64-redhat-linux-gnu (64-bit)

locale:
  [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C
  [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8
  [5] LC_MONETARY=C              LC_MESSAGES=en_US.UTF-8
  [7] LC_PAPER=en_US.UTF-8       LC_NAME=C
  [9] LC_ADDRESS=C               LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods 
base

loaded via a namespace (and not attached):
[1] tcltk_2.12.2 tools_2.12.2

First error during the install (following a series of warnings):

gcc -m64 -std=gnu99 -I/usr/include/R -I/usr/include 
-I/usr/local/include -I"/usr/lib64/R/library/sp/include"   -fpic 
-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions 
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -c 
rgeos_misc.c -o rgeos_misc.o
rgeos_misc.c: In function ?rgeos_area?:
rgeos_misc.c:5: warning: passing argument 4 of ?rgeos_miscfunc? 
from incompatible pointer type
rgeos_misc.c: In function ?rgeos_length?:
rgeos_misc.c:9: warning: passing argument 4 of ?rgeos_miscfunc? 
from incompatible pointer type
rgeos_misc.c: In function ?rgeos_distance?:
rgeos_misc.c:51: warning: passing argument 5 of 
?rgeos_distancefunc? from incompatible pointer type
rgeos_misc.c: In function ?rgeos_hausdorffdistance?:
rgeos_misc.c:55: error: ?GEOSHausdorffDistance_r? undeclared (first 
use in this function)
rgeos_misc.c:55: error: (Each undeclared identifier is reported 
only once
rgeos_misc.c:55: error: for each function it appears in.)
rgeos_misc.c: In function ?rgeos_hausdorffdistancedensify?:
rgeos_misc.c:137: error: ?GEOSHausdorffDistanceDensify_r? 
undeclared (first use in this function)
make: *** [rgeos_misc.o] Error 1
ERROR: compilation failed for package ?rgeos?

Not that it matters but I see "-m64" twice in the gcc command line.

Clint