Skip to content
Prev 1799 / 63424 Next

IRIX problem `gammal' [Andreas Krause ... Re: splus shell escapes]

Hi.
Peter Dalgaard BSA wrote:

            
The suspicion is right. 
Here is an excerpt from /usr/include/math.h:

extern double   gamma(double);
extern double   lgamma(double); 

...

#if _XOPEN4 && _NO_ANSIMODE
#define qgamma  gammal
#define qlgamma lgammal
#define qsigngam signgaml

extern long double gammal( long double );

extern long double lgammal( long double );
#endif

------------

Modifying src/include/Mathlib.h to

        /* Gamma and Related Functions */

#undef qgamma  

does the job indeed. Thanks, Peter!

...
However, for the sake of completeness, there's another problem on Irix:
f77  -fpic -c bsplvd.f -o bsplvd.o
f77 ERROR parsing -fpic:  unknown flag
make[4]: *** [bsplvd.o] Error 2

Outcommenting in configure 
if test "${CC}" = gcc; then
  cpicflags=-fpic
fi

does the job. Thanks again!


         andreas
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._