[GRASS5] Autoconf problems, Grass 5.1 solaris 8 sparc

cheg01 at attbi.com cheg01 at attbi.com
Sun Mar 16 12:39:03 EST 2003

I also get a compile time error when "--with-nls" is used. libgis fails
because of a problem with glocale.h:

make[2]: Entering directory `/usr3/grass51/lib/gis'
gcc -g -Wall  -Wall  -I/usr3/grass51/include -I/usr3/grass51/dist.sparc-sun
-solaris2.8/include      -I/usr3/grass51/include \
            -I/usr3/grass51/dist.sparc-sun-solaris2.8/include \
        -o OBJ.sparc-sun-solaris2.8/adj_cellhd.o -c adj_cellhd.c
adj_cellhd.c: In function `G_adjust_Cell_head':
adj_cellhd.c:44: `PACKAGE' undeclared (first use in this function)
adj_cellhd.c:44: (Each undeclared identifier is reported only once
adj_cellhd.c:44: for each function it appears in.)
adj_cellhd.c: At top level:
/usr3/grass51/include/gis.h:36: warning: `GRASS_copyright' defined but not
make[2]: *** [OBJ.sparc-sun-solaris2.8/adj_cellhd.o] Error 1
make[2]: Leaving directory `/usr3/grass51/lib/gis'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/usr3/grass51/lib'
make: *** [default] Error 1

adj_cellhd.c #includes glocale.h, which contains:

extern char * G_gettext(const char *, const char *);

#if defined(HAVE_LIBINTL_H) && defined(USE_NLS)
#include <libintl.h>
#define _(str) G_gettext(PACKAGE,(str))
#define _(str) (str)

Looks like PACKAGE is supposed to be #defined somewhere but it is not.The
variable PACKAGE is used quite extensively in Grass5.0.1 makefiles but it
does not appear anywhere else in the 5.1 code.

More information about the grass-dev mailing list