help in compiling XGRASS

It stopped at compiling pixmap. Here is the error echo:

undefined first referenced
symbol in file
rint OB/Pixmap.o
ld fatal: Symbol referencing errors. No output written to

I checked pixmap directory and found "rint" was defined
as follows in Graphics.c:

#ifdef IGRAPH
#define rint(x) ((double) ((int) ((x) + 0.5)))
#endif

Can anyone tell me what "IGRAPH" is for? Any hint regarding
this compilation would be appreciated.

--Xin
zhuang@access.dig.ex.com

Oops, it should be zhuang@access.digex.com

Xin Zhuang (zhuang@access.digex.net) writes on 10 Nov 93:

#ifdef IGRAPH
#define rint(x) ((double) ((int) ((x) + 0.5)))
#endif

Can anyone tell me what "IGRAPH" is for? Any hint regarding
this compilation would be appreciated.

I would guess that your machine (SCO) does not have rint(). IGRAPH
probably stands for Intergraph. Try the following:

/* #ifdef IGRAPH */
#define rint(x) ((double) ((int) ((x) + 0.5)))
/* #endif */

A more permanent fix may be to put
#define G_rint(x) ((double) ((int) ((x) + 0.5)))
in one of the GRASS include files and replace all occurrences
of rint() with G_rint().