[geos-devel] Exception Issues

David Blasby dblasby at refractions.net
Tue May 27 12:49:37 EDT 2003


> This should be easily solved by modifying the Postgresql link step 
> to link as C++ instead of 'C'.  

Theoretically, this should work.  Perhaps paul could compile our 7.3 
development system with libc++ instead of libc and we could see if it works?


> Note I believe that this should only be necessary for the PostGIS
> DLL 

PostGIS already links to libc++ instead of libc.  At least I think it 
does (the postgis_geoswrapper.cpp needs libc++ to compile).

Oh, I'm wrong - it links to both:

[dblasby at hydra postgis]$ ldd libpostgis.so.0.8
         libstdc++-libc6.2-2.so.3 => /usr/lib/libstdc++-libc6.2-2.so.3 
(0x4003d000)
         libgeos.so.1 => /usr/local/lib/libgeos.so.1 (0x4008a000)
         libproj.so.0 => /usr/local/lib/libproj.so.0 (0x40144000)
         libc.so.6 => /lib/libc.so.6 (0x40174000)
         libm.so.6 => /lib/libm.so.6 (0x402b0000)
         /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)


Anyone know how to get it to *not* link to libc?  The link step looks like:

gcc -g -Wall -Wmissing-prototypes -Wmissing-declarations -g -I. 
-DFRONTEND -DSYSCONFDIR='"/opt/pgsql73/etc"'  -DUSE_VERSION=73 
-I/usr/local/include/geos -DUSE_GEOS -I/usr/local/include -DUSE_PROJ 
-fpic -shared -Wl,-soname,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    -lstdc++ -L/usr/local/lib -lgeos 
-L/usr/local/lib -lproj   -Wl,-rpath,/opt/pgsql73/lib -o libpostgis.so.0.8


dave





More information about the geos-devel mailing list