[R] Compiling error

Winfried Theis theis at statistik.uni-dortmund.de
Mon Jun 19 18:48:10 CEST 2000

On 19-Jun-00 Peter Dalgaard BSA wrote:
> Winfried Theis <theis at statistik.uni-dortmund.de> writes:
>> gcc -I. -I../../src/include -I../../src/include -I../../src/include/R_ext
>> -I/usr/local/include -DHAVE_CONFIG_H -mieee-fp -D__NO_MATH_INLINES  -O2 -c
>> pnorm.c -o pnorm.o
>> pnorm.c: In function `Rf_pnorm5':
>> pnorm.c:62: `ML_ERR_return_NAN' undeclared (first use in this function)
>> pnorm.c:62: (Each undeclared identifier is reported only once
>> pnorm.c:62: for each function it appears in.)
>> pnorm.c:66: `ML_NAN' undeclared (first use in this function)
>> pnorm.c:67: `ML_NEGINF' undeclared (first use in this function)
> Odd. pnorm.c has 
I thought so as well! So I checked if anything went wrong before but no warning
or anything like it...
>#include "nmath.h"
> which ought to define those items, unless MATHLIB_PRIVATE_H is
> defined which it is not. This happens with a clean build?
I just checked with "make clean; make" but got the same result. 

I just had a look at pnorm.c and there is no 
#include "nmath.h"     but
#include "Mathlib.h"
#include "dpq.h"

if it is not equivalent to nmath.h there seems to be a difference to the actual
R-release.tar.bz2 which I got...

Prof. Ripley asked me to check the search path. I looked at the mentioned
directories and did find Mathlib.h in the first one but in neither of them
nmath.h. (Dear Prof. Ripley:Would you give me a hint, how to make gcc print out
the search path like you did in your mail?) 

I hope I gathered enough information to trace down this problem.

Winfried Theis 
E-Mail: Winfried Theis <theis at statistik.uni-dortmund.de>
Date: 19-Jun-00
Tel.: +49-231-755-5903                  Room: Mathematikgebäude, M832
Dipl.-Math. Winfried Theis, Graduiertenkolleg "Angewandte Statistik",
Universität Dortmund, 44221 Dortmund
r-help 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-help-request at stat.math.ethz.ch

More information about the R-help mailing list