Opened 8 years ago

Closed 8 years ago

#3493 closed defect (wontfix)

Error during build from source

Reported by: dr Owned by: pramsey
Priority: medium Milestone: PostGIS 2.2.2
Component: postgis Version: master
Keywords: Cc:


Trying to build PostGIS from with GEOS from trunk.

 -------------- Dependencies -------------- 
  GEOS config:          /usr/local/bin/geos-config
  GEOS version:         3.6.0dev
  GDAL config:          /usr/bin/gdal-config
  GDAL version:         1.11.2
  PostgreSQL config:    /usr/bin/pg_config
  PostgreSQL version:   PostgreSQL 9.3.11
  PROJ4 version:        48
  Libxml2 config:       /usr/bin/xml2-config
  Libxml2 version:      2.9.1
  JSON-C support:       no
  PCRE support:         yes
  PostGIS debug level:  0
  Perl:                 /usr/bin/perl

But get an error:

make[2]: Entering directory `/home/rykov/sandbox/postgis/postgis-2.2.2dev/raster/loader'
/bin/bash ../../libtool --mode=link gcc -g -O2  -fPIC -DPIC  -Wall -Wmissing-prototypes -I../rt_core -I../../liblwgeom  -I/usr/include/gdal -I/usr/local/include   ../rt_core/librtcore.a raster2pgsql.o ../../liblwgeom/ -L/usr/lib -lgdal  -L/usr/local/lib -lgeos_c  -lc -lm -o raster2pgsql
libtool: link: gcc -g -O2 -fPIC -DPIC -Wall -Wmissing-prototypes -I../rt_core -I../../liblwgeom -I/usr/include/gdal -I/usr/local/include raster2pgsql.o -o .libs/raster2pgsql  ../rt_core/librtcore.a ../../liblwgeom/.libs/ -L/usr/lib -lgdal -L/usr/local/lib -lgeos_c -lc -lm
../../liblwgeom/.libs/ undefined reference to `GEOSClipByRect'
collect2: error: ld returned 1 exit status
make[2]: *** [raster2pgsql] Error 1
make[2]: Leaving directory `/home/rykov/sandbox/postgis/postgis-2.2.2dev/raster/loader'
make[1]: *** [rtloader] Error 2
make[1]: Leaving directory `/home/rykov/sandbox/postgis/postgis-2.2.2dev/raster'
make: *** [all] Error 1

Change History (4)

comment:1 by robe, 8 years ago

Do you have another GEOS installed on this box. Seems like it's picking up an older GEOS version like 3.4 or 3.3. It could be coming from your GDAL if that was compiled with an older GEOS.

comment:2 by dr, 8 years ago

Yes, I have another GEOS installed from repository, but want to build PostGIS against development version of GEOS which I have built manually. Is it possible?

comment:3 by dr, 8 years ago

Had built GDAL 2.1 manually with GEOS 3.6.0dev and PostGIS error gone.

comment:4 by dr, 8 years ago

Resolution: wontfix
Status: newclosed
Note: See TracTickets for help on using tickets.