[R-SIG-Mac]build of 1.7.0 fails on OS X

Jan de Leeuw deleeuw at stat.ucla.edu
Mon Apr 21 10:06:27 MEST 2003


I am not sure about this one, but the differences with my  
build/environment are

I use

configure --with-tcl-config=/sw/lib/tclConfig.sh  
--with-tk-config=/sw/lib/tkConfig.sh --enable-R-shlib --with-gnome  
--with-b
las='-framework vecLib' --with-lapack

there is no need to use the CPPFLAGS and LDFLAGS

Also, for what it's worth, I use gcc/g77 version 1175 (which I think  
came with the December Developer Tools).

Make sure you dont have dlcompat from darwinports or opendarwin sitting  
in /usr/local/lib or /opt/lib

One thing you can do is mask /usr/local during config and build (by  
renaming to /usr/local/tmp) and
unmask before the install.

Also make sure you do a clean install (make distclean in any previous  
build).


On Monday, Apr 21, 2003, at 08:49 US/Pacific, Alex Buerkle wrote:

>
> For the first time in a while I tried building R on OS X.
>
> The configure of R-1.7.0 completed, but the build fails with error  
> below.  This error was reported in June 2002, but none of the  
> suggested fixes resolves the issue for me  
> (http://maths.newcastle.edu.au/~rking/R/help/02a/4783.html).
>
> Anyone have any suggestions (other than installing the binaries from  
> gifi)?
>
> Thanks, Alex Buerkle
>
>
> ./configure  R_PAPERSIZE="letter" CPPFLAGS="-I/sw/include" \
> LDFLAGS="-L/sw/lib/" --enable-R-shlib --with-x \
> --with-blas='-framework vecLib' \
> --with-lapack
>
> ......
>
> R is now configured for powerpc-apple-darwin6.5
>
>   Source directory:          .
>   Installation directory:    /usr/local
>
>   C compiler:                gcc  -g -O2
>   C++ compiler:              g++  -g -O2
>   Fortran compiler:          g77  -g -O2
>
>   Interfaces supported:      X11, tcltk
>   External libraries:        readline, BLAS(generic), LAPACK(in blas)
>   Additional capabilities:   JPEG, bzip2, PCRE
>   Options enabled:           shared library, R profiling
>
>   Recommended packages:      yes
>
>
> ./make
>
> ...
>
> making strdup.d from strdup.c
> making strncasecmp.d from strncasecmp.c
> making vsnprintf.d from vsnprintf.c
> gcc   -I../../src/extra/pcre -no-cpp-precomp -I. -I../../src/include  
> -I../../src/include -I/sw/include -DHAVE_CONFIG_H   -g -O2 -c  
> CConverters.c -o CConverters.o
> gcc   -I../../src/extra/pcre -no-cpp-precomp -I. -I../../src/include  
> -I../../src/include -I/sw/include -DHAVE_CONFIG_H   -g -O2 -c  
> Rdynload.c -o Rdynload.o
> Rdynload.c: In function `R_FindSymbol':
> Rdynload.c:1036: `CFunTab' undeclared (first use in this function)
> Rdynload.c:1036: (Each undeclared identifier is reported only once
> Rdynload.c:1036: for each function it appears in.)
> make[3]: *** [Rdynload.o] Error 1
> make[2]: *** [R] Error 2
> make[1]: *** [R] Error 1
> make: *** [R] Error 1
>
>
> -----------
>
> OS X 10.2.5
>
> gcc -v
> Reading specs from /usr/libexec/gcc/darwin/ppc/3.1/specs
> Thread model: posix
> Apple Computer, Inc. GCC version 1151, based on gcc version 3.1  
> 20020420 (prerelease)
>
> g77 -v
> Reading specs from /sw/lib/gcc-lib/powerpc-apple-darwin6.2/3.1/specs
> Configured with: ../gcc3/configure --prefix=/sw --enable-languages=f77  
> --infodir=${prefix}/share/info
> Thread model: single
> Apple Computer, Inc. GCC version 1151, based on gcc version 3.1  
> 20020420 (prerelease)
>
>
> dpkg -s dlcompat
> Package: dlcompat
> Status: install ok installed
> Priority: optional
> Section: libs
> Maintainer: Peter O'Gorman <peter at pogma.com>
> Source: dlcompat
> Version: 20021117-1
> Depends: dlcompat-shlibs (= 20021117-1)
> Description: Dynamic loading compatibility library
>  dlcompat provides the dlopen() interface for dynamic loading of
>  modules for applications that need it. It was written by
>  Jorge Acereda and Peter O'Gorman.
>  .
>  Maintainer: Peter O'Gorman <peter at pogma.com>
>
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac at stat.math.ethz.ch
> https://www.stat.math.ethz.ch/mailman/listinfo/r-sig-mac
>
>
===
Jan de Leeuw; Professor and Chair, UCLA Department of Statistics;
Editor: Journal of Multivariate Analysis, Journal of Statistical  
Software
US mail: 9432 Boelter Hall, Box 951554, Los Angeles, CA 90095-1554
phone (310)-825-9550;  fax (310)-206-5658;  email: deleeuw at stat.ucla.edu
homepage: http://gifi.stat.ucla.edu
   
------------------------------------------------------------------------ 
-------------------------
           No matter where you go, there you are. --- Buckaroo Banzai
                    http://gifi.stat.ucla.edu/sounds/nomatter.au



More information about the R-SIG-Mac mailing list