Please send such problems, with solution, to the package maintainers. They do not occur generally and seem to be due to the system headers on your particular system. Only users of `FreeBSd' will be able to troubleshoot, i.e. you.
In this particular case, I think the package needs to use its own headers only if the system ones are not available (via a configure test), and suggest you try deleting GRASS/src/include/rpc. (Roger: the zlib.h and zconf.h are also worrying, as they might mismatch the libz used.) On Wed, 27 Oct 2004, Paul English wrote: > > Hi, > I'm running R 2.0 installed from the source port on FreeBSd 4.10 There is no R 2.0 and no `source port'. There are sources of R 2.0.0. > and I'm having trouble installing the GRASS package. Following is the > procedure plus errors: > > > options(CRAN="http://cran.us.r-project.org") > > install.packages("GRASS") > <download snipped> > downloaded 186Kb > > * Installing *source* package 'GRASS' ... > ** libs > cc -I/usr/local/lib/R/include -DR_GRASS_INTERFACE -I./include > -I/usr/local/include -mieee-fp -fPIC -O -pipe -c R_G_init.c -o > R_G_init.o > cc -I/usr/local/lib/R/include -DR_GRASS_INTERFACE -I./include > -I/usr/local/include -mieee-fp -fPIC -O -pipe -c adj_cellhd.c -o > adj_cellhd.o > cc -I/usr/local/lib/R/include -DR_GRASS_INTERFACE -I./include > -I/usr/local/include -mieee-fp -fPIC -O -pipe -c alloc.c -o alloc.o > cc -I/usr/local/lib/R/include -DR_GRASS_INTERFACE -I./include > -I/usr/local/include -mieee-fp -fPIC -O -pipe -c alloc_cell.c -o > alloc_cell.o > cc -I/usr/local/lib/R/include -DR_GRASS_INTERFACE -I./include > -I/usr/local/include -mieee-fp -fPIC -O -pipe -c ascii_chk.c -o > ascii_chk.o > cc -I/usr/local/lib/R/include -DR_GRASS_INTERFACE -I./include > -I/usr/local/include -mieee-fp -fPIC -O -pipe -c auto_mask.c -o > auto_mask.o > In file included from include/G.h:3, > from auto_mask.c:18: > include/rpc/types.h:87: redefinition of `caddr_t' > /usr/include/sys/types.h:69: `caddr_t' previously declared here > include/rpc/types.h:89: redefinition of `u_int' > /usr/include/sys/types.h:54: `u_int' previously declared here > include/rpc/types.h:90: redefinition of `u_long' > /usr/include/sys/types.h:55: `u_long' previously declared here > include/rpc/types.h:91: redefinition of `u_short' > /usr/include/sys/types.h:53: `u_short' previously declared here > *** Error code 1 > > Stop in /tmp/R.INSTALL.35187/GRASS/src. > ERROR: compilation failed for package 'GRASS' > ** Removing '/usr/local/lib/R/library/GRASS' > ** Restoring previous '/usr/local/lib/R/library/GRASS' > > Delete downloaded files (y/N)? > The packages are in /tmp/RtmpaUoyEh/Rinstdir446b9b3d > Warning message: > Installation of package GRASS had non-zero exit status in: > install.packages("GRASS") > > Thanks, > Paul > > ______________________________________________ > [EMAIL PROTECTED] mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html > > -- Brian D. Ripley, [EMAIL PROTECTED] Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595 ______________________________________________ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
