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

Andreas Krause
Fri, 05 Mar 1999 17:54:14 +0100


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); 


#define qgamma  gammal
#define qlgamma lgammal
#define qsigngam signgaml

extern long double gammal( long double );

extern long double lgammal( long double );


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

does the job. Thanks again!

r-devel mailing list -- Read
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: