Hi Paul, I use executable codes of tex and latex from http://aixpdslib.seas.ucla.edu/packages/tetex.html) and compile the original R-1.9.1 source codes using C for AIX compiler V6.0 and Fortran for AIX compiler 7.1.1 and generate 64 bit R environments. It works well.
Kexiao -----Original Message----- From: Paul Murrell [mailto:[EMAIL PROTECTED] Sent: Monday, August 02, 2004 6:10 PM To: Liao, Kexiao Subject: Re: Does tcltk matter for the plot Hi Liao, Kexiao wrote: > Hi Paul, > I still change the statement "return FALSE;" to "return NULL" in > function newX11Desc * Rf_allocNewX11DeviceDesc(double ps) so that the > codes can be compiled. Most of the R codes can be compiled successfully. Right, sorry, that change also needed to be made. > However there is something incompatible with tcltk package on the AIX. I > wonder does that cause the problem of core dump when I try to run the > plot() function from R? Thanks. This just looks like pdflatex is not installed properly. What happens if (completely separate from R) you try to pdflatex a latex file? Paul >>>>Building/Updating help pages for package 'tcltk' >>> > Formats: text html latex example > building/updating vignettes for package 'grid' ... > exec(): 0509-036 Cannot load program pdflatex because of the following > errors: > 0509-150 Dependent module libgcc_s.a(shr.o) could not be > loaded. > 0509-022 Cannot load module libgcc_s.a(shr.o). > 0509-026 System error: A file or directory in the path name does > not exist. > /home/liao1k/r-1.9.1/R-1.9.1/bin/texi2dvi: pdflatex exited with bad > status, quit > ting. > /home/liao1k/r-1.9.1/R-1.9.1/bin/texi2dvi: see displaylist.log for > errors. > Error in texi2dvi(texfile, pdf = TRUE, quiet = TRUE) : > running texi2dvi on displaylist.tex failed > Execution halted > make: 1254-004 The error code from the last command is 1. > > > Stop. > make: 1254-004 The error code from the last command is 2. > > -----Original Message----- > From: Paul Murrell [mailto:[EMAIL PROTECTED] > Sent: Sunday, August 01, 2004 6:35 PM > To: Liao, Kexiao > Cc: [EMAIL PROTECTED] > Subject: Re: [Rd] plot(x,y) core dump > > Hi > > Rf_allocNewX11DeviceDesc is called by newX11DeviceDriver and the latter > needs to check the value returned. I think Brian Ripley has made a fix > for this problem in the development version of R. The first few lines > of newX11DeviceDriver now look like ... > > newX11Desc *xd; > char *fn; > > xd = Rf_allocNewX11DeviceDesc(pointsize); > if(!xd) return FALSE; > > Unfortunately, your next problem may be that you can't start an X11 > device (it looks like you are failing to allocate memory for the > device). > > Paul > > > Liao, Kexiao wrote: > >>Dear R Development Team, >> >> I compile R-1.9.1 on AIX 5.2 under 2.9-aix51-020209, and xlf 7.1. > > In > >>order to let R compile successfully under gcc 2.9, I have to change > > one > >>C statement of file(RHOME//src/modules/X11/devX11.c) line 1768 from >>"retrun FALSE" to "retrun NULL", following is C code snapshot: >> >> >> >>newX11Desc * Rf_allocNewX11DeviceDesc(double ps) >> >>{ >> >> newX11Desc *xd; >> >> /* allocate new device description */ >> >> if (!(xd = (newX11Desc*)calloc(1, sizeof(newX11Desc)))) >> >> return NULL; >> >> >> >> /* From here on, if we need to bail out with "error", */ >> >> /* then we must also free(xd). */ >> >> >> >> /* Font will load at first use. */ >> >> >> >> if (ps < 6 || ps > 24) ps = 12; >> >> xd->fontface = -1; >> >> xd->fontsize = -1; >> >> xd->basefontface = 1; >> >> xd->basefontsize = ps; >> >> xd->handleOwnEvents = FALSE; >> >> xd->window = (Window) NULL; >> >> >> >> return(xd); >> >>} >> >> >> >>However I got core dump while I try to use plot() from R: >> >> >> >> >> >>R : Copyright 2004, The R Foundation for Statistical Computing >> >>Version 1.9.1 (2004-06-21), ISBN 3-900051-00-3 >> >> >> >>R is free software and comes with ABSOLUTELY NO WARRANTY. >> >>You are welcome to redistribute it under certain conditions. >> >>Type 'license()' or 'licence()' for distribution details. >> >> >> >>R is a collaborative project with many contributors. >> >>Type 'contributors()' for more information and >> >>'citation()' on how to cite R in publications. >> >> >> >>Type 'demo()' for some demos, 'help()' for on-line help, or >> >>'help.start()' for a HTML browser interface to help. >> >>Type 'q()' to quit R. >> >> >> >> >> >>>help.start() >> >> >>Making links in per-session dir ... >> >>If /usr/bin/netscape is already running, it is *not* restarted, and >> >> you must switch to its window. >> >>Otherwise, be patient ... >> >> >> >>>x <- rnorm(50) >> >> >>>y <- rnorm(x) >> >> >>>plot(x,y) >> >> >>Illegal instruction (core dumped) >> >> >> >> >> >>Can anyone give me some suggestion? Thanks! >> >> >> >> >> >>Kexiao >> >> >> >> >> [[alternative HTML version deleted]] >> >>______________________________________________ >>[EMAIL PROTECTED] mailing list >>https://www.stat.math.ethz.ch/mailman/listinfo/r-devel > > > -- Dr Paul Murrell Department of Statistics The University of Auckland Private Bag 92019 Auckland New Zealand 64 9 3737599 x85392 [EMAIL PROTECTED] http://www.stat.auckland.ac.nz/~paul/ ______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
