mod_R.c: In function 'RApacheError' in make

6 views
Skip to first unread message

Henry Paik

unread,
Sep 24, 2009, 10:21:10 AM9/24/09
to rapache
Hello RApache group,

I am trying to install RApache on my Ubuntu 9.04 and was following
"Quick Install for Debian/Ubuntu"

apt-get install r-base-dev apache2-mpm-prefork apache2-prefork-dev
wget http://biostat.mc.vanderbilt.edu/rapache/files/rapache-latest.tar.gz
rapachedir=`tar tzf rapache-latest.tar.gz | head -1`
tar xzvf rapache-latest.tar.gz
cd $rapachedir
./configure
make
make install

It went fine until make.

make did not go through, complaining

###
ace@ubuntu:~/Desktop/rapache-1.1.8$ sudo make

Compiling mod_R

/usr/bin/apxs2 -I/usr/share/R/include -I/home/hpaik/Desktop/
rapache-1.1.8/libapr
eq2/include -I/usr/include/apr-1.0 -I/usr/include/postgresql -I/usr/
include/my
sql -c mod_R.c -Wl,-rpath,/usr/lib/R/lib -L/usr/lib/R/lib -lR -L/home/
hpaik/Desk
top/rapache-1.1.8/libapreq2/library/.libs -lapreq2
/usr/share/apr-1.0/build/libtool --silent --mode=compile --tag=disable-
static i4
86-linux-gnu-gcc -prefer-pic -DLINUX=2 -D_GNU_SOURCE -
D_LARGEFILE64_SOURCE -D_RE
ENTRANT -I/usr/include/apr-1.0 -I/usr/include/mysql -I/usr/include/
openssl -I/us
r/include/postgresql -I/usr/include/xmltok -pthread -I/usr/include/
apache2
-I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -I/usr/include/
postgresql -I/usr
/include/mysql -I/usr/share/R/include -I/home/hpaik/Desktop/
rapache-1.1.8/libapr
eq2/include -I/usr/include/apr-1.0 -I/usr/include/postgresql -I/usr/
include/mysq
l -c -o mod_R.lo mod_R.c && touch mod_R.slo
mod_R.c: In function 'RApacheError':
mod_R.c:864: warning: format not a string literal and no format
arguments
/usr/share/apr-1.0/build/libtool --silent --mode=link --tag=disable-
static i486-
linux-gnu-gcc -o mod_R.la -rpath /usr/lib/apache2/modules -module -
avoid-versio
n mod_R.lo -Wl,-rpath,/usr/lib/R/lib -L/usr/lib/R/lib -lR -L/home/
hpaik/Deskt
op/rapache-1.1.8/libapreq2/library/.libs -lapreq2

###

My ubuntu is very standard.

ace@ubuntu:~/Desktop/rapache-1.1.8$ echo $R_HOME
/usr/lib/R/
ace@ubuntu:~/Desktop/rapache-1.1.8$ echo $rapachedir
/home/ace/Desktop/rapache-1.1.8
ace@ubuntu:~/Desktop/rapache-1.1.8$ which apxs2
/usr/bin/apxs2
ace@ubuntu:~/Desktop/rapache-1.1.8$ which apache2
/usr/sbin/apache2
ace@ubuntu:~/Desktop/rapache-1.1.8$ which R
/usr/bin/R
ace@ubuntu:~/Desktop/rapache-1.1.8$ R --version
R version 2.9.2 (2009-08-24)
Copyright (C) 2009 The R Foundation for Statistical Computing
ISBN 3-900051-07-0

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under the terms of the
GNU General Public License version 2.
For more information about these matters see
http://www.gnu.org/licenses/.

ace@ubuntu:~/Desktop/rapache-1.1.8$ apache2 -version
Server version: Apache/2.2.11 (Ubuntu)
Server built: Aug 18 2009 14:26:31

Please help.

Thanks.

- Henry

Jeff Horner

unread,
Sep 24, 2009, 10:34:34 AM9/24/09
to rap...@googlegroups.com
This is actually a warning that you can ignore at the moment. It will go
away with the next release.

The issue stems from the function ap_log_rerror(), the underlying apache
function called from RApacheError, wanting a format string like "%s"
with additional arguments rather than a pre-formated or literal string.

Jeff

Henry Paik

unread,
Sep 24, 2009, 1:27:36 PM9/24/09
to rap...@googlegroups.com
Hi Jeff,

Thank you very much for this wonderful tool.

Yes, it turned out to be alright.

Thanks again!

- Henry
Reply all
Reply to author
Forward
0 new messages