sheed03
unread,Apr 12, 2011, 5:00:27 PM4/12/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rapache
Hello, I am trying to install rApache version 1.1.14 on a virtual
machine running Red Hat Enterprise Linux 5. R version 2.12.2 is
installed and working correctly. As far as I can tell I have all of
the dependencies satisfied (also my system administrator installed
apreg2). Running configure with a few flags results in the makefile
being created, but running make causes the errors seen in the output
below. I ran the config with the following command:
./configure --with-apache2-apxs=/usr/sbin/apxs --with-R=/usr/bin/R --
with-apreq2-config=/usr/bin/apreq2-config
Here is the make error output:
[root@vm rapache-1.1.14]# make
Compiling mod_R
/usr/sbin/apxs -I/usr/include/R -I/usr/include/apreq2 -I/usr/include/
apr-1 -c mod_R.c -Wl,-rpath,/usr/lib64/R/lib -L/usr/lib64/R/lib -lR -
lapreq2
/usr/lib64/apr-1/build/libtool --silent --mode=compile gcc -prefer-pic
-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-
protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fno-strict-
aliasing -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -pthread -I/usr/include/
httpd -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/include/R -
I/usr/include/apreq2 -I/usr/include/apr-1 -c -o mod_R.lo mod_R.c &&
touch mod_R.slo
mod_R.c:75:15: error: R.h: No such file or directory
mod_R.c:76:22: error: Rversion.h: No such file or directory
mod_R.c:77:24: error: Rinternals.h: No such file or directory
mod_R.c:78:22: error: Rdefines.h: No such file or directory
mod_R.c:97:24: error: Rinterface.h: No such file or directory
mod_R.c:99:23: error: Rembedded.h: No such file or directory
mod_R.c:100:25: error: R_ext/Parse.h: No such file or directory
mod_R.c:101:29: error: R_ext/Callbacks.h: No such file or directory
mod_R.c:102:28: error: R_ext/Rdynload.h: No such file or directory
mod_R.c:103:26: error: R_ext/Memory.h: No such file or directory
mod_R.c:125: error: expected specifier-qualifier-list before 'SEXP'
mod_R.c:131: error: expected specifier-qualifier-list before 'SEXP'
mod_R.c:144: error: expected specifier-qualifier-list before 'SEXP'
mod_R.c:159: warning: excess elements in struct initializer
mod_R.c:159: warning: (near initialization for 'MR_Request')
mod_R.c:159: warning: excess elements in struct initializer
mod_R.c:159: warning: (near initialization for 'MR_Request')
mod_R.c:159: warning: excess elements in struct initializer
mod_R.c:159: warning: (near initialization for 'MR_Request')
mod_R.c:159: warning: excess elements in struct initializer
mod_R.c:159: warning: (near initialization for 'MR_Request')
mod_R.c:159: warning: excess elements in struct initializer
mod_R.c:159: warning: (near initialization for 'MR_Request')
mod_R.c:197: error: expected '=', ',', ';', 'asm' or '__attribute__'
before 'MR_RApacheEnv'
mod_R.c:282: error: expected ')' before 's'
mod_R.c:283: error: expected declaration specifiers or '...' before
'Rboolean'
mod_R.c:286: error: expected ')' before 'a'
mod_R.c:300: error: expected '=', ',', ';', 'asm' or '__attribute__'
before 'NewLogical'
mod_R.c:301: error: expected '=', ',', ';', 'asm' or '__attribute__'
before 'NewInteger'
mod_R.c:302: error: expected '=', ',', ';', 'asm' or '__attribute__'
before 'NewEnv'
mod_R.c:303: error: expected '=', ',', ';', 'asm' or '__attribute__'
before 'ParseText'
mod_R.c:304: error: expected '=', ',', ';', 'asm' or '__attribute__'
before 'EvalExprs'
mod_R.c:305: error: expected '=', ',', ';', 'asm' or '__attribute__'
before 'ParseEval'
mod_R.c:306: error: expected '=', ',', ';', 'asm' or '__attribute__'
before 'CallFun1str'
mod_R.c:307: error: expected '=', ',', ';', 'asm' or '__attribute__'
before 'CallFun1expr'
mod_R.c:314: error: expected '=', ',', ';', 'asm' or '__attribute__'
before 'MyfindFun'
mod_R.c:316: error: expected '=', ',', ';', 'asm' or '__attribute__'
before 'AprTableToList'
mod_R.c: In function 'AP_hook_post_config':
mod_R.c:518: error: 'R_MAJOR' undeclared (first use in this function)
mod_R.c:518: error: (Each undeclared identifier is reported only once
mod_R.c:518: error: for each function it appears in.)
mod_R.c:518: error: 'R_MINOR' undeclared (first use in this function)
mod_R.c: In function 'AP_hook_request_handler':
mod_R.c:533: error: 'SEXP' undeclared (first use in this function)
mod_R.c:533: error: expected ';' before 'ret'
mod_R.c:558: error: 'RApacheHandler' has no member named 'directive'
mod_R.c:563: error: 'RApacheHandler' has no member named 'directive'
mod_R.c:564: error: 'RApacheHandler' has no member named 'parsedFile'
mod_R.c:564: warning: implicit declaration of function
'R_PreserveObject'
mod_R.c:564: error: 'RApacheHandler' has no member named 'parsedFile'
mod_R.c:564: warning: implicit declaration of function 'NewEnv'
mod_R.c:564: error: 'R_GlobalEnv' undeclared (first use in this
function)
mod_R.c:565: error: 'RApacheHandler' has no member named 'envir'
mod_R.c:565: error: 'RApacheHandler' has no member named 'parsedFile'
mod_R.c:567: error: 'RApacheHandler' has no member named 'envir'
mod_R.c:575: error: 'RApacheHandler' has no member named 'directive'
mod_R.c:575: error: 'RApacheHandler' has no member named 'directive'
mod_R.c:576: warning: implicit declaration of function 'PROTECT'
mod_R.c:576: error: 'RApacheHandler' has no member named 'envir'
mod_R.c:577: error: 'RApacheHandler' has no member named 'parsedFile'
mod_R.c:579: error: 'ret' undeclared (first use in this function)
mod_R.c:579: warning: implicit declaration of function 'EvalExprs'
mod_R.c:579: error: 'RApacheHandler' has no member named 'parsedFile'
mod_R.c:579: error: 'RApacheHandler' has no member named 'envir'
mod_R.c:580: warning: implicit declaration of function 'UNPROTECT'
mod_R.c:592: error: 'RApacheHandler' has no member named 'envir'
mod_R.c:596: error: 'RApacheHandler' has no member named 'directive'
mod_R.c:600: error: 'RApacheHandler' has no member named 'envir'
mod_R.c:601: error: 'RApacheHandler' has no member named 'expr'
mod_R.c:603: error: 'RApacheHandler' has no member named 'expr'
mod_R.c:603: error: 'RApacheHandler' has no member named 'envir'
mod_R.c:615: warning: implicit declaration of function 'IS_INTEGER'
mod_R.c:615: warning: implicit declaration of function 'LENGTH'
mod_R.c:617: warning: implicit declaration of function 'asInteger'
mod_R.c:618: warning: implicit declaration of function 'inherits'
mod_R.c:619: error: 'RApacheHandler' has no member named 'directive'
mod_R.c: In function 'ShowMessage':
mod_R.c:654: error: 'ptr_R_WriteConsoleEx' undeclared (first use in
this function)
mod_R.c: In function 'GetHandlerFromRequest':
mod_R.c:762: error: 'RApacheHandler' has no member named 'directive'
mod_R.c: In function 'TearDownRequest':
mod_R.c:803: warning: implicit declaration of function 'ParseEval'
mod_R.c:803: error: 'R_GlobalEnv' undeclared (first use in this
function)
mod_R.c:824: error: 'RApacheRequest' has no member named
'outputErrors'
mod_R.c:829: error: 'RApacheRequest' has no member named
'outputErrors'
mod_R.c:902: error: 'RApacheRequest' has no member named
'outputErrors'
mod_R.c: In function 'RApacheResponseError':
mod_R.c:912: error: 'RApacheRequest' has no member named
'outputErrors'
mod_R.c:917: error: 'RApacheRequest' has no member named
'outputErrors'
mod_R.c: In function 'RApacheError':
mod_R.c:941: error: 'RApacheRequest' has no member named
'outputErrors'
mod_R.c:946: error: 'RApacheRequest' has no member named
'outputErrors'
mod_R.c:949: error: 'RApacheRequest' has no member named 'errorPrefix'
mod_R.c:949: error: 'RApacheRequest' has no member named 'errorPrefix'
mod_R.c:950: error: 'RApacheRequest' has no member named 'errorSuffix'
mod_R.c:950: error: 'RApacheRequest' has no member named 'errorSuffix'
mod_R.c: In function 'init_R':
mod_R.c:997: error: 'R_SignalHandlers' undeclared (first use in this
function)
mod_R.c:1001: warning: implicit declaration of function
'Rf_initEmbeddedR'
mod_R.c:1004: error: 'R_Consolefile' undeclared (first use in this
function)
mod_R.c:1005: error: 'R_Outputfile' undeclared (first use in this
function)
mod_R.c:1006: error: 'ptr_R_Suicide' undeclared (first use in this
function)
mod_R.c:1007: error: 'ptr_R_ShowMessage' undeclared (first use in this
function)
mod_R.c:1008: error: 'ptr_R_WriteConsole' undeclared (first use in
this function)
mod_R.c:1009: error: 'ptr_R_WriteConsoleEx' undeclared (first use in
this function)
mod_R.c:1010: error: 'ptr_R_ReadConsole' undeclared (first use in this
function)
mod_R.c:1011: error: 'ptr_R_ResetConsole' undeclared (first use in
this function)
mod_R.c:1011: error: 'ptr_R_FlushConsole' undeclared (first use in
this function)
mod_R.c:1011: error: 'ptr_R_ClearerrConsole' undeclared (first use in
this function)
mod_R.c:1012: error: 'ptr_R_Busy' undeclared (first use in this
function)
mod_R.c:1013: error: 'ptr_R_CleanUp' undeclared (first use in this
function)
mod_R.c:1013: error: 'NoOpCleanUp' undeclared (first use in this
function)
mod_R.c:1014: error: 'ptr_R_ShowFiles' undeclared (first use in this
function)
mod_R.c:1015: error: 'ptr_R_ChooseFile' undeclared (first use in this
function)
mod_R.c:1016: error: 'ptr_R_EditFile' undeclared (first use in this
function)
mod_R.c:1017: error: 'ptr_R_loadhistory' undeclared (first use in this
function)
mod_R.c:1017: error: 'ptr_R_savehistory' undeclared (first use in this
function)
mod_R.c:1017: error: 'ptr_R_addhistory' undeclared (first use in this
function)
mod_R.c:1017: error: 'NoOpHistoryFun' undeclared (first use in this
function)
mod_R.c:1021: error: 'R_CStackLimit' undeclared (first use in this
function)
mod_R.c: In function 'PrintTraceback':
mod_R.c:1099: error: 'ptr_R_WriteConsoleEx' undeclared (first use in
this function)
mod_R.c:1100: error: 'R_GlobalEnv' undeclared (first use in this
function)
mod_R.c: In function 'InitTempDir':
mod_R.c:1113: error: 'R_TempDir' undeclared (first use in this
function)
mod_R.c: At top level:
mod_R.c:1122: error: expected '=', ',', ';', 'asm' or '__attribute__'
before 'NewLogical'
mod_R.c:1130: error: expected '=', ',', ';', 'asm' or '__attribute__'
before 'NewInteger'
mod_R.c:1138: error: expected '=', ',', ';', 'asm' or '__attribute__'
before 'NewEnv'
mod_R.c:1152: error: expected '=', ',', ';', 'asm' or '__attribute__'
before 'ParseText'
mod_R.c:1165: error: expected '=', ',', ';', 'asm' or '__attribute__'
before 'ParseEval'
mod_R.c:1179: error: expected '=', ',', ';', 'asm' or '__attribute__'
before 'EvalExprs'
mod_R.c:1205: error: expected '=', ',', ';', 'asm' or '__attribute__'
before 'CallFun1expr'
mod_R.c:1217: error: expected '=', ',', ';', 'asm' or '__attribute__'
before 'CallFun1str'
mod_R.c: In function 'PrepareFileExprs':
mod_R.c:1233: error: 'RApacheHandler' has no member named 'directive'
mod_R.c:1236: error: 'RApacheHandler' has no member named 'directive'
mod_R.c:1236: error: 'RApacheHandler' has no member named 'directive'
mod_R.c:1239: error: 'RApacheHandler' has no member named 'parsedFile'
mod_R.c:1239: error: 'RApacheHandler' has no member named 'parsedFile'
mod_R.c:1242: error: 'RApacheHandler' has no member named 'directive'
mod_R.c:1247: error: 'RApacheHandler' has no member named 'directive'
mod_R.c:1249: error: 'RApacheHandler' has no member named 'parsedFile'
mod_R.c:1253: error: 'RApacheParsedFile' has no member named 'mtime'
mod_R.c:1258: error: 'RApacheParsedFile' has no member named 'exprs'
mod_R.c:1258: warning: implicit declaration of function
'R_ReleaseObject'
mod_R.c:1258: error: 'RApacheParsedFile' has no member named 'exprs'
mod_R.c:1260: error: 'RApacheParsedFile' has no member named 'exprs'
mod_R.c:1260: warning: implicit declaration of function 'CallFun1str'
mod_R.c:1260: error: 'RApacheHandler' has no member named 'directive'
mod_R.c:1260: error: 'R_GlobalEnv' undeclared (first use in this
function)
mod_R.c:1264: error: 'RApacheParsedFile' has no member named 'exprs'
mod_R.c:1265: error: 'RApacheParsedFile' has no member named 'mtime'
mod_R.c: In function 'PrepareHandlerExpr':
mod_R.c:1287: error: 'RApacheHandler' has no member named 'directive'
mod_R.c:1288: warning: implicit declaration of function 'Calloc'
mod_R.c:1288: error: 'RApacheHandler' has no member named 'directive'
mod_R.c:1288: error: 'RApacheHandler' has no member named 'directive'
mod_R.c:1288: error: expected expression before 'char'
mod_R.c:1288: warning: assignment makes pointer from integer without a
cast
mod_R.c:1289: error: 'RApacheHandler' has no member named 'directive'
mod_R.c:1289: error: 'RApacheHandler' has no member named 'directive'
mod_R.c:1291: error: 'RApacheHandler' has no member named 'directive'
mod_R.c:1291: error: expected expression before 'char'
mod_R.c:1291: warning: assignment makes pointer from integer without a
cast
mod_R.c:1292: error: 'RApacheHandler' has no member named 'directive'
mod_R.c:1295: error: 'RApacheHandler' has no member named 'directive'
mod_R.c:1296: error: 'RApacheHandler' has no member named 'directive'
mod_R.c:1296: error: 'RApacheHandler' has no member named 'directive'
mod_R.c:1296: error: expected expression before 'char'
mod_R.c:1296: warning: assignment makes pointer from integer without a
cast
mod_R.c:1297: error: 'RApacheHandler' has no member named 'directive'
mod_R.c:1297: error: 'RApacheHandler' has no member named 'directive'
mod_R.c:1299: error: 'RApacheHandler' has no member named 'directive'
mod_R.c:1299: error: expected expression before 'char'
mod_R.c:1299: warning: assignment makes pointer from integer without a
cast
mod_R.c:1300: error: 'RApacheHandler' has no member named 'directive'
mod_R.c:1304: error: 'RApacheHandler' has no member named 'expr'
mod_R.c:1304: warning: implicit declaration of function 'ParseText'
mod_R.c:1305: warning: implicit declaration of function 'Free'
mod_R.c:1310: warning: implicit declaration of function 'defineVar'
mod_R.c:1310: warning: implicit declaration of function 'install'
mod_R.c:1310: warning: implicit declaration of function 'mkString'
mod_R.c:1310: error: 'RApacheHandler' has no member named 'envir'
mod_R.c:1311: error: 'RApacheHandler' has no member named 'envir'
mod_R.c:1311: error: 'RApacheHandler' has no member named 'envir'
mod_R.c:1313: error: 'RApacheHandler' has no member named 'expr'
mod_R.c: In function 'RefreshRApacheEnv':
mod_R.c:1326: error: 'SEXP' undeclared (first use in this function)
mod_R.c:1326: error: expected ';' before 't'
mod_R.c:1329: error: 't' undeclared (first use in this function)
mod_R.c:1329: warning: implicit declaration of function 'ENCLOS'
mod_R.c:1329: error: 'R_GlobalEnv' undeclared (first use in this
function)
mod_R.c:1329: error: 'R_BaseEnv' undeclared (first use in this
function)
mod_R.c:1330: error: 'MR_RApacheEnv' undeclared (first use in this
function)
mod_R.c:1344: warning: implicit declaration of function 'SET_ENCLOS'
mod_R.c: In function 'InitRApacheEnv':
mod_R.c:1362: error: 'MR_RApacheEnv' undeclared (first use in this
function)
mod_R.c:1362: error: 'R_GlobalEnv' undeclared (first use in this
function)
mod_R.c:1375: warning: implicit declaration of function 'NewInteger'
mod_R.c:1429: error: 'R_NilValue' undeclared (first use in this
function)
mod_R.c:1436: warning: implicit declaration of function
'R_LockEnvironment'
mod_R.c:1438: warning: implicit declaration of function
'R_unLockBinding'
mod_R.c: In function 'OnStartupCallback':
mod_R.c:1446: error: 'SEXP' undeclared (first use in this function)
mod_R.c:1446: error: expected ';' before 'val'
mod_R.c:1449: error: 'val' undeclared (first use in this function)
mod_R.c:1449: error: 'R_GlobalEnv' undeclared (first use in this
function)
mod_R.c: At top level:
mod_R.c:1459: error: expected '=', ',', ';', 'asm' or '__attribute__'
before 'MyfindFun'
mod_R.c: In function 'RApacheInfo':
mod_R.c:1482: error: 'SEXP' undeclared (first use in this function)
mod_R.c:1482: error: expected ';' before 'envir'
mod_R.c:1486: error: 'envir' undeclared (first use in this function)
mod_R.c: At top level:
mod_R.c:1596: error: expected specifier-qualifier-list before 'SEXP'
mod_R.c: In function 'TableCallback':
mod_R.c:1603: error: 'SEXP' undeclared (first use in this function)
mod_R.c:1603: error: expected ';' before 'value'
mod_R.c:1606: error: 'value' undeclared (first use in this function)
mod_R.c:1606: error: 'R_NilValue' undeclared (first use in this
function)
mod_R.c:1608: warning: implicit declaration of function
'NEW_CHARACTER'
mod_R.c:1609: warning: implicit declaration of function 'STRING_PTR'
mod_R.c:1609: error: subscripted value is neither array nor pointer
mod_R.c:1609: warning: implicit declaration of function 'mkChar'
mod_R.c:1612: error: 'struct TableCtx' has no member named 'names'
mod_R.c:1612: error: 'struct TableCtx' has no member named 'i'
mod_R.c:1613: warning: implicit declaration of function 'SET_ELEMENT'
mod_R.c:1613: error: 'struct TableCtx' has no member named 'list'
mod_R.c:1613: error: 'struct TableCtx' has no member named 'i'
mod_R.c:1614: error: 'struct TableCtx' has no member named 'i'
mod_R.c: At top level:
mod_R.c:1619: error: expected '=', ',', ';', 'asm' or '__attribute__'
before 'AprTableToList'
mod_R.c:1642: error: expected '=', ',', ';', 'asm' or '__attribute__'
before 'RApache_setHeader'
mod_R.c:1661: error: expected '=', ',', ';', 'asm' or '__attribute__'
before 'RApache_setContentType'
mod_R.c:1673: error: expected '=', ',', ';', 'asm' or '__attribute__'
before 'RApache_setCookie'
mod_R.c:1728: error: expected '=', ',', ';', 'asm' or '__attribute__'
before 'encode'
mod_R.c:1747: error: expected '=', ',', ';', 'asm' or '__attribute__'
before 'decode'
mod_R.c:1766: error: expected '=', ',', ';', 'asm' or '__attribute__'
before 'RApache_urlEnDecode'
mod_R.c:1791: error: expected '=', ',', ';', 'asm' or '__attribute__'
before 'RApache_RApacheInfo'
mod_R.c:1797: error: expected '=', ',', ';', 'asm' or '__attribute__'
before 'RApache_parseGet'
mod_R.c:1813: error: expected specifier-qualifier-list before 'SEXP'
mod_R.c: In function 'FileUploadsCallback':
mod_R.c:1824: error: 'SEXP' undeclared (first use in this function)
mod_R.c:1824: error: expected ';' before 'file_elem'
mod_R.c:1830: error: 'RApacheFileUploads' has no member named 'files'
mod_R.c:1830: error: 'RApacheFileUploads' has no member named 'i'
mod_R.c:1830: error: 'R_NilValue' undeclared (first use in this
function)
mod_R.c:1831: error: 'RApacheFileUploads' has no member named 'names'
mod_R.c:1831: error: 'RApacheFileUploads' has no member named 'i'
mod_R.c:1835: error: 'file_elem' undeclared (first use in this
function)
mod_R.c:1835: warning: implicit declaration of function 'NEW_LIST'
mod_R.c:1836: error: 'name_elem' undeclared (first use in this
function)
mod_R.c:1836: warning: implicit declaration of function 'NEW_STRING'
mod_R.c:1837: error: 'str1' undeclared (first use in this function)
mod_R.c:1838: error: 'str2' undeclared (first use in this function)
mod_R.c:1840: error: subscripted value is neither array nor pointer
mod_R.c:1841: error: subscripted value is neither array nor pointer
mod_R.c:1846: error: subscripted value is neither array nor pointer
mod_R.c:1847: error: subscripted value is neither array nor pointer
mod_R.c:1849: warning: implicit declaration of function 'SET_NAMES'
mod_R.c:1851: error: 'RApacheFileUploads' has no member named 'files'
mod_R.c:1851: error: 'RApacheFileUploads' has no member named 'i'
mod_R.c:1852: error: 'RApacheFileUploads' has no member named 'names'
mod_R.c:1852: error: 'RApacheFileUploads' has no member named 'i'
mod_R.c:1856: error: 'RApacheFileUploads' has no member named 'i'
mod_R.c: At top level:
mod_R.c:1861: error: expected '=', ',', ';', 'asm' or '__attribute__'
before 'parsePost'
mod_R.c:1932: error: expected '=', ',', ';', 'asm' or '__attribute__'
before 'RApache_parsePost'
mod_R.c:1934: error: expected '=', ',', ';', 'asm' or '__attribute__'
before 'RApache_parseFiles'
mod_R.c:1936: error: expected '=', ',', ';', 'asm' or '__attribute__'
before 'RApache_parseCookies'
mod_R.c:1960: error: expected '=', ',', ';', 'asm' or '__attribute__'
before 'RApache_getServer'
mod_R.c:2022: error: expected '=', ',', ';', 'asm' or '__attribute__'
before 'RApache_sendBin'
mod_R.c:2254: error: expected '=', ',', ';', 'asm' or '__attribute__'
before 'RApache_outputErrors'
mod_R.c: In function 'RegisterCallSymbols':
mod_R.c:2281: error: 'R_CallMethodDef' undeclared (first use in this
function)
mod_R.c:2281: error: expected ';' before 'callMethods'
mod_R.c:2296: warning: implicit declaration of function
'R_registerRoutines'
mod_R.c:2296: warning: implicit declaration of function
'R_getEmbeddingDllInfo'
mod_R.c:2296: error: 'callMethods' undeclared (first use in this
function)
apxs:Error: Command failed with rc=65536
.
make: *** [mod_R.so] Error 1