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

Tom Russo russo at bogodyn.org
Sun Nov 12 21:22:24 EST 2006


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.

-- 
Tom Russo    KM5VY   SAR502   DM64ux          http://www.swcp.com/~russo/
Tijeras, NM  QRPL#1592 K2#398  SOC#236 AHTB#1 http://kevan.org/brain.cgi?DDTNM
"And, isn't sanity really just a one-trick pony anyway? I mean all you get is
 one trick, rational thinking, but when you're good and crazy, oooh, oooh,
 oooh, the sky is the limit!"  --- The Tick




More information about the grass-user mailing list