[R-SIG-Mac] Compiling 2.5.1 on OSX Panther (James Kyle)

James Kyle krunk7 at gmail.com
Tue Aug 14 20:40:03 CEST 2007


I've been able to resolve the symbol errors in my previous post. I  
modified the makefile for src/extras/blas on line #33. First I  
changed the link order of complxblas.o and blas.o. This eliminated  
the _z_abs_ symbol error. Next, I began searching for where xerbal  
was defined:

find $R -name *.o -or *.a -exec nm -f {} \; | grep xerbla

Nothing turned up, so I figured it was in the system vecLib library  
(which it is). I then added -framework path/to/vecLib. I now get a  
lot of "warning: multiple definitions of" type outptut, but it compiles.

The final compile looked like this:



> $(Rblas_la): blas.o  cmplxblas.o
>   $(DYLIB_LINK) -framework /System/Library/Frameworks/ 
> vecLib.framework/vecLib cmplxblas.o blas.o -o $(Rblas_la) $ 
> (Rblas_la_LIBADD)
>

Next error to rear its head is:


> gcc -std=gnu99 -I../../src/extra/zlib -I../../src/extra/bzip2 - 
> I../../src/extra/pcre  -I. -I../../src/include -I../../src/include - 
> I/usr/local/gcc36/include -I/opt/local/include -DHAVE_CONFIG_H   - 
> fPIC -fno-common  -g -O2 -c complex.c -o complex.o
> complex.c: In function `do_cmathfuns':
> complex.c:332: error: incompatible type for argument 1 of `cabs'
> make[3]: *** [complex.o] Error 1
> make[3]: Leaving directory `/opt/sandbox/R-2.5.1/src/main'
> make[2]: *** [R] Error 2
> make[2]: Leaving directory `/opt/sandbox/R-2.5.1/src/main'
> make[1]: *** [R] Error 1
> make[1]: Leaving directory `/opt/sandbox/R-2.5.1/src'
> make: *** [R] Error 1
>

I'll continue to document my progress on the list for anyone else who  
may need to do this in the future.

cheers,

james a kyle



More information about the R-SIG-Mac mailing list