Skip to content
Back to formatted view

Raw Message

Message-ID: <3AAFB126-2344-45BF-AE29-074C5DB510DC@ucla.edu>
Date: 2007-08-14T18:39:27Z
From: James Kyle
Subject: Compiling 2.5.1 on OSX Panther (James Kyle)
In-Reply-To: <3F129DE1-E4A1-4922-8D23-4D4DE31E3D9E@ucla.edu>

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