U-E59264-Osman F Buyukisik
2000-Aug-11 15:06 UTC
[Rd] R-devel Aug-09 1.2.0 build on hpux10.20
Hello, I had to set CPPFLAGS and FC=fort77 but configure saw atlas and used it instead of blas. However atlas for hp seems to missing some libs. I had to add -lblas in Makeconf. Everything builds ok. But modreg and tcltk doesn't load. R : Copyright 2000, The R Development Core Team Version 1.2.0 Under development (unstable) (2000-August-9) 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 a list. 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.> library(modreg)Error in dyn.load(x, as.logical(local), as.logical(now)) : unable to load shared library "/home/absd00t/R-devel/library/modreg/libs/modreg.sl": can't open /home/absd00t/R-devel/library/modreg/libs/modreg.sl Error in library(modreg) : .First.lib failed>First checked the lowessc.c routine and it had F77_SUB(...) but I could not find a macro for that in the include files. There was F77_SYMBOL() so I changed to F77_SUB to F77_SYMBOL, but it still doesn't load. Is there a way to get more info why it doesn't open? TIA, Osman -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On Fri, 11 Aug 2000, U-E59264-Osman F Buyukisik wrote:> Hello, > I had to set CPPFLAGS and FC=fort77 but configure saw atlas and used > it instead of blas. However atlas for hp seems to missing some libs. I > had to add -lblas in Makeconf. Everything builds ok. But modreg and > tcltk doesn't load. > R : Copyright 2000, The R Development Core Team > Version 1.2.0 Under development (unstable) (2000-August-9)That might well be a problem. R-devel has been undergoing major changes recently. You should be able to use --with-blas use specified BLAS library to avoid atlas. But BLAS configuration was changed in two steps, and you may just have caught the middle.> 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 a list. > > 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. > > > library(modreg) > Error in dyn.load(x, as.logical(local), as.logical(now)) : > unable to load shared library "/home/absd00t/R-devel/library/modreg/libs/modreg.sl": > can't open /home/absd00t/R-devel/library/modreg/libs/modreg.sl > Error in library(modreg) : .First.lib failed > > > > First checked the lowessc.c routine and it had F77_SUB(...) but I > could not find a macro for that in the include files. There was > F77_SYMBOL() so I changed to F77_SUB to F77_SYMBOL, but it still doesn'tWell, there is one (in R_ext/RS.h), *and* it is documented in `Writing R Extensions'. (It seems pretty unlikely that something which has been in R releases for a year or so would be wrong in a way like that.) Making changes like that in the dark is not usually a good idea. It is likely that modreg.sl is missing some blas libs, since you I suppose did not change etc/Makeconf too.> load. > Is there a way to get more info why it doesn't open?Is the error message correct? It says the shared library cannot be opened. Does it exist? How helpful those messages are is OS-dependent. I would take a look at your shared libraries with nm -g to see what symbols are unsatisfied, as that is usually enough clue. -- Brian D. Ripley, ripley@stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272860 (secr) Oxford OX1 3TG, UK Fax: +44 1865 272595 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
U-E59264-Osman F Buyukisik
2000-Aug-11 19:05 UTC
[Rd] R-devel Aug-09 1.2.0 build on hpux10.20
Prof Brian D Ripley writes: > > It seems like d1mach and a few others are not in any of the blas libs > > I have :-( Also my hp supplied blas libs are .a not shared. Can't load > > them when building modreg.sl > > Why not? That is what is supposed to happen when $(BLAS_LIBS) is > included on the load line, shared or not. I get an error about non position independent code being in the lib. Tells me to recompile with +z option !! This is a shortcoming of hp's linker I think. > > Try using --without-blas or --with-blas=no. If that works, > try --with-blas=blas (or whatever). If it does not work, > the problem is not blas-related. > OK, --without-blas worked. Everything loads now. Thanks. I guess I still don't understand the config options :-( --with-blas=/opt/fortran/lib/pa2.0/libblas.a still grabs -latlas My shell is bash. I edited Makeconf and etc/Makeconf and did a make. Worked :-) Thanks again, Osman -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._