[postgis-users] postgis install error [compile-time] (better formatted log)

kenman ksor at uclink.berkeley.edu
Fri Feb 27 11:34:48 PST 2004


here is my setup
 
mandrake 9.2
 
postgresql 7.4.1 [already installed]
 
postgis 8.1

 
i originally did this with a redhat install but had the same error.  i really  
thought something was wrong with the latest redhat 9 so i redid the system to  
install mandrake 9.2 but i still get these errors.  everything was compiled  
from source i never use rpms.  perhaps these versions are just too new and not
 
compatible yet?  can anybody reccommend a working set of versions to install?
 
anybody could reccomend their preference of linux? or is mandrake favorable to
 
many?

  
did exactly as told,
 
install postgresql
 
unpack postgis in the contrib folder of postgres source
 
make
 
then this compile time error occurs

  
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
 
postgis_transform.c:52:22: projects.h: No such file or directory
 
postgis_transform.c:55: error: syntax error before '*' token
 
postgis_transform.c:55: warning: type defaults to `int' in declaration of  
`make_project'
 
postgis_transform.c:55: warning: data definition has no type or storage class
 
postgis_transform.c:59: error: syntax error before '*' token
 
postgis_transform.c:64: error: syntax error before '*' token
 
postgis_transform.c:67: warning: no previous prototype for  
`pj_transform_nodatum'
 
postgis_transform.c: In function `pj_transform_nodatum':
 
postgis_transform.c:71: error: `pj_errno' undeclared (first use in this  
function)
 
postgis_transform.c:71: error: (Each undeclared identifier is reported only  
once
 
postgis_transform.c:71: error: for each function it appears in.)
 
postgis_transform.c:73: error: `point_offset' undeclared (first use in this  
function)
 
postgis_transform.c:76: error: `srcdefn' undeclared (first use in this  
function)
 
postgis_transform.c:78: error: `point_count' undeclared (first use in this  
function)
 
postgis_transform.c:80: error: `XY' undeclared (first use in this function)
 
postgis_transform.c:80: error: syntax error before "projected_loc"
 
postgis_transform.c:81: error: `LP' undeclared (first use in this function)
 
postgis_transform.c:83: error: `projected_loc' undeclared (first use in this  
function)
 
postgis_transform.c:83: error: `x' undeclared (first use in this function)
 
postgis_transform.c:84: error: `y' undeclared (first use in this function)
 
postgis_transform.c:86: error: `geodetic_loc' undeclared (first use in this  
function)
 
postgis_transform.c:86: warning: implicit declaration of function `pj_inv'
 
postgis_transform.c:95: error: `dstdefn' undeclared (first use in this  
function)
 
postgis_transform.c:99: error: syntax error before "projected_loc"
 
postgis_transform.c:105: warning: implicit declaration of function `pj_fwd'
 
postgis_transform.c: In function `to_rad':
 
postgis_transform.c:125: error: `PI' undeclared (first use in this function)
 
postgis_transform.c: In function `to_dec':
 
postgis_transform.c:136: error: `PI' undeclared (first use in this function)
 
postgis_transform.c: At top level:
 
postgis_transform.c:143: error: syntax error before '*' token
 
postgis_transform.c:144: warning: return type defaults to `int'
 
postgis_transform.c: In function `make_project':
 
postgis_transform.c:149: error: `PJ' undeclared (first use in this function)
 
postgis_transform.c:149: error: `result' undeclared (first use in this  
function)
 
postgis_transform.c:179: warning: implicit declaration of function `pj_init'
 
postgis_transform.c: In function `transform_geom':
 
postgis_transform.c:197: error: `PJ' undeclared (first use in this function)
 
postgis_transform.c:197: error: `input_pj' undeclared (first use in this  
function)
 
postgis_transform.c:197: error: `output_pj' undeclared (first use in this  
function)
 
postgis_transform.c:197: warning: left-hand operand of comma expression has no
 
effect
 
postgis_transform.c:250: error: `pj_errno' undeclared (first use in this  
function)
 
postgis_transform.c:261: warning: implicit declaration of function `pj_free'
 
postgis_transform.c:287: warning: implicit declaration of function  
`pj_transform'
 
postgis_transform.c:302: warning: implicit declaration of function  
`pj_strerrno'
 
postgis_transform.c:302: warning: format argument is not a pointer (arg 4)
 
postgis_transform.c:343: warning: format argument is not a pointer (arg 4)
 
make: *** [postgis_transform.o] Error 1
  
hope this was informative enough





More information about the postgis-users mailing list