[postgis-devel] [PostGIS] #1685: [raster] Regress build failure with two versions of GEOS

PostGIS trac at osgeo.org
Wed Mar 14 01:54:00 PDT 2012


#1685: [raster] Regress build failure with two versions of GEOS
-----------------------------------+----------------------------------------
 Reporter:  mwtoews                |       Owner:  strk         
     Type:  defect                 |      Status:  new          
 Priority:  medium                 |   Milestone:  PostGIS 2.0.0
Component:  build/upgrade/install  |     Version:  2.0.x        
 Keywords:                         |  
-----------------------------------+----------------------------------------

Comment(by strk):

 The problem is your linker trying to use the geos lib in /usr/lib rather
 than the one in /usr/local/lib. Maybe try swapping -L lines in this call:
 {{{
 gcc -g -O2  -fPIC -DPIC  -Wall -Wmissing-prototypes -I../../rt_core
 -I/home/mwtoews/postgis-2.0.0beta2SVN/liblwgeom  -I/usr/include/gdal
 -I/usr/local/include -o testapi testapi.c ../../rt_core/librtcore.a
 /home/mwtoews/postgis-2.0.0beta2SVN/liblwgeom/.libs/liblwgeom.a -L/usr/lib
 -lgdal1.7.0 -L/usr/local/lib -lgeos_c -lm
 }}}

 That is, move the "-L/usr/lib -lgdal1.7.0" after "-L/usr/local/lib
 -lgeos_c"

 Also consider dropping the old geos in /usr/lib or at least the
 libgeos_c.so from /usr/lib (the new libgeos_c.so in /usr/local/lib would
 work just fine with _any_ client code)

-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/1685#comment:1>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-devel mailing list