-----Original Message-----
From: r-sig-mac-bounces at stat.math.ethz.ch [mailto:r-sig-mac-
bounces at stat.math.ethz.ch] On Behalf Of Rolf Turner
Sent: Wednesday, October 28, 2009 5:21 PM
To: R-Sig Mac
Subject: [R-SIG-Mac] Building from source problems.
QUESTION 1:
===========
Yesterday I sent out a cri de coeur in respect of not being
able to build R 2.10.0 from source on my Mac (OS X 10.4.11).
Simon Urbanek informed me that I could get a working R 2.10.0
from http://r.research.att.com/ which I duly did. That went
O.K.
Then today, because of another problem that I encountered (see
below) I decided to go back to R 2.9.2. I retrieved the
tar file from the ``Source code of older versions of R'' and
went through the ./configure and make routine. Blow me down,
but didn't I get the same error that I got when trying to make
version 2.10.0:
building package 'tcltk'
mkdir ../../../library/tcltk
mkdir ../../../library/tcltk/R
mkdir ../../../library/tcltk/exec
mkdir ../../../library/tcltk/po
mkdir ../../../library/tcltk/man
making init.d from init.c
making tcltk.d from tcltk.c
making tcltk_unix.d from tcltk_unix.c
gcc -std=gnu99 -I../../../../include -I/usr/local/include -I/usr/
local/include -I/usr/X11R6/include -I/sw/include -I/usr/local/
include -fPIC -g -O2 -c init.c -o init.o
gcc -std=gnu99 -I../../../../include -I/usr/local/include -I/usr/
local/include -I/usr/X11R6/include -I/sw/include -I/usr/local/
include -fPIC -g -O2 -c tcltk.c -o tcltk.o
gcc -std=gnu99 -I../../../../include -I/usr/local/include -I/usr/
local/include -I/usr/X11R6/include -I/sw/include -I/usr/local/
include -fPIC -g -O2 -c tcltk_unix.c -o tcltk_unix.o
In file included from tcltk_unix.c:23:
../../../../include/R_ext/eventloop.h:73: warning: 'struct timeval'
declared inside parameter list
../../../../include/R_ext/eventloop.h:73: warning: its scope is
only this definition or declaration, which is probably not what you
want
gcc -std=gnu99 -dynamiclib -Wl,-headerpad_max_install_names -
mmacosx-version-min=10.4 -undefined dynamic_lookup -single_module -
multiply_defined suppress -L/sw/lib -L/usr/local/lib -o tcltk.so
init.o tcltk.o tcltk_unix.o -L/usr/local/lib -ltcl8.5 -L/usr/local/
lib -ltk8.5 -L/usr/X11R6/lib -lX11 -Wl,-weak-lXss -lXext -
L../../../../lib -lR -dylib_file libRblas.dylib:../../../../lib/
libRblas.dylib -lintl -liconv -lc -Wl,-framework -Wl,CoreFoundation
/usr/libexec/gcc/i686-apple-darwin8/4.0.1/libtool: for architecture
x86_64 object: /usr/local/lib/libtk8.5.dylib malformed object
(unknown load command 7)
make[4]: *** [tcltk.so] Error 1
make[3]: *** [all] Error 1
make[2]: *** [R] Error 1
make[1]: *** [R] Error 1
make: *** [R] Error 1
Simon told me that the error that arose when I tried to make 2.10.0 was
due to trying to build a 64 bit version under a too-ancient version of
Mac OS X. Is the 2.9.2 release configured to produce a 64 bit version?
I ***thought*** I had installed 2.9.2 from source, but maybe not ....
Is there any way I can tell it ***not*** to go for a 64-bit version?
(Surely there must be, since the r.research.att web site provides a
version which runs under Mac OS X 10.4.11.)