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@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@pogma.com>
build of 1.7.0 fails on OS X
4 messages · Alex Buerkle, Luke Tierney, Jan de Leeuw
This suggests configure was not able to find your dlcompat library or that it isn't working for some reason. Checking config.log may give more info. luke
On Mon, 21 Apr 2003, 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@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@pogma.com>
_______________________________________________ R-SIG-Mac mailing list R-SIG-Mac@stat.math.ethz.ch https://www.stat.math.ethz.ch/mailman/listinfo/r-sig-mac
Luke Tierney University of Iowa Phone: 319-335-3386 Department of Statistics and Fax: 319-335-3017 Actuarial Science 241 Schaeffer Hall email: luke@stat.uiowa.edu Iowa City, IA 52242 WWW: http://www.stat.uiowa.edu
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@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@pogma.com>
_______________________________________________ R-SIG-Mac mailing list R-SIG-Mac@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@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
Thanks for the replies. The problem was that the fink package dlcompat-dev was not installed. I think the critical file that it contains is /sw/include/dlfcn.h (maybe /sw/lib/libdl.a). I use fink, so dlcompat-dev is required, in addition to the packages dlcompat and dlcompat-shlibs. Apparently ./configure tests for some aspect of dlcompat that was present without dlcompat-dev and proceeds, even though dlfcn.h is not present and is necessary for compiling. Perhaps it is the absence of /sw/lib/libdl.a that causes the build to fail. Anyway, seems like configure should fail in this case and that this is a bug in the build process. Is that correct? FYI, here are the parts of the different packages: dpkg -L dlcompat-dev /. /sw /sw/include /sw/include/dlfcn.h /sw/lib /sw/lib/libdl.a /sw/share /sw/share/doc /sw/share/doc/dlcompat-dev /sw/share/doc/dlcompat-dev/LICENSE /sw/lib/libdl.dylib dpkg -L dlcompat /. /sw /sw/include /sw/lib /sw/share /sw/share/doc /sw/share/doc/dlcompat /sw/share/doc/dlcompat/ChangeLog /sw/share/doc/dlcompat/dlfcn_simple.c /sw/share/doc/dlcompat/LICENSE /sw/share/doc/dlcompat/README /sw/share/doc/dlcompat/TODO /sw/share/man /sw/share/man/man3 /sw/share/man/man3/dlopen.3 /sw/share/man/man3/dlclose.3 /sw/share/man/man3/dlerror.3 /sw/share/man/man3/dlsym.3 dpkg -L dlcompat-shlibs /. /sw /sw/lib /sw/lib/libdl.0.dylib /sw/share /sw/share/doc /sw/share/doc/dlcompat-shlibs /sw/share/doc/dlcompat-shlibs/LICENSE -Alex Buerkle
On Monday, Apr 21, 2003, at 10:59 US/Central, Luke Tierney wrote:
This suggests configure was not able to find your dlcompat library or that it isn't working for some reason. Checking config.log may give more info. luke On Mon, 21 Apr 2003, 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@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@pogma.com>
_______________________________________________ R-SIG-Mac mailing list R-SIG-Mac@stat.math.ethz.ch https://www.stat.math.ethz.ch/mailman/listinfo/r-sig-mac
-- Luke Tierney University of Iowa Phone: 319-335-3386 Department of Statistics and Fax: 319-335-3017 Actuarial Science 241 Schaeffer Hall email: luke@stat.uiowa.edu Iowa City, IA 52242 WWW: http://www.stat.uiowa.edu
~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~ C. Alex Buerkle Ph: 715-836-3383 Phillips Hall 330 Fax: 715-836-5089 Department of Biology University of Wisconsin-Eau Claire Eau Claire, WI 54702-4004 http://www.uwec.edu/buerkla buerkla@uwec.edu