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

Andreas Krause Andreas.Krause@genedata.com
Fri, 05 Mar 1999 17:54:14 +0100


Hi. 

Peter Dalgaard BSA wrote:

> It's possible that IRIX has a macro defining qgamma to be
> gammal, in which case an "#undef qgamma" in Mathlib.h might do the
> trick.

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