<div dir="ltr"><div><div><div>Hi Dave,<br><br></div>I'm not totally sure about this one, but it appears M_PI *may* be a GNU-ism -- a non-standard constant specific to the gcc compiler. I'll investigate this further, but if that's the case, we clearly should not rely on such a compiler-specific idiom. In the mean time, you could patch your copy of cro.c with the appropriate definition in order to move forward. <br><br></div>You say there are many errors -- are they beyond just this particular symbol being undefined?<br><br></div>Rick<br><div><div><br><div><div><br><br>Message: 1<br>
Date: Mon, 15 Sep 2014 15:56:26 -0300<br>
From: Dave Lane <<a href="mailto:dlane@ap.stmarys.ca">dlane@ap.stmarys.ca</a>><br>
Subject: [ncl-install] Installing ncarg on OS X 10.9 with ifort<br>
To: <a href="mailto:ncl-install@ucar.edu">ncl-install@ucar.edu</a><br>
Message-ID: <<a href="mailto:5417365A.5010200@ap.stmarys.ca">5417365A.5010200@ap.stmarys.ca</a>><br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>
Hi,<br>
<br>
I am having troubles building NCAR Graphics (6.2.0) on OS 10.9 with<br>
ifort (V13.0.2).<br>
<br>
First of all, with the same machine I have successfully compiled it with<br>
gfortran (both library versions are needed by the researcher).<br>
<br>
The first error (there are many) is:<br>
<br>
gcc-mp-4.9 -ansi -m64 -fopenmp -lsz -O -I../../../.././include<br>
-I/opt/intel/composer_xe_2011_sp1.10.328/compiler/include<br>
-I/opt/X11/include -I/opt/local/include -I/opt/X11/include/freetype2<br>
-I/opt/local/hdf4/ifort/include -I/opt/local/szip/ifort/include<br>
-DDarwin -DCTXT -DX11 -DPS -DPDF -DPIX -DSYSV -D_POSIX_SOURCE<br>
-D_XOPEN_SOURCE -DByteSwapped -D__UNIXOS2__ -DNeedFuncProto -c -o<br>
cro.o cro.c<br>
cro.c: In function 'cro_Polymarker':<br>
cro.c:1451:71: error: 'M_PI' undeclared (first use in this function)<br>
cairo_arc(context, xc, yc, mscale * marker_size, 0., 2. *<br>
M_PI);<br>
^<br>
cro.c:1451:71: note: each undeclared identifier is reported only once<br>
for each function it appears in<br>
make[5]: *** [cro.o] Error 1<br>
<br>
The cro.c file is this one: ./ncarg2d/src/libncarg_gks/cdrivers/cro.c<br>
<br>
Any idea where MP_I is supposed to be defined?<br>
<br>
--- Dave<br>
<br>
</div></div></div></div></div>