[Rd] make: sockconn.c; make check: eval-etc.R; make install: $(EXPORTFILES) (PR#8809)

p.c.j.kleiweg at rug.nl p.c.j.kleiweg at rug.nl
Tue Apr 25 20:16:59 CEST 2006


    I got several errors while installing R version 2.3.0

    ========

    One error while running 'make':

make[4]: Binnengaan van map `/home/peter/tmp/R-2.3.0/src/modules/internet'
gcc -I. -I../../../src/include -I../../../src/include -I/usr/local/include -DHAVE_CONFIG_H  -fpic  -g -O2  -c Rsock.c -o Rsock.o
gcc -I. -I../../../src/include -I../../../src/include -I/usr/local/include -DHAVE_CONFIG_H  -fpic  -g -O2  -c internet.c -o internet.o
gcc -I. -I../../../src/include -I../../../src/include -I/usr/local/include -DHAVE_CONFIG_H  -fpic  -g -O2  -c nanoftp.c -o nanoftp.o
gcc -I. -I../../../src/include -I../../../src/include -I/usr/local/include -DHAVE_CONFIG_H  -fpic  -g -O2  -c nanohttp.c -o nanohttp.o
gcc -I. -I../../../src/include -I../../../src/include -I/usr/local/include -DHAVE_CONFIG_H  -fpic  -g -O2  -c sock.c -o sock.o
gcc -I. -I../../../src/include -I../../../src/include -I/usr/local/include -DHAVE_CONFIG_H  -fpic  -g -O2  -c sockconn.c -o sockconn.o
In file included from sockconn.c:34:
sock.h:38: parse error before `Sock_read'
sock.h:38: warning: data definition has no type or storage class
sock.h:39: parse error before `Sock_write'
sock.h:39: warning: data definition has no type or storage class
make[4]: *** [sockconn.o] Fout 1
make[4]: Weggaan uit map `/home/peter/tmp/R-2.3.0/src/modules/internet'
make[3]: *** [R] Fout 2
make[3]: Weggaan uit map `/home/peter/tmp/R-2.3.0/src/modules/internet'
make[2]: *** [R] Fout 1
make[2]: Weggaan uit map `/home/peter/tmp/R-2.3.0/src/modules'
make[1]: *** [R] Fout 1
make[1]: Weggaan uit map `/home/peter/tmp/R-2.3.0/src'
make: *** [R] Fout 1


    I fixed this error by applying this patch:

--- sockconn.c  Mon Apr 10 00:19:54 2006
+++ sockconn.c.new      Tue Apr 25 18:26:02 2006
@@ -31,6 +31,7 @@
 #include <Defn.h>
 #include <Rconnections.h>
 #include <R_ext/R-ftp-http.h>
+#include <sys/types.h>
 #include "sock.h"
 
 static void listencleanup(void *data)

    ========

    An error while running 'make check'. I didn't try to fix this.

make[2]: Binnengaan van map `/home/peter/tmp/R-2.3.0/tests'
updating test dependencies
make[3]: Binnengaan van map `/home/peter/tmp/R-2.3.0/tests'
make[3]: Weggaan uit map `/home/peter/tmp/R-2.3.0/tests'
running strict specific tests
make[3]: Binnengaan van map `/home/peter/tmp/R-2.3.0/tests'
running code in 'eval-etc.R' ... OK
comparing 'eval-etc.Rout' to './eval-etc.Rout.save' ...WARNING: ignoring environment value of R_HOME
1d0
< WARNING: ignoring environment value of R_HOME
make[3]: *** [eval-etc.Rout] Fout 1
make[3]: Weggaan uit map `/home/peter/tmp/R-2.3.0/tests'
make[2]: *** [test-Specific] Fout 2
make[2]: Weggaan uit map `/home/peter/tmp/R-2.3.0/tests'
make[1]: *** [test-all-basics] Fout 1
make[1]: Weggaan uit map `/home/peter/tmp/R-2.3.0/tests'
make: *** [check] Fout 2

    ========

    An error while running 'make install', fixed by removing the
    three line command from etc/Makefile that try to install
    $(EXPORTFILES) :

make[1]: Binnengaan van map `/home/peter/tmp/R-2.3.0/etc'
mkdir -p -- /home/peter/lib/R/etc
installing etc ...
/bin/sh: -c: line 1: syntax error near unexpected token `;'
/bin/sh: -c: line 1: `for f in ; do  /usr/bin/install -c -m 644 ${f} "/home/peter/lib/R/etc";  done'
make[1]: *** [install] Fout 2
make[1]: Weggaan uit map `/home/peter/tmp/R-2.3.0/etc'
make: *** [install] Fout 1




--please do not edit the information below--

Version:
 platform = i686-pc-linux-gnu
 arch = i686
 os = linux-gnu
 system = i686, linux-gnu
 status = 
 major = 2
 minor = 3.0
 year = 2006
 month = 04
 day = 24
 svn rev = 37909
 language = R
 version.string = Version 2.3.0 (2006-04-24)

Locale:
LC_CTYPE=nl_NL at euro;LC_NUMERIC=C;LC_TIME=nl_NL at euro;LC_COLLATE=C;LC_MONETARY=nl_NL at euro;LC_MESSAGES=nl_NL at euro;LC_PAPER=C;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=C;LC_IDENTIFICATION=C

Search Path:
 .GlobalEnv, package:methods, package:stats, package:utils, package:datasets, package:graphics, package:grDevices, Autoloads, package:base



More information about the R-devel mailing list