Number: 1242
Title: gv_r.cpp:718:22: error: Rdefines.h: No such file or directory
Submitter: Ryan Schmidt
Date: Wed Nov 28 07:45:48 2007
Subsys: Build/Installation
Version: 2.17.20071128.0540
System: x86-OSX-10.4.11
Severity: critical
Problem:
2.17.20071128.0540 fails to build on Mac OS X on i386. 2.17.20071127.0540 builds just fine. Did not test on ppc. Here's the hopefully relevant part of make's output:


gv_r.cpp:718:22: error: Rdefines.h: No such file or directory
gv_r.cpp:719:22: error: Rversion.h: No such file or directory
gv_r.cpp:724:27: error: missing binary operator before token "("
gv_r.cpp:4278:28: error: R_ext/Rdynload.h: No such file or directory
gv_r.cpp:744: error: 'SEXP' does not name a type
gv_r.cpp:745: error: 'SEXP' does not name a type
gv_r.cpp:748: error: 'SEXP' does not name a type
gv_r.cpp:749: error: 'SEXP' does not name a type
gv_r.cpp:752: error: 'SEXP' does not name a type
gv_r.cpp:761: error: 'SEXP' does not name a type
gv_r.cpp:786: error: 'SEXP' was not declared in this scope
gv_r.cpp:786: error: 'SEXP' was not declared in this scope
gv_r.cpp:786: error: initializer expression list treated as compound expression
gv_r.cpp:787: error: expected ',' or ';' before '{' token
gv_r.cpp:800: error: 'SEXP' does not name a type
gv_r.cpp: In function 'RCallbackFunctionData* R_SWIG_getCallbackFunctionData()':
gv_r.cpp:812: error: 'Rf_error' was not declared in this scope
gv_r.cpp: At global scope:
gv_r.cpp:847: error: 'SEXP' was not declared in this scope
gv_r.cpp:847: error: 'SEXP' was not declared in this scope
gv_r.cpp:847: error: expected primary-expression before 'const'
gv_r.cpp:847: error: initializer expression list treated as compound expression
gv_r.cpp:848: error: expected ',' or ';' before '{' token
gv_r.cpp:869: error: 'SEXP' was not declared in this scope
gv_r.cpp:869: error: expected primary-expression before 'const'
gv_r.cpp:869: error: expected primary-expression before 'const'
gv_r.cpp:869: error: 'Rboolean' was not declared in this scope
gv_r.cpp:869: error: initializer expression list treated as compound expression
gv_r.cpp:870: error: expected ',' or ';' before '{' token
gv_r.cpp:900: error: variable or field 'R_SWIG_ReferenceFinalizer' declared void
gv_r.cpp:900: error: 'SEXP' was not declared in this scope
gv_r.cpp:901: error: expected ',' or ';' before '{' token
gv_r.cpp:921: error: 'SEXP' does not name a type
gv_r.cpp:944: error: 'SEXP' does not name a type
gv_r.cpp:961: error: 'SEXP' does not name a type
gv_r.cpp:970: error: 'SEXP' does not name a type
gv_r.cpp:980: error: 'SWIG_R_ConvertPtr' declared as an 'inline' variable
gv_r.cpp:980: error: 'SEXP' was not declared in this scope
gv_r.cpp:980: error: expected primary-expression before 'void'
gv_r.cpp:980: error: expected primary-expression before '*' token
gv_r.cpp:980: error: 'ty' was not declared in this scope
gv_r.cpp:980: error: expected primary-expression before 'int'
gv_r.cpp:980: error: initializer expression list treated as compound expression
gv_r.cpp:980: error: expected ',' or ';' before '{' token
gv_r.cpp:1022: error: 'SEXP' does not name a type
gv_r.cpp:1043: error: 'SEXP' was not declared in this scope
gv_r.cpp:1043: error: expected primary-expression before 'void'
gv_r.cpp:1043: error: expected primary-expression before 'size'
gv_r.cpp:1043: error: initializer expression list treated as compound expression
gv_r.cpp:1044: error: expected ',' or ';' before '{' token
gv_r.cpp:1052: error: 'SEXP' does not name a type
gv_r.cpp:1060: error: 'SEXP' was not declared in this scope
gv_r.cpp:1060: error: expected primary-expression before 'void'
gv_r.cpp:1060: error: expected primary-expression before 'sz'
gv_r.cpp:1060: error: expected primary-expression before '*' token
gv_r.cpp:1060: error: 'ty' was not declared in this scope
gv_r.cpp:1060: error: initializer expression list treated as compound expression
gv_r.cpp:1060: error: expected ',' or ';' before '{' token
gv_r.cpp:1424: error: 'SEXP' was not declared in this scope
gv_r.cpp:1424: error: expected primary-expression before 'char'
gv_r.cpp:1424: error: expected primary-expression before '*' token
gv_r.cpp:1424: error: 'psize' was not declared in this scope
gv_r.cpp:1424: error: expected primary-expression before 'int'
gv_r.cpp:1424: error: initializer expression list treated as compound expression
gv_r.cpp:1425: error: expected ',' or ';' before '{' token
gv_r.cpp:1458: error: 'SEXP' does not name a type
gv_r.cpp:1478: error: 'SEXP' does not name a type
gv_r.cpp:1498: error: 'SEXP' does not name a type
gv_r.cpp:1518: error: 'SEXP' does not name a type
gv_r.cpp:1538: error: 'SEXP' does not name a type
gv_r.cpp:1558: error: 'SEXP' does not name a type
gv_r.cpp:1578: error: 'SEXP' does not name a type
gv_r.cpp:1604: error: 'SEXP' does not name a type
gv_r.cpp:1633: error: 'SEXP' does not name a type
gv_r.cpp:1662: error: 'SEXP' does not name a type
gv_r.cpp:1697: error: 'SEXP' does not name a type
gv_r.cpp:1726: error: 'SEXP' does not name a type
gv_r.cpp:1755: error: 'SEXP' does not name a type
gv_r.cpp:1787: error: 'SEXP' does not name a type
gv_r.cpp:1819: error: 'SEXP' does not name a type
gv_r.cpp:1851: error: 'SEXP' does not name a type
gv_r.cpp:1883: error: 'SEXP' does not name a type
gv_r.cpp:1921: error: 'SEXP' does not name a type
gv_r.cpp:1959: error: 'SEXP' does not name a type
gv_r.cpp:1997: error: 'SEXP' does not name a type
gv_r.cpp:2026: error: 'SEXP' does not name a type
gv_r.cpp:2055: error: 'SEXP' does not name a type
gv_r.cpp:2084: error: 'SEXP' does not name a type
gv_r.cpp:2119: error: 'SEXP' does not name a type
gv_r.cpp:2154: error: 'SEXP' does not name a type
gv_r.cpp:2189: error: 'SEXP' does not name a type
gv_r.cpp:2215: error: 'SEXP' does not name a type
gv_r.cpp:2241: error: 'SEXP' does not name a type
gv_r.cpp:2267: error: 'SEXP' does not name a type
gv_r.cpp:2296: error: 'SEXP' does not name a type
gv_r.cpp:2325: error: 'SEXP' does not name a type
gv_r.cpp:2360: error: 'SEXP' does not name a type
gv_r.cpp:2389: error: 'SEXP' does not name a type
gv_r.cpp:2418: error: 'SEXP' does not name a type
gv_r.cpp:2447: error: 'SEXP' does not name a type
gv_r.cpp:2473: error: 'SEXP' does not name a type
gv_r.cpp:2499: error: 'SEXP' does not name a type
gv_r.cpp:2525: error: 'SEXP' does not name a type
gv_r.cpp:2551: error: 'SEXP' does not name a type
gv_r.cpp:2577: error: 'SEXP' does not name a type
gv_r.cpp:2603: error: 'SEXP' does not name a type
gv_r.cpp:2629: error: 'SEXP' does not name a type
gv_r.cpp:2655: error: 'SEXP' does not name a type
gv_r.cpp:2681: error: 'SEXP' does not name a type
gv_r.cpp:2707: error: 'SEXP' does not name a type
gv_r.cpp:2733: error: 'SEXP' does not name a type
gv_r.cpp:2759: error: 'SEXP' does not name a type
gv_r.cpp:2785: error: 'SEXP' does not name a type
gv_r.cpp:2820: error: 'SEXP' does not name a type
gv_r.cpp:2846: error: 'SEXP' does not name a type
gv_r.cpp:2881: error: 'SEXP' does not name a type
gv_r.cpp:2907: error: 'SEXP' does not name a type
gv_r.cpp:2942: error: 'SEXP' does not name a type
gv_r.cpp:2968: error: 'SEXP' does not name a type
gv_r.cpp:3003: error: 'SEXP' does not name a type
gv_r.cpp:3029: error: 'SEXP' does not name a type
gv_r.cpp:3064: error: 'SEXP' does not name a type
gv_r.cpp:3090: error: 'SEXP' does not name a type
gv_r.cpp:3125: error: 'SEXP' does not name a type
gv_r.cpp:3151: error: 'SEXP' does not name a type
gv_r.cpp:3186: error: 'SEXP' does not name a type
gv_r.cpp:3212: error: 'SEXP' does not name a type
gv_r.cpp:3247: error: 'SEXP' does not name a type
gv_r.cpp:3273: error: 'SEXP' does not name a type
gv_r.cpp:3308: error: 'SEXP' does not name a type
gv_r.cpp:3334: error: 'SEXP' does not name a type
gv_r.cpp:3369: error: 'SEXP' does not name a type
gv_r.cpp:3395: error: 'SEXP' does not name a type
gv_r.cpp:3430: error: 'SEXP' does not name a type
gv_r.cpp:3456: error: 'SEXP' does not name a type
gv_r.cpp:3491: error: 'SEXP' does not name a type
gv_r.cpp:3517: error: 'SEXP' does not name a type
gv_r.cpp:3552: error: 'SEXP' does not name a type
gv_r.cpp:3578: error: 'SEXP' does not name a type
gv_r.cpp:3613: error: 'SEXP' does not name a type
gv_r.cpp:3639: error: 'SEXP' does not name a type
gv_r.cpp:3674: error: 'SEXP' does not name a type
gv_r.cpp:3700: error: 'SEXP' does not name a type
gv_r.cpp:3726: error: 'SEXP' does not name a type
gv_r.cpp:3752: error: 'SEXP' does not name a type
gv_r.cpp:3781: error: 'SEXP' does not name a type
gv_r.cpp:3807: error: 'SEXP' does not name a type
gv_r.cpp:3836: error: 'SEXP' does not name a type
gv_r.cpp:3868: error: 'SEXP' does not name a type
gv_r.cpp:3906: error: 'SEXP' does not name a type
gv_r.cpp:3935: error: 'SEXP' does not name a type
gv_r.cpp:3970: error: 'SEXP' does not name a type
gv_r.cpp:4284: error: 'R_CallMethodDef' does not name a type
gv_r.cpp:4375: warning: 'R_init_gv' initialized and declared 'extern'
gv_r.cpp:4375: error: variable or field 'R_init_gv' declared void
gv_r.cpp:4375: error: 'DllInfo' was not declared in this scope
gv_r.cpp:4375: error: 'dll' was not declared in this scope
gv_r.cpp:4375: error: expected ',' or ';' before '{' token
make[3]: *** [gv_r.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Comments:
[ellson] That comes from a new language binding to R that I'm working on, but it is supposed to be disabled in configure, so I don't understand why you are seeing this?

That relevant part of Makefile.am is in a "if WITH_R" conditional, which in config.status should look like:


   s,@WITH_R_TRUE@,|#_!!_#|#,g
   s,@WITH_R_FALSE@,|#_!!_#|,g
i.e. commenting out all lines related to WITH_R == true

The nightly build on the linux machines without R went ok last night.

[ryan] I have:


s,@WITH_R_TRUE@,|#_!!_#|,g
s,@WITH_R_FALSE@,|#_!!_#|#,g

So, the opposite of yours. My configure line is as follows, so I don't think I'm asking for R... maybe I should add some more --disable-foo switches.


./configure 
--prefix=/foo 
--disable-static 
--with-expatincludedir=/foo/include 
--with-expatlibdir=/foo/lib 
--with-freetype=/foo 
--with-fontconfigincludedir=/foo/include/fontconfig 
--with-fontconfiglibdir=/foo/lib 
--with-zincludedir=/foo/include 
--with-zlibdir=/foo/lib 
--with-mylibgd 
--with-digcola 
--with-ipsepcola 
--without-codegens 
--without-gtk 
--disable-io 
--disable-java 
--disable-lua 
--disable-ocaml 
--disable-ruby 
--enable-tcl

The dependencies I've built:

cairo-1.4.12 expat-2.0.1 fontconfig-2.5.0 freetype-2.3.5 gettext-0.17 glib-2.14.4 libpng-1.2.23 libtool-1.5.24 pango-1.19.0 pkg-config-0.22 swig-1.3.33 zlib-1.2.3


Owner: ellson
Status: *