[GRASS-user] Compilation failure in lib/gis/grassinit.c

Brad Douglas rez at touchofmadness.com
Mon Nov 13 00:02:19 EST 2006


On Sun, 2006-11-12 at 19:22 -0700, Tom Russo wrote:
> CVS updated this afternoon and got a compilation failure in lib/gis/gisinit.c:
> 
> gisinit.c: In function `G_gisinit':
> gisinit.c:40: error: `EXIT_FAILURE' undeclared (first use in this function)
> gisinit.c:40: error: (Each undeclared identifier is reported only once
> gisinit.c:40: error: for each function it appears in.)
> 
> and in several places in that file.  That resulted in a complete failure of 
> all grass modules to build (trying to link to the library that failed).
> 
> Turns out that on FreeBSD you need to include stdlib.h in order to get 
> EXIT_FAILURE defined.
> 
> Adding #include <stdlib.h> before all the other includes fixed the whole thing.

Fixed in CVS.


-- 
Brad Douglas <rez touchofmadness com>                    KB8UYR/6
Address: 37.493,-121.924 / WGS84    National Map Corps #TNMC-3785




More information about the grass-user mailing list