[postgis-users] can't build postgis on breezy

David Waetjen dwaetjen at gmail.com
Tue Feb 14 11:57:30 PST 2006


Hi evereyone,

I'm having trouble compiling postgis on Ubuntu 5.10 (breezy).  I am using
the draft procedure outlined in the wiki.
http://postgis.refractions.net/support/wiki/index.php?PostgisOnUbuntu

My guess is that I'm missing a library, or I'm not pointing postgis to the
correct place.
Architecture is AMD64 (although I get the same problem on my laptop i386).

Installed packages (using apt-get) include:
postgresql-8.0
postgresql-client-8.0
postgresql-contrib-8.0
postgresql-dev
proj
libgeos2c2
libgeos-dev

I am including the results from the configure and make steps, hoping that
someone can help me decypher it.

Much appreciated.
Dave

-----------------------
dwaetjen at limno:/usr/share/postgresql/8.0/contrib/postgis-1.1.1$ sudo
./configure --prefix=/usr --with-pgsql=/usr/bin/pg_config
--with-geos=/usr/bin/geos-config --with-proj=/usr
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether ln -s works... yes
checking for iconv_open in -liconv... no
checking for iconv_open in -lc... yes
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking iconv.h usability... yes
checking iconv.h presence... yes
checking for iconv.h... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for geos-config... /usr/bin/geos-config
checking for proj... /usr/local/bin/proj
checking for flex... /usr/bin/flex
checking for dllwrap... no
checking for dlltool... no
checking for yacc... /usr/bin/yacc
checking for perl... /usr/bin/perl
checking for xsltproc... no
checking for pdfxmltex... no
checking for jw... no
checking which template to use... linux
configure: creating ./config.status
config.status: creating Makefile.config
config.status: creating config.h
config.status: config.h is unchanged

 SUMMARY
 -------------------------------------------------------

 HOST_OS: linux-gnu

   PGSQL: /usr/bin/pg_config
    GEOS: /usr/bin/geos-config
    PROJ: dir=/usr
   ICONV: 1

 PORTNAME: linux
   PREFIX: /usr
  EPREFIX: ${prefix}
      DOC: ${prefix}/share/doc
     DATA: ${prefix}/share
      MAN: ${prefix}/man
      BIN: ${exec_prefix}/bin
      EXT: ${exec_prefix}/lib (${exec_prefix}/lib)
 -------------------------------------------------------

dwaetjen at limno:/usr/share/postgresql/8.0/contrib/postgis-1.1.1$ sudo make
make -C lwgeom
make[1]: Entering directory `/usr/share/postgresql/8.0/contrib/postgis-1.1.1
/lwgeom'
sh ../geos_version.sh /usr > postgis_geos_version.h
gcc -DUSE_VERSION=80 -DPOSTGIS_LIB_VERSION='"1.1.1"'
-DPOSTGIS_VERSION='"1.1USE_GEOS=1 USE_PROJ=1 USE_STATS=1"'
-DPOSTGIS_SCRIPTS_VERSION='"
1.1.1"' -DPOSTGIS_BUILD_DATE='"2006-02-14 17:47:54"' -I/usr/include
-DUSE_PROJ  -I/usr/include/postgresql/8.0/server -DAUTOCACHE_BBOX=1
-DUSE_STATS -Wall -g -O2 -fPIC -fexceptions -DUSE_GEOS    -c -o liblwgeom.o
liblwgeom.c
In file included from liblwgeom.c:26:
lwgeom_pg.h:4:22: error: postgres.h: No such file or directory
lwgeom_pg.h:5:29: error: utils/geo_decls.h: No such file or directory
lwgeom_pg.h:6:18: error: fmgr.h: No such file or directory
In file included from liblwgeom.c:26:
lwgeom_pg.h:36: error: syntax error before 'getGeometryOID'
lwgeom_pg.h:36: warning: type defaults to 'int' in declaration of
'getGeometryOID'
lwgeom_pg.h:36: warning: data definition has no type or storage class
lwgeom_pg.h:43: error: syntax error before '*' token
lwgeom_pg.h:44: error: syntax error before 'BOX'
lwgeom_pg.h:47: error: syntax error before 'BOX2D_same'
lwgeom_pg.h:47: warning: type defaults to 'int' in declaration of
'BOX2D_same'
lwgeom_pg.h:47: warning: parameter names (without types) in function
declaration
lwgeom_pg.h:47: warning: data definition has no type or storage class
lwgeom_pg.h:48: error: syntax error before 'BOX2D_overlap'
lwgeom_pg.h:48: warning: type defaults to 'int' in declaration of
'BOX2D_overlap'
lwgeom_pg.h:48: warning: parameter names (without types) in function
declaration
lwgeom_pg.h:48: warning: data definition has no type or storage class
lwgeom_pg.h:49: error: syntax error before 'BOX2D_overleft'
lwgeom_pg.h:49: warning: type defaults to 'int' in declaration of
'BOX2D_overleft'
lwgeom_pg.h:49: warning: parameter names (without types) in function
declaration
lwgeom_pg.h:49: warning: data definition has no type or storage class
lwgeom_pg.h:50: error: syntax error before 'BOX2D_left'
lwgeom_pg.h:50: warning: type defaults to 'int' in declaration of
'BOX2D_left'
lwgeom_pg.h:50: warning: parameter names (without types) in function
declaration
lwgeom_pg.h:50: warning: data definition has no type or storage class
lwgeom_pg.h:51: error: syntax error before 'BOX2D_right'
lwgeom_pg.h:51: warning: type defaults to 'int' in declaration of
'BOX2D_right'
lwgeom_pg.h:51: warning: parameter names (without types) in function
declaration
lwgeom_pg.h:51: warning: data definition has no type or storage class
lwgeom_pg.h:52: error: syntax error before 'BOX2D_overright'
lwgeom_pg.h:52: warning: type defaults to 'int' in declaration of
'BOX2D_overright'
lwgeom_pg.h:52: warning: parameter names (without types) in function
declaration
lwgeom_pg.h:52: warning: data definition has no type or storage class
lwgeom_pg.h:53: error: syntax error before 'BOX2D_overbelow'
lwgeom_pg.h:53: warning: type defaults to 'int' in declaration of
'BOX2D_overbelow'
lwgeom_pg.h:53: warning: parameter names (without types) in function
declaration
lwgeom_pg.h:53: warning: data definition has no type or storage class
lwgeom_pg.h:54: error: syntax error before 'BOX2D_below'
lwgeom_pg.h:54: warning: type defaults to 'int' in declaration of
'BOX2D_below'
lwgeom_pg.h:54: warning: parameter names (without types) in function
declaration
lwgeom_pg.h:54: warning: data definition has no type or storage class
lwgeom_pg.h:55: error: syntax error before 'BOX2D_above'
lwgeom_pg.h:55: warning: type defaults to 'int' in declaration of
'BOX2D_above'
lwgeom_pg.h:55: warning: parameter names (without types) in function
declaration
lwgeom_pg.h:55: warning: data definition has no type or storage class
lwgeom_pg.h:56: error: syntax error before 'BOX2D_overabove'
lwgeom_pg.h:56: warning: type defaults to 'int' in declaration of
'BOX2D_overabove'
lwgeom_pg.h:56: warning: parameter names (without types) in function
declaration
lwgeom_pg.h:56: warning: data definition has no type or storage class
lwgeom_pg.h:57: error: syntax error before 'BOX2D_contained'
lwgeom_pg.h:57: warning: type defaults to 'int' in declaration of
'BOX2D_contained'
lwgeom_pg.h:57: warning: parameter names (without types) in function
declaration
lwgeom_pg.h:57: warning: data definition has no type or storage class
lwgeom_pg.h:58: error: syntax error before 'BOX2D_contain'
lwgeom_pg.h:58: warning: type defaults to 'int' in declaration of
'BOX2D_contain'
lwgeom_pg.h:58: warning: parameter names (without types) in function
declaration
lwgeom_pg.h:58: warning: data definition has no type or storage class
lwgeom_pg.h:59: error: syntax error before 'BOX2D_intersects'
lwgeom_pg.h:59: warning: type defaults to 'int' in declaration of
'BOX2D_intersects'
lwgeom_pg.h:59: warning: parameter names (without types) in function
declaration
lwgeom_pg.h:59: warning: data definition has no type or storage class
lwgeom_pg.h:60: error: syntax error before 'BOX2D_union'
lwgeom_pg.h:60: warning: type defaults to 'int' in declaration of
'BOX2D_union'
lwgeom_pg.h:60: warning: parameter names (without types) in function
declaration
lwgeom_pg.h:60: warning: data definition has no type or storage class
lwgeom_pg.h:62: error: syntax error before 'LWGEOM_same'
lwgeom_pg.h:62: warning: type defaults to 'int' in declaration of
'LWGEOM_same'
lwgeom_pg.h:62: warning: parameter names (without types) in function
declaration
lwgeom_pg.h:62: warning: data definition has no type or storage class
lwgeom_pg.h:63: error: syntax error before 'BOX3D_construct'
lwgeom_pg.h:63: warning: type defaults to 'int' in declaration of
'BOX3D_construct'
lwgeom_pg.h:63: warning: parameter names (without types) in function
declaration
lwgeom_pg.h:63: warning: data definition has no type or storage class
lwgeom_pg.h:64: error: syntax error before 'BOX2DFLOAT4_ymin'
lwgeom_pg.h:64: warning: type defaults to 'int' in declaration of
'BOX2DFLOAT4_ymin'
lwgeom_pg.h:64: warning: parameter names (without types) in function
declaration
lwgeom_pg.h:64: warning: data definition has no type or storage class
lwgeom_pg.h:66: error: syntax error before 'LWGEOM_force_2d'
lwgeom_pg.h:66: warning: type defaults to 'int' in declaration of
'LWGEOM_force_2d'
lwgeom_pg.h:66: warning: parameter names (without types) in function
declaration
lwgeom_pg.h:66: warning: data definition has no type or storage class
lwgeom_pg.h:67: error: syntax error before 'LWGEOM_force_3dm'
lwgeom_pg.h:67: warning: type defaults to 'int' in declaration of
'LWGEOM_force_3dm'
lwgeom_pg.h:67: warning: parameter names (without types) in function
declaration
lwgeom_pg.h:67: warning: data definition has no type or storage class
lwgeom_pg.h:68: error: syntax error before 'LWGEOM_force_3dz'
lwgeom_pg.h:68: warning: type defaults to 'int' in declaration of
'LWGEOM_force_3dz'
lwgeom_pg.h:68: warning: parameter names (without types) in function
declaration
lwgeom_pg.h:68: warning: data definition has no type or storage class
lwgeom_pg.h:69: error: syntax error before 'LWGEOM_force_4d'
lwgeom_pg.h:69: warning: type defaults to 'int' in declaration of
'LWGEOM_force_4d'
lwgeom_pg.h:69: warning: parameter names (without types) in function
declaration
lwgeom_pg.h:69: warning: data definition has no type or storage class
lwgeom_pg.h:70: error: syntax error before 'LWGEOM_force_collection'
lwgeom_pg.h:70: warning: type defaults to 'int' in declaration of
'LWGEOM_force_collection'
lwgeom_pg.h:70: warning: parameter names (without types) in function
declaration
lwgeom_pg.h:70: warning: data definition has no type or storage class
lwgeom_pg.h:71: error: syntax error before 'LWGEOM_force_multi'
lwgeom_pg.h:71: warning: type defaults to 'int' in declaration of
'LWGEOM_force_multi'
lwgeom_pg.h:71: warning: parameter names (without types) in function
declaration
lwgeom_pg.h:71: warning: data definition has no type or storage class
lwgeom_pg.h:73: error: syntax error before 'LWGEOMFromWKB'
lwgeom_pg.h:73: warning: type defaults to 'int' in declaration of
'LWGEOMFromWKB'
lwgeom_pg.h:73: warning: parameter names (without types) in function
declaration
lwgeom_pg.h:73: warning: data definition has no type or storage class
lwgeom_pg.h:74: error: syntax error before 'WKBFromLWGEOM'
lwgeom_pg.h:74: warning: type defaults to 'int' in declaration of
'WKBFromLWGEOM'
lwgeom_pg.h:74: warning: parameter names (without types) in function
declaration
lwgeom_pg.h:74: warning: data definition has no type or storage class
lwgeom_pg.h:76: error: syntax error before 'LWGEOM_getBBOX'
lwgeom_pg.h:76: warning: type defaults to 'int' in declaration of
'LWGEOM_getBBOX'
lwgeom_pg.h:76: warning: parameter names (without types) in function
declaration
lwgeom_pg.h:76: warning: data definition has no type or storage class
lwgeom_pg.h:77: error: syntax error before 'LWGEOM_addBBOX'
lwgeom_pg.h:77: warning: type defaults to 'int' in declaration of
'LWGEOM_addBBOX'
lwgeom_pg.h:77: warning: parameter names (without types) in function
declaration
lwgeom_pg.h:77: warning: data definition has no type or storage class
lwgeom_pg.h:78: error: syntax error before 'LWGEOM_dropBBOX'
lwgeom_pg.h:78: warning: type defaults to 'int' in declaration of
'LWGEOM_dropBBOX'
lwgeom_pg.h:78: warning: parameter names (without types) in function
declaration
lwgeom_pg.h:78: warning: data definition has no type or storage class
liblwgeom.c: In function 'trim_trailing_zeros':
liblwgeom.c:160: warning: implicit declaration of function 'strchr'
liblwgeom.c:160: warning: incompatible implicit declaration of built-in
function 'strchr'
liblwgeom.c:167: warning: implicit declaration of function 'strlen'
liblwgeom.c:167: warning: incompatible implicit declaration of built-in
function 'strlen'
make[1]: *** [liblwgeom.o] Error 1
make[1]: Leaving directory `/usr/share/postgresql/8.0/contrib/postgis-1.1.1
/lwgeom'
make: *** [liblwgeom] Error 2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20060214/b21a9c3d/attachment.html>


More information about the postgis-users mailing list