Hey alll...<BR>
<BR>
I am having difficulty installing PostGIS from the /contrib directory under my Postgres source tree. I have run make and make install and have postgres up and running, but when I try the make on the PostGIS directory I get the following:<BR>
<BR>
[root@Molly postgis-0.8.0]# make<BR>
gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes -Wmissing-declarations -g -fexceptions -I. -DFRONTEND -DSYSCONFDIR='"/usr/local/pgsql//etc"' -DUSE_VERSION=74 -I/usr/local/include/geos -DUSE_GEOS -I/usr/local/include -DUSE_PROJ -DUSE_STATS -fpic -I../../src/include -D_GNU_SOURCE -c -o postgis_debug.o postgis_debug.c<BR>
cc1: warning: changing search order for system directory "/usr/local/include"<BR>
cc1: warning: as it has already been specified as a non-system directory<BR>
postgis_debug.c: In function `lockcheck':<BR>
postgis_debug.c:310: warning: control reaches end of non-void function<BR>
gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes -Wmissing-declarations -g -fexceptions -I. -DFRONTEND -DSYSCONFDIR='"/usr/local/pgsql//etc"' -DUSE_VERSION=74 -I/usr/local/include/geos -DUSE_GEOS -I/usr/local/include -DUSE_PROJ -DUSE_STATS -fpic -I../../src/include -D_GNU_SOURCE -c -o postgis_ops.o postgis_ops.c<BR>
cc1: warning: changing search order for system directory "/usr/local/include"<BR>
cc1: warning: as it has already been specified as a non-system directory<BR>
gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes -Wmissing-declarations -g -fexceptions -I. -DFRONTEND -DSYSCONFDIR='"/usr/local/pgsql//etc"' -DUSE_VERSION=74 -I/usr/local/include/geos -DUSE_GEOS -I/usr/local/include -DUSE_PROJ -DUSE_STATS -fpic -I../../src/include -D_GNU_SOURCE -c -o postgis_fn.o postgis_fn.c<BR>
cc1: warning: changing search order for system directory "/usr/local/include"<BR>
cc1: warning: as it has already been specified as a non-system directory<BR>
gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes -Wmissing-declarations -g -fexceptions -I. -DFRONTEND -DSYSCONFDIR='"/usr/local/pgsql//etc"' -DUSE_VERSION=74 -I/usr/local/include/geos -DUSE_GEOS -I/usr/local/include -DUSE_PROJ -DUSE_STATS -fpic -I../../src/include -D_GNU_SOURCE -c -o postgis_inout.o postgis_inout.c<BR>
cc1: warning: changing search order for system directory "/usr/local/include"<BR>
cc1: warning: as it has already been specified as a non-system directory<BR>
gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes -Wmissing-declarations -g -fexceptions -I. -DFRONTEND -DSYSCONFDIR='"/usr/local/pgsql//etc"' -DUSE_VERSION=74 -I/usr/local/include/geos -DUSE_GEOS -I/usr/local/include -DUSE_PROJ -DUSE_STATS -fpic -I../../src/include -D_GNU_SOURCE -c -o postgis_proj.o postgis_proj.c<BR>
cc1: warning: changing search order for system directory "/usr/local/include"<BR>
cc1: warning: as it has already been specified as a non-system directory<BR>
gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes -Wmissing-declarations -g -fexceptions -I. -DFRONTEND -DSYSCONFDIR='"/usr/local/pgsql//etc"' -DUSE_VERSION=74 -I/usr/local/include/geos -DUSE_GEOS -I/usr/local/include -DUSE_PROJ -DUSE_STATS -fpic -I../../src/include -D_GNU_SOURCE -c -o postgis_chip.o postgis_chip.c<BR>
cc1: warning: changing search order for system directory "/usr/local/include"<BR>
cc1: warning: as it has already been specified as a non-system directory<BR>
gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes -Wmissing-declarations -g -fexceptions -I. -DFRONTEND -DSYSCONFDIR='"/usr/local/pgsql//etc"' -DUSE_VERSION=74 -I/usr/local/include/geos -DUSE_GEOS -I/usr/local/include -DUSE_PROJ -DUSE_STATS -fpic -I../../src/include -D_GNU_SOURCE -c -o postgis_transform.o postgis_transform.c<BR>
cc1: warning: changing search order for system directory "/usr/local/include"<BR>
cc1: warning: as it has already been specified as a non-system directory<BR>
postgis_transform.c:52:22: projects.h: No such file or directory<BR>
postgis_transform.c:55: parse error before '*' token<BR>
postgis_transform.c:55: warning: type defaults to `int' in declaration of `make_project'<BR>
postgis_transform.c:55: warning: data definition has no type or storage class<BR>
postgis_transform.c:59: parse error before '*' token<BR>
postgis_transform.c:64: parse error before '*' token<BR>
postgis_transform.c:67: warning: no previous prototype for `pj_transform_nodatum'<BR>
postgis_transform.c: In function `pj_transform_nodatum':<BR>
postgis_transform.c:71: `pj_errno' undeclared (first use in this function)<BR>
postgis_transform.c:71: (Each undeclared identifier is reported only once<BR>
postgis_transform.c:71: for each function it appears in.)<BR>
postgis_transform.c:73: `point_offset' undeclared (first use in this function)<BR>
postgis_transform.c:76: `srcdefn' undeclared (first use in this function)<BR>
postgis_transform.c:78: `point_count' undeclared (first use in this function)<BR>
postgis_transform.c:80: `XY' undeclared (first use in this function)<BR>
postgis_transform.c:80: parse error before "projected_loc"<BR>
postgis_transform.c:81: `LP' undeclared (first use in this function)<BR>
postgis_transform.c:83: `projected_loc' undeclared (first use in this function)<BR>
postgis_transform.c:83: `x' undeclared (first use in this function)<BR>
postgis_transform.c:84: `y' undeclared (first use in this function)<BR>
postgis_transform.c:86: `geodetic_loc' undeclared (first use in this function)<BR>
postgis_transform.c:86: warning: implicit declaration of function `pj_inv'<BR>
postgis_transform.c:95: `dstdefn' undeclared (first use in this function)<BR>
postgis_transform.c:99: parse error before "projected_loc"<BR>
postgis_transform.c:105: warning: implicit declaration of function `pj_fwd'<BR>
postgis_transform.c: In function `to_rad':<BR>
postgis_transform.c:125: `PI' undeclared (first use in this function)<BR>
postgis_transform.c: In function `to_dec':<BR>
postgis_transform.c:136: `PI' undeclared (first use in this function)<BR>
postgis_transform.c: At top level:<BR>
postgis_transform.c:143: parse error before '*' token<BR>
postgis_transform.c:144: warning: return type defaults to `int'<BR>
postgis_transform.c: In function `make_project':<BR>
postgis_transform.c:149: `PJ' undeclared (first use in this function)<BR>
postgis_transform.c:149: `result' undeclared (first use in this function)<BR>
postgis_transform.c:179: warning: implicit declaration of function `pj_init'<BR>
postgis_transform.c: In function `transform_geom':<BR>
postgis_transform.c:197: `PJ' undeclared (first use in this function)<BR>
postgis_transform.c:197: `input_pj' undeclared (first use in this function)<BR>
postgis_transform.c:197: `output_pj' undeclared (first use in this function)<BR>
postgis_transform.c:197: warning: left-hand operand of comma expression has no effect<BR>
postgis_transform.c:250: `pj_errno' undeclared (first use in this function)<BR>
postgis_transform.c:261: warning: implicit declaration of function `pj_free'<BR>
postgis_transform.c:287: warning: implicit declaration of function `pj_transform'<BR>
postgis_transform.c:302: warning: implicit declaration of function `pj_strerrno'<BR>
postgis_transform.c:302: warning: format argument is not a pointer (arg 4)<BR>
postgis_transform.c:343: warning: format argument is not a pointer (arg 4)<BR>
make: *** [postgis_transform.o] Error 1<BR>
<BR>
Thanks for any help you can provide.<BR>
~Danny Kent<BR>
Center for Intelligent Machines and Robotics<BR>
University of Florida<BR>