[GRASS5] Solaris, GRASS 5.1, and Proj

Wallace, Beverly T beverly.t.wallace at lmco.com
Thu Sep 11 12:40:55 EDT 2003


Hi Grass Developers,

I am trying to build the experimental GRASS 5.1.

I downloaded the 2003_09_06 snapshots for 5.0 and 5.1.
I successfully built 5.0.
I am using a Sun with Solaris 9, gcc version 2.95.3, and GNU make.
I used configure --with-motif --without-postgres --without-odbc --without-fftw --without_gdal.

(1)  When I tried to configure with proj, configure failed while trying to find proj_api.h.  But proj_api.h does not exist in either snapshot.  So I added --without_proj to the configure.

(2)  There is no setenv function for Solaris.  I solved that by adding a setenv function in lib/db/dbmi_client/start.c.
	#ifdef __sun
	int setenv (const char *name, const char *value, int overwrite) {
	    /* Allocate more space each call */
	    char *buffer;
	    int len;
	    if (!overwrite && getenv(name)) return 0;
	    len = strlen(name) + strlen(value) + 2;
	    buffer = (char *) G_malloc (len);
	    sprintf (buffer, "%s=%s", name, value);
	    return putenv (buffer);
	}
	#endif /* __sun */

(3)  It then fails in lib/proj with the message
	proj_api.h: No such file or directory
Is there supposed to be a proj_api.h file?
Since I configured without-proj, why is it trying to compile lib/proj?

I hope someone can help.  Thanks for your time.

Bev Wallace
Lockheed Martin, Sunnyvale, CA, USA
beverly.t.wallace at lmco.com





More information about the grass-dev mailing list