>>>>> Thomas Lumley writes:> On Fri, 1 Aug 1997, Kurt Hornik wrote: >> Thomas, >> >> Could you add the "-lf2c" at the end of the line >> @$(LD) $(SHLIBLDFLAGS) -o $(LIBNAME).so $(OBJS) >> in acepack's src-c/Makefile? >> >> I ran across an identical pow_dd problem recently with another package. >> Did we always need the "-lf2c", or is this a feature of the new version? >>> This is very strange. My copy works ok as is, in all the versions of > R I have installed (including 0.50a1). On the other hand, using nm > reveals that R0.50 has replaced pow_dd and pow_di by f77_pow_dd and > f77_pow_di respectively. It looks like the builtin subset of libf2c > has vanished. This is a problem, as we should not require people to > have f2c in order to run the C version of the library -- after all, if > they had f2c they could run the FORTRAN version.You're right, see also one of my previous mails. They now have POW_DD and f77_pow_dd (where does this come from, anyway). I think that in the ``old days'' we were lucky that everything was based on C, so FORTRAN was converted using f2c and compatibility functions were provided by the distribution proper. Of course, in general one cannot expect that ALL functions needed after using f2c would be in a compatibility library, unless it was identical to libf2c ... But clearly, pow_dd and pow_di should exist again ...> I'll also do the version numbers. I should probably regenerate all > the help files, and there may also be more changes to survival4 now > that array subsetting works properly. Unfortunately the test file now > doesn't work, as R batch mode terminates on errors, and the file stops > at the first unimplemented feature.O.k., no problem. As long as there are packages maintained by me without version numbers ... Best, -k =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- 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 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Martin Maechler
1997-Aug-04 13:10 UTC
R-alpha: Re: pow_dd & pow_di [was f2clib.c etc..] -- yes, please !
>>>>> "Kurt" == Kurt Hornik <Kurt.Hornik@ci.tuwien.ac.at> writes:>>>>> Thomas Lumley writes:>> On Fri, 1 Aug 1997, Kurt Hornik wrote: >>> Thomas, >>> >>> Could you add the "-lf2c" at the end of the line @$(LD) >>> $(SHLIBLDFLAGS) -o $(LIBNAME).so $(OBJS) in acepack's >>> src-c/Makefile? >>> >>> I ran across an identical pow_dd problem recently with another >>> package. Did we always need the "-lf2c", or is this a feature of >>> the new version? >>> >> This is very strange. My copy works ok as is, in all the versions >> of R I have installed (including 0.50a1). On the other hand, using >> nm reveals that R0.50 has replaced pow_dd and pow_di by f77_pow_dd >> and f77_pow_di respectively. It looks like the builtin subset of >> libf2c has vanished. This is a problem, as we should not require >> people to have f2c in order to run the C version of the library -- >> after all, if they had f2c they could run the FORTRAN version. yep Kurt> You're right, see also one of my previous mails. They now have Kurt> POW_DD and f77_pow_dd (where does this come from, anyway). I Kurt> think that in the ``old days'' we were lucky that everything was Kurt> based on C, so FORTRAN was converted using f2c and compatibility Kurt> functions were provided by the distribution proper. Of course, Kurt> in general one cannot expect that ALL functions needed after Kurt> using f2c would be in a compatibility library, unless it was Kurt> identical to libf2c ... Kurt> But clearly, pow_dd and pow_di should exist again ... Even more: I think it's just these two which should 'officially' part of the R binary, i.e., their sourc should be in src/main/ or src/math/ rather than in appl or somewhere. I think there are several instances in the current R source tree, where the code could be improved by using pow_d{d|i}(..). -- Martin =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- 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 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-