[postgis-users] liblwgeom.1.1.so - Error installing PostGIS

strk at refractions.net strk at refractions.net
Tue Feb 7 03:35:41 PST 2006


_MemoryContextSwitchTo is exported by postgresql library.
There's probably some linker flag specific for darwin we're
missing to set. Weird, as I think we copied the Makefile.shlib
from PostgreSQL source.

--strk;

On Tue, Feb 07, 2006 at 10:15:47PM +1100, Christian Heine wrote:
> Hi strk,
> thanks for the reply - I was just about to write another message to  
> the list explaining the problems I experience:
> 
> I made a clean install today just to double check if I did something  
> wrong yesterday:
> - geos version 2.2.1 from source (no special configure flags)
> - postgresql version 8.1.2 from source
> - postgis version 1.1.1 from source (no special configure flags)
> (used the existing proj 4.4.9)
> 
> After compiling everything and setting up a new database I tried to  
> load postgis - different error as yesterday but still related to a  
> missing symbol in the liblwgeom.1.1.so library:
> ----------------------------------------
> $ psql icons < lwpostgis.sql
> BEGIN
> NOTICE:  type "histogram2d" is not yet defined
> DETAIL:  Creating a shell type definition.
> ERROR:  could not load library "/usr/local/pgsql/lib/liblwgeom. 
> 1.1.so": Symbol not found: _MemoryContextSwitchTo
>   Referenced from: /usr/local/pgsql/lib/liblwgeom.1.1.so
>   Expected in: flat namespace
> ----------------------------------------
> 
> Ok, deleted everything (incl the geos libraries) and installed the  
> pre-compiled stuff (libraries + postgresl 8.1.2 + postgis 1.1.1) from  
> http://www.kyngchaos.com/macosx/downloads.php:
> 
> - postgis loads correctly but when I try using the "geomfromewkt"  
> function I get:
> 
> ----------------------------------------
> ERROR:  function geomfromewkt("unknown", integer) does not exist
> HINT:  No function matches the given name and argument types. You may  
> need to add explicit type casts.
> ----------------------------------------
> 
> As I can recall from some of my work, geomfromewkt has been working  
> fine with postgresql 8.0.3 and postgis 1.0.0. The stuff I tried to  
> load was from an earlier mail to this list: Elwood Cordery: "[postgis- 
> users] RE: HELP 3d spatial bounding box" and some of simple polygons  
> I created myself.
> 
> >Try running make clean and make again, it could be
> >you had old geos headers laying around.
> Ok, I will give it a go.
> 
> >Please show last lines of ./configure.
> -------------------------------------------------------
> HOST_OS: darwin8.4.0
>    PGSQL: /usr/local/pgsql/bin/pg_config
>     GEOS: /usr/local/bin/geos-config (with C-API)
>     PROJ: dir=/usr/local
>    ICONV: 1 -liconv
> 
> PORTNAME: darwin
>    PREFIX: /usr/local/pgsql
>   EPREFIX: ${prefix}
>       DOC: /usr/local/pgsql/doc/contrib
>      DATA: /usr/local/pgsql/share/contrib
>       MAN: /usr/local/pgsql/man
>       BIN: /usr/local/pgsql/bin
>       EXT: /usr/local/pgsql/lib (\$$libdir)
> -------------------------------------------------------
> 
> >Also, where did you install libgeos from ?
> I installed geos from source today - version 2.2.1 - see above
> 
> >And what's the output of geos-config --version ?
> 2.2.1
> 
> Grateful for _any_ feedback!
> Chris
> 
> OS: Mac OS X 10.4.4 on Dual G5
> 
> 
> >>>Is 1.1.so dynamically linked against libgeos?
> >>>What does ldd say ?
> >>On Mac OS X there's no ldd - instead "otool -L":
> >>$ otool -L /usr/local/pgsql/lib/liblwgeom.1.1.so
> >>/usr/local/pgsql/lib/liblwgeom.1.1.so:
> >>    /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current
> >>    version 7.3.0)
> >>    /usr/local/lib/libgeos.2.dylib (compatibility version 4.0.0,  
> >>current
> >>    version 4.1.0)
> >>    /usr/local/lib/libproj.0.dylib (compatibility version 6.0.0,  
> >>current
> >>    version 6.0.0)
> >>    /usr/lib/libmx.A.dylib (compatibility version 1.0.0, current  
> >>version
> >>    92.0.0)
> >>    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
> >>    version 88.1.2)
> >>
> >>Chris
> >>
> >>>
> >>>On Mon, Feb 06, 2006 at 02:53:23PM +1100, Christian Heine wrote:
> >>>>Dear all,
> >>>>following up on my earlier mail "Error installing PostGIS-1.1.1" I
> >>>>tried tracking down the error and running nm (display name list)  
> >>>>gave
> >>>>the following result:
> >>>>
> >>>>00094668 s __ZTIN4geos13GEOSExceptionE
> >>>>0009462c s __ZTIPN4geos13GEOSExceptionE
> >>>>00094670 s __ZTSN4geos13GEOSExceptionE
> >>>>00094650 s __ZTSPN4geos13GEOSExceptionE
> >>>>/usr/local/pgsql/lib/liblwgeom.1.0.so
> >>>>
> >>>>        U __ZTIN4geos13GEOSExceptionE
> >>>>000477b0 S __ZTIPN4geos13GEOSExceptionE
> >>>>0003f4b8 S __ZTSPN4geos13GEOSExceptionE
> >>>>/usr/local/pgsql/lib/liblwgeom.1.1.so
> >>>>
> >>>>        U __ZTIN4geos13GEOSExceptionE
> >>>>000477b0 S __ZTIPN4geos13GEOSExceptionE
> >>>>0003f4b8 S __ZTSPN4geos13GEOSExceptionE
> >>>>/usr/local/pgsql/lib/liblwgeom.1.so
> >>>>
> >>>>        U __ZTIN4geos13GEOSExceptionE
> >>>>000477b0 S __ZTIPN4geos13GEOSExceptionE
> >>>>0003f4b8 S __ZTSPN4geos13GEOSExceptionE
> >>>>/usr/local/pgsql/lib/liblwgeom.so
> >>>>
> >>>>00094668 s __ZTIN4geos13GEOSExceptionE
> >>>>0009462c s __ZTIPN4geos13GEOSExceptionE
> >>>>00094670 s __ZTSN4geos13GEOSExceptionE
> >>>>00094650 s __ZTSPN4geos13GEOSExceptionE
> >>>>/usr/local/pgsql/lib/liblwgeom.so.1
> >>>>
> >>>>That seems to indicate that __ZTIN4geos13GEOSExceptionE symbol is
> >>>>undefined in liblwgeom.1.1.so, liblwgeom.1.so and liblwgeom.so,
> >>>>whereas it is defined in liblwgeom.1.0.so and liblwgeom.so.1
> >>>>
> >>>>Is there a way to fix this?
> >>>>
> >>>>Cheers,
> >>>>Chris
> >>>>
> >>>>OS: Mac OS X 10.4.4 on a Dual G5 (64bit), PostgreSQL 8.0.3
> >
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users

-- 

 +----------------------------------------+
 | Fight against software patents in EU!  |
 | www.ffii.org www.nosoftwarepatents.org |
 +----------------------------------------+




More information about the postgis-users mailing list