[postgis-users] Intersects(geometry,geometry) fails

David Valentine valentine at library.ucsb.edu
Tue Jan 13 16:02:54 PST 2004


Nope.

Without the CFLAGS=-fPIC this is where the compile errors start:

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   -c -o postgis_algo.o 
postgis_algo.c
ar crs libpostgis.a `lorder postgis_debug.o postgis_ops.o postgis_fn.o 
postgis_inout.o postgis_proj.o postgis_chip.o postgis_transform.o 
postgis_gist_72.o postgis_estimate.o postgis_geos.o 
postgis_geos_wrapper.o postgis_algo.o | tsort`
UX tsort: INFORM: cycle in data
         postgis_geos_wrapper.o
         postgis_geos.o
         postgis_inout.o
         postgis_fn.o
UX tsort: INFORM: cycle in data
         postgis_inout.o
         postgis_fn.o
ranlib libpostgis.a
gcc -shared -h libpostgis.so.0 postgis_debug.o postgis_ops.o 
postgis_fn.o postgis_inout.o postgis_proj.o postgis_chip.o 
postgis_transform.o postgis_gist_72.o postgis_estimate.o postgis_geos.o 
postgis_geos_wrapper.o postgis_algo.o -L../../src/port -L../../src/port 
  -lstdc++ -L/usr/local/lib -lgeos -L/usr/local/lib -lproj   
-R/usr/local/pgsql/lib -o libpostgis.so.0.8
Text relocation remains                         referenced
     against symbol                  offset      in file
<unknown>                           0x2a28      postgis_geos_wrapper.o
...




On Jan 13, 2004, at 3:34 PM, Paul Ramsey wrote:

> What about with postgis-cvs?
>
> David Valentine wrote:
>
>> Same result (on 0.8.1)
>> On Jan 13, 2004, at 2:17 PM, Paul Ramsey wrote:
>>> Could you try this "reduced" test case on your machine?
>>>
>>> select intersects(GeometryFromText('POLYGON((2 0,5 0,5 3,2 3,2 
>>> 0))',54001),'SRID=54001;POLYGON((0 0,2 0,7 5,2 5,0 0))');
>>>
>>> We found a memory alignment problem on Solaris and fixed it, but it 
>>> was not in the execution path for this example, so it probably did 
>>> not fix your problem. Still, try the latest CVS of postgis and see 
>>> if things have improved.
>>>
>>> Paul Ramsey wrote:
>>>
>>>> Well, my compile under Solaris 2.6 did not have any problems, but I 
>>>> *am* turning up some other issues. Some of the OGC tests cause 
>>>> segfaults, so we are onto something here.
>>>> More l8r.
>>>> P.
>>>> David Valentine wrote:
>>>>
>>>>>
>>>>> On Jan 12, 2004, at 4:17 PM, Paul Ramsey wrote:
>>>>>
>>>>>> Werks fer me.
>>>>>> What GEOS version? Operating system, compiler?
>>>>>>
>>>>> solaris8
>>>>> both GCC 2.95.3, and 3.3.2 (packages from sunfreeware.com)
>>>>> standard solaris tools (/usr/ccs/bin) and GNU binutils
>>>>>
>>>>> GCC3.3.2
>>>>> Had to use 'CFLAGS=-fPIC' to get postgis-0.80 (and 0.81) to compile
>>>>>
>>>>> Under 2.95.3 I could not get geos-1.0 to compile with 
>>>>> LDFLAGS=-lstdc++
>>>>>
>>>
>>>
>>> -- 
>>>       __
>>>      /
>>>      | Paul Ramsey
>>>      | Refractions Research
>>>      | Email: pramsey at refractions.net
>>>      | Phone: (250) 885-0632
>>>      \_
>>>
>>>
>>> _______________________________________________
>>> postgis-users mailing list
>>> postgis-users at postgis.refractions.net
>>> http://postgis.refractions.net/mailman/listinfo/postgis-users
>> _______________________________________________
>> postgis-users mailing list
>> postgis-users at postgis.refractions.net
>> http://postgis.refractions.net/mailman/listinfo/postgis-users
>
>
> -- 
>       __
>      /
>      | Paul Ramsey
>      | Refractions Research
>      | Email: pramsey at refractions.net
>      | Phone: (250) 885-0632
>      \_
>
>
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users




More information about the postgis-users mailing list