Has anyone succeeded in compiling R on HP-UX? I'm trying to compile R version 1.1.0 on a HP-UX 10.20 machine. I run into the following problems: I got a compile error on src/unix/X11/rbitmap.c which I solved by including setjmp.h. After that, and after editing the Makefiles a bit cause gcc en ld can't find all the libraries, I finally get it to compile. Then I run "make install", and it looks OK. But R won't start. It complains it can't load R_X11.sl, which I checked is definately in the place R is looking for it. So I recompiled R linking all the sources that go into R_X11.sl derictly into R.bin. No R does run, but it crashes with a segmentation fault as soon as it tries to open a window. Does anyone know about similar problems, and found a solutions? I checked the archives for the last year, but couldn't find any reference to this type of problem. The `file' command gives some information that might be informative. Or not. It says: R.bin: PA-RISC2.0 shared executable dynamically linked -not stripped R_X11.sl: PA-RISC1.1 shared library -not stripped Both files were created in the same run from make. I used gcc version 2.95.2. I also tried gcc version egcs-2.91.60, but run into much more trouble because it couldn't find "address indepedent" libraries nessary to link R libraries. I compiled R using gcc version 2.7.2.3 on Linux 2.0.36 and had no problems. And another thing: "configure" on HP-UX says it can't use tcl/tk, but it can on Linux. But my Linux and the HP-UX machine have identical versions of tcl and tk installed. -- Peter Kleiweg http://www.let.rug.nl/~kleiweg/ -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help 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-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Peter Kleiweg <kleiweg at let.rug.nl> writes:> Has anyone succeeded in compiling R on HP-UX? > > I'm trying to compile R version 1.1.0 on a HP-UX 10.20 > machine. I run into the following problems: > > I got a compile error on src/unix/X11/rbitmap.c which I solved > by including setjmp.h. After that, and after editing the > Makefiles a bit cause gcc en ld can't find all the libraries, I > finally get it to compile. Then I run "make install", and it > looks OK. But R won't start. It complains it can't load > R_X11.sl, which I checked is definately in the place R is > looking for it. So I recompiled R linking all the sources that > go into R_X11.sl derictly into R.bin. No R does run, but it > crashes with a segmentation fault as soon as it tries to open a > window.Hmm. My guess would be that you need to work harder on getting dynamic loading to work. Too much does not work without it. Do you have a debugger so that you can see what R is trying to do at the point where it protests?> Does anyone know about similar problems, and found a > solutions? I checked the archives for the last year, but > couldn't find any reference to this type of problem.I'm fairly sure someone had it working at some point, but HP-UX is not among the systems we have regular access to.> And another thing: "configure" on HP-UX says it can't use > tcl/tk, but it can on Linux. But my Linux and the HP-UX > machine have identical versions of tcl and tk installed.That would most likely be a question of being able to find the libraries and support files rather than the versions themselves -- O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help 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-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Peter Kleiweg wrote:> > Has anyone succeeded in compiling R on HP-UX? >I regularly build on our HP-UX systems, nokomis% uname -a HP-UX nokomis B.10.20 A 9000/715 2012422816 two-user license Running configure with no arguments or environment settings gives me R is now configured for hppa1.1-hp-hpux10.20 Source directory: . Installation directory: /usr/local C compiler: gcc -g -O2 FORTRAN compiler: fort77 -g X11 support: yes Gnome support: no Tcl/Tk support: no Our gcc is 2.8.1; we dont have g77. I can also build with cc by running configure under a csh shell as env CC=cc CFLAGS=-Wp,-H16000 configure This gives me R is now configured for hppa1.1-hp-hpux10.20 Source directory: . Installation directory: /usr/local C compiler: cc -D_HPUX_SOURCE -g -Aa FORTRAN compiler: fort77 -g X11 support: yes Gnome support: no Tcl/Tk support: no To track down the shared library problem you could try this: If you add BIND_VERBOSE to the flags for shl_load then shl_load may print something useful, like the name of the symbol it can't find. The call to shl_load is in src/unix/hpdlfcn.c, but even though this is a .c file it is used by inclusion in src/unix/dynload.c, so that is the file that needs to be recompiled.> > R.bin: PA-RISC2.0 shared executable dynamically linked -not stripped > R_X11.sl: PA-RISC1.1 shared library -not stripped >We only have 1.1 systems, so I'm not sure what is different about 2.0, but this difference in versions looks worrying. There may be an incompatibility between these and there may be a problem with the combination of gcc and ld or something along those lines. luke -- Luke Tierney University of Minnesota Phone: 612-625-7843 School of Statistics Fax: 612-624-8868 313 Ford Hall, 224 Church St. S.E. email: luke at stat.umn.edu Minneapolis, MN 55455 USA WWW: http://www.stat.umn.edu -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help 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-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._