I am trying to get R 1.0 running on the Mac. The main target is MacX. Anyone else working on that? For the recent Macintosh system, I am trying to compile R using MachTen. The R core compiles and runs without any changes, using the Unix make files. The libraries give some problems, presumably due to handling of shared libraries. It seems I am missing something to link. Before I spend my time hunting it down, maybe someone has an immediate idea. gs. =my output: make[4]: Entering directory `//local.src/R-1.0.0/src/library/ctest/src' gcc -shared -Xlsharedlibrary -Xlexpall -o ctest.so alnorm.o ansari.o fexact.o kendall.o ks.o prho.o swilk.o -L/usr/lib/gcc-lib/powerpc-apple-machten4/2.8.1 -lg2c -lm ansari.o: In function `errmsg': ansari.c:13: undefined reference to `Rf_error' ansari.o: In function `w_init': ansari.c:21: undefined reference to `R_chk_calloc' ... ansari.c:84: undefined reference to `Rf_choose' ansari.o: In function `pansari': ansari.c:110: undefined reference to `Rf_choose' fexact.o: In function `fexact': ... kendall.c:24: undefined reference to `Rf_sign' kendall.o: In function `ckendall': kendall.c:99: undefined reference to `Rf_gammafn' swilk.o: In function `swilk': swilk.c:92: undefined reference to `Rf_qnorm5' swilk.c:166: undefined reference to `Rf_sign' ... -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
"G. Sawitzki" <gs@statlab.uni-heidelberg.de> writes:> I am trying to get R 1.0 running on the Mac........> The libraries give some problems, presumably due to handling of shared > libraries. It seems I am missing something to link. Before I spend my time > hunting it down, maybe someone has an immediate idea.......> make[4]: Entering directory `//local.src/R-1.0.0/src/library/ctest/src' > gcc -shared -Xlsharedlibrary -Xlexpall -o ctest.so alnorm.o ansari.o > fexact.o kendall.o > ks.o prho.o swilk.o -L/usr/lib/gcc-lib/powerpc-apple-machten4/2.8.1 -lg2c -lm > ansari.o: In function `errmsg': > ansari.c:13: undefined reference to `Rf_error' > ansari.o: In function `w_init': > ansari.c:21: undefined reference to `R_chk_calloc'Hi Gunther, I don't know whether it helps, but those unresolved references are supposed to be there (they point to items in the main R binary) and be resolved at dyn.load time. That is usually allowed when using the -shared switch to gcc, although some systems (notably AIX and Win32) require you use an explicit import library generated from the R binary. -p -- O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk) FAX: (+45) 35327907 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Dear Sawiztki, I'm also working on the porting of R 1.0 to MacOS. I'm in contact Ross Ihaka and he thinks (and I agree) that we should use a cross platform interface like wxWindows (http://wxwindows.org). Let us know what you think about it. Stefano>I am trying to get R 1.0 running on the Mac. > >The main target is MacX. Anyone else working on that? > >For the recent Macintosh system, I am trying to compile R using MachTen. >The R core compiles and runs without any changes, using the Unix make files. > >The libraries give some problems, presumably due to handling of shared >libraries. It seems I am missing something to link. Before I spend my time >hunting it down, maybe someone has an immediate idea. > gs. > > =>my output: > >make[4]: Entering directory `//local.src/R-1.0.0/src/library/ctest/src' >gcc -shared -Xlsharedlibrary -Xlexpall -o ctest.so alnorm.o ansari.o >fexact.o kendall.o > ks.o prho.o swilk.o -L/usr/lib/gcc-lib/powerpc-apple-machten4/2.8.1-lg2c -lm>ansari.o: In function `errmsg': >ansari.c:13: undefined reference to `Rf_error' >ansari.o: In function `w_init': >ansari.c:21: undefined reference to `R_chk_calloc' >... >ansari.c:84: undefined reference to `Rf_choose' >ansari.o: In function `pansari': >ansari.c:110: undefined reference to `Rf_choose' >fexact.o: In function `fexact': >... >kendall.c:24: undefined reference to `Rf_sign' >kendall.o: In function `ckendall': >kendall.c:99: undefined reference to `Rf_gammafn' >swilk.o: In function `swilk': >swilk.c:92: undefined reference to `Rf_qnorm5' >swilk.c:166: undefined reference to `Rf_sign' >... > > >-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.->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 >_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._>-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
>Hi Gunther, > >I don't know whether it helps, but those unresolved references are >supposed to be there (they point to items in the main R binary) and be >resolved at dyn.load time. That is usually allowed when using the >-shared switch to gcc, although some systems (notably AIX and Win32) >require you use an explicit import library generated from the R >binary. > > -p.. so there may be already a prepared rule and config flag somewhere to create this library? Which flag/option do I need? g. -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Hi Guenther, Are you going to be home in Sept? Can I still come and visit? I finally have made some decision about where I am going (and withdrew from the crazy thing at ETH). I'm off to Harvard some time in the fall, regards to you and Heidi, robert -- +-------------------------------------------------------------------------+ | Robert Gentleman phone : (64-9) 3737-599 ext 3946 | | Senior Lecturer fax : (64-9) 3737-018 | | Department of Statistics office : Room 206 Maths/Physics | | University of Auckland email : rgentlem@stat.auckland.ac.nz | +-------------------------------------------------------------------------+ -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Well, boy do I feel stupid; I was sure that I had set that to mail only to Guenther. Please disregard my impertinent comments regarding ETH, I apologize especially to Martin for making them. I will not put both feet in my mouth. I will not trust *&%^$& mailers. I will not put both feet in my mouth. I will not trust *&%^$& mailers. I will not put both feet in my mouth. I will not trust *&%^$& mailers. I will not put both feet in my mouth. I will not trust *&%^$& mailers. I will not put both feet in my mouth. I will not trust *&%^$& mailers. I will not put both feet in my mouth. I will not trust *&%^$& mailers. I will not put both feet in my mouth. I will not trust *&%^$& mailers. I will not put both feet in my mouth. I will not trust *&%^$& mailers. I will not put both feet in my mouth. I will not trust *&%^$& mailers. I will not put both feet in my mouth. I will not trust *&%^$& mailers. -- +-------------------------------------------------------------------------+ | Robert Gentleman phone : (64-9) 3737-599 ext 3946 | | Senior Lecturer fax : (64-9) 3737-018 | | Department of Statistics office : Room 206 Maths/Physics | | University of Auckland email : rgentlem@stat.auckland.ac.nz | +-------------------------------------------------------------------------+ -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._