[Rd] packages in OS X
Jan de Leeuw
Sat, 6 Apr 2002 12:29:01 -0800
I compiled and installed fracdiff, akima, splancs and odesolve by adding
-m linker flag when foo.so is build.
I compiled and installed princurve and wle by removing nasty end-of-file
characters from some of the fortran sources
There are no solutions for the subselect and Matrix problems yet.
On Saturday, April 6, 2002, at 11:28 AM, Jan de Leeuw wrote:
> Simple CRAN packages which do not compile without modifications (all
> others do)
> -- akima
> /usr/bin/ld: multiple definitions of symbol _idlc_
> -- fracdiff
> /usr/bin/ld: multiple definitions of symbol _gammfd_
> (and others)
> -- odesolve
> -- princurve
> Error on line 116: Declaration error for v: adjustable dimension on
> -- splancs
> /usr/bin/ld: multiple definitions of symbol _bounds_
> -- wle
> Error on line 229: Declaration error for work: adjustable dimension on
> -- subselect
> configure: error: R was configured without a FORTRAN compiler
> ERROR: configuration failed for package `subselect'
> The multiple defined symbols are a well known OS X problem. There are
> ad hoc fixes
> using linker flags, but the best way to fix this is to use extern in
> the source code (although
> almost all these packages use f2c to translate the fortran into c). The
> "adjustable dimension"
> error is possibly an f2c problem. Ans subselect does not recognize f2c
> as a fortran
> Complicated/interface packages which compile (almost) out-of-the-box
> RGtk (although we need to add a typedef for ulong to gtkAccessors.c)
> XML (this gives a multiple defined symbol for xmlParserError, which is
> defined in Utils.c but also in libxml.dylib -- I commented out the
> in Utils.c, but this may be a bit heavy handed).
> CRAN packages I have not tried yet (because I don't have/use the things
> they interface to)
> CRAN packages which compile and install, but do not work
> > library("Matrix")
> Error in dyn.load(x, as.logical(local), as.logical(now)) :
> unable to load shared library
> dlcompat: dyld: /sw/lib/R/bin/R.bin Undefined symbols:
> Error in library("Matrix") : .First.lib failed
> If I use nm on Matrix.so, all these symbols are undefined.
Jan de Leeuw; Professor and Chair, UCLA Department of Statistics;
US mail: 9432 Boelter Hall, Box 951554, Los Angeles, CA 90095-1554
phone (310)-825-9550; fax (310)-206-5658; email: firstname.lastname@example.org
No matter where you go, there you are. --- Buckaroo Banzai
> r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-
> Send "info", "help", or "[un]subscribe"
> (in the "body", not the subject !) To: r-devel-
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: email@example.com