From Andreas.Krause@genedata.com  Fri Mar  5 16:54:14 1999
From: Andreas.Krause@genedata.com (Andreas Krause)
Date: Fri, 05 Mar 1999 17:54:14 +0100
Subject: IRIX problem `gammal' [Andreas Krause ... Re: splus shell escapes]
References: <87ogm7vs1w.fsf@alpha.cfas.washington.edu> <199903051618.RAA28833@sophie.ethz.ch> <x2u2vzzyqi.fsf@blueberry.kubism.ku.dk>
Message-ID: <36E00C36.FF64C16@genedata.com>

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


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