From Martin Maechler <maechler@stat.math.ethz.ch>  Fri Mar  5 16:18:32 1999
From: Martin Maechler <maechler@stat.math.ethz.ch> (Martin Maechler)
Date: Fri, 5 Mar 1999 17:18:32 +0100
Subject: IRIX problem `gammal' [Andreas Krause ... Re: splus shell escapes]
In-Reply-To: <87ogm7vs1w.fsf@alpha.cfas.washington.edu>
 (rossini@biostat.washington.edu)
References: <87ogm7vs1w.fsf@alpha.cfas.washington.edu>
Message-ID: <199903051618.RAA28833@sophie.ethz.ch>

>>>>> "tony" == A J Rossini <rossini@biostat.washington.edu> writes:


    tony> Anyone know what the problem is with IRIX 6.5 ?  (esp if there is
    tony> a solution?).  Looks like the built-in math stuff is masking
    tony> definitions from R source.

    tony> (passing this along for a friend).

    ....


    tony> # download
    tony> ./configure


    tony> R is now configured for mips-sgi-irix6.5

    tony> Source directory:         .
    tony> Installation directory:   /usr/local
    tony> C compiler:               gcc -g -O2
    tony> FORTRAN compiler:         f77 

    tony> make

    tony> make[1]: Entering directory `/u/andreas/tmp/R/R-0.63.2/afm'
    tony> make[1]: Leaving directory `/u/andreas/tmp/R/R-0.63.2/afm'
    tony> make[1]: Entering directory `/u/andreas/tmp/R/R-0.63.2/demos'
    tony> make[1]: Leaving directory `/u/andreas/tmp/R/R-0.63.2/demos'
    tony> make[1]: Entering directory `/u/andreas/tmp/R/R-0.63.2/doc'
    tony> make[1]: Leaving directory `/u/andreas/tmp/R/R-0.63.2/doc'
    tony> make[1]: Entering directory `/u/andreas/tmp/R/R-0.63.2/etc'
    tony> make[1]: Leaving directory `/u/andreas/tmp/R/R-0.63.2/etc'
    tony> make[1]: Entering directory `/u/andreas/tmp/R/R-0.63.2/src'
    tony> make[2]: Entering directory
    tony> `/u/andreas/tmp/R/R-0.63.2/src/include' make[2]: Leaving
    tony> directory `/u/andreas/tmp/R/R-0.63.2/src/include' make[2]:
    tony> Entering directory `/u/andreas/tmp/R/R-0.63.2/src/appl'

    tony> gcc -g -O2 -I../include -I../../src/include  -c fft.c -o fft.o
    tony> In file included from fft.c:21:
    tony> ../include/Mathlib.h:255: conflicting types for `gammal'
    tony> /usr/include/math.h:819: previous declaration of `gammal'

Very funny.  

I wonder if Andreas really used an unaltered 0.63.2
There's no `gammal'  in   src/include/Mathlib.h (nor ./include/Mathlib.h)
especially not on line 255 where there's  qgamma(...)


    tony> make[2]: *** [fft.o] Error 1
    tony> make[2]: Leaving directory `/u/andreas/tmp/R/R-0.63.2/src/appl'
    tony> make[1]: *** [R] Error 1
    tony> make[1]: Leaving directory `/u/andreas/tmp/R/R-0.63.2/src'
    tony> make: *** [R] Error 1
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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]
Martin Maechler