R-1.6.1, Mac OS X 10.2.2 build failure

Luke Tierney luke@stat.uiowa.edu
Thu, 14 Nov 2002 16:34:08 -0600 (CST)


You might want to double check the dlcompat you have.  THere was some
discussiion about this a week or two ago in conneciton with plain
darwin I think.  Mac compilers prepend underscores to C names; most
other systems don't.  R's config assumes that R has to prepend an
underscore.  But as I recall you can configure dlcompat to do that for
you, and if that is what you have then you are getting two underscores
instead of one.  Don't know if that is the problem, but it's something
to check.

luke

On Thu, 14 Nov 2002, Gregory Wright wrote:

> 
> On Thursday, November 14, 2002, at 12:35 PM, Jan de Leeuw wrote:
> 
> > I know what I would do. It does not rebuild "methods". I would do a
> > make distclean in your build directory and configure from scratch.
> >
> >
> >
> 
> Hi,
> 
> I unpacked a fresh 1.6.1 tarball, reconfigured and rebuilt from 
> scratch. The results were similar:
> 
> <...stuff omitted..>
> cc1: warning: changing search order for system directory 
> "/usr/local/include"
> cc1: warning:   as it has already been specified as a non-system 
> directory
> gcc -no-cpp-precomp -I../../../../include  -I/usr/local/include   
> -fno-common  -g -O2 -c methods_list_dispatch.c -o 
> methods_list_dispatch.o
> cc1: warning: changing search order for system directory 
> "/usr/local/include"
> cc1: warning:   as it has already been specified as a non-system 
> directory
> gcc -no-cpp-precomp -I../../../../include  -I/usr/local/include   
> -fno-common  -g -O2 -c method_meta_data.c -o method_meta_data.o
> cc1: warning: changing search order for system directory 
> "/usr/local/include"
> cc1: warning:   as it has already been specified as a non-system 
> directory
> gcc -no-cpp-precomp -I../../../../include  -I/usr/local/include   
> -fno-common  -g -O2 -c slot.c -o slot.o
> cc1: warning: changing search order for system directory 
> "/usr/local/include"
> cc1: warning:   as it has already been specified as a non-system 
> directory
> gcc -no-cpp-precomp -I../../../../include  -I/usr/local/include   
> -fno-common  -g -O2 -c class_support.c -o class_support.o
> cc1: warning: changing search order for system directory 
> "/usr/local/include"
> cc1: warning:   as it has already been specified as a non-system 
> directory
> gcc -bundle -flat_namespace -undefined suppress -L/usr/local/lib -o 
> methods.so do_substitute_direct.o methods_list_dispatch.o 
> method_meta_data.o slot.o class_support.o
> mkdir -p -- ../../../../library/methods/libs
> dumping R code in package 'methods'
> Error in .Call("R_initialize_methods_metadata", table, PACKAGE = 
> "methods") :
>          .Call function name not in load table
> Execution halted
> make[4]: *** [../../../library/methods/R/all.rda] Error 1
> make[3]: *** [all] Error 2
> make[2]: *** [R] Error 1
> make[1]: *** [R] Error 1
> make: *** [R] Error 1
> 
> The configuration was
> 
> bash-2.05a$ export TCLTK_LIBS="-framework Tcl -framework Tk"
> bash-2.05a$ export 
> TCLTK_CPPFLAGS="-I/Library/Frameworks/Tcl.framework/Headers 
> -I/Library/Frameworks/Tk.framework/Headers"
> ../configure 
> --with-tcl-config=/Library/Frameworks/Tcl.framework/tclConfig.sh 
> --with-tk-config=/Library/Frameworks/Tk.framework/tkConfig.sh
> 
> 
> and configure's summary was
> 
> R is now configured for powerpc-apple-darwin6.2
> 
>    Source directory:          .
>    Installation directory:    /usr/local
> 
>    C compiler:                gcc  -g -O2
>    C++ compiler:              g++  -g -O2
>    Fortran compiler:          g77  -g -O2
> 
>    X11 support:               yes
>    Gnome support:             no
>    Tcl/Tk support:            yes
>    Readline support:          yes
> 
>    R profiling support:       yes
>    R as a shared library:     no
> 
>    Recommended packages:      yes
> 
> 
> Is there something obvious that I should be examining to find the root 
> of the this?
> 
> Best Wishes,
> Greg Wright
> 
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
> Send "info", "help", or "[un]subscribe"
> (in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
> 

-- 
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

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._