[postgis-users] Re: can not load library
Mark Cave-Ayland
mark.cave-ayland at ilande.co.uk
Sun Feb 25 06:09:15 PST 2007
On Sun, 2007-02-25 at 00:50 -0600, Jeremy Dunck wrote:
> I had the problem described in this (unanswered) post:
> http://postgis.refractions.net/pipermail/postgis-users/2007-January/014522.html
>
> I have -not- recently upgraded pgsql. I'm on 8.1. I did not
> previously have postgis installed. I attempted to configure and build
> http://postgis.refractions.net/download/postgis-1.2.1.tar.gz on
> dapper.
>
> I've attached my config.log.
>
> When running lwpostgis.sql, I received this error:
> psql:lwpostgis.sql:43: ERROR: could not load library
> "/usr/lib/liblwgeom.so.1.2": /usr/lib/liblwgeom.so.1.2: undefined
> symbol: has_arc
>
> I see Danna's inquiry was unanswered. Perhaps the recurrence will
> draw interest?
>
> Thanks,
> Jeremy Dunck
Hi Jeremy,
Thanks for the bug report. This is actually an interesting one, since I
just did the following on the PostGIS source tree: grep -r 'has_arc' *
and it reveals only one match in lwgeom_geos.c. I also checked the GEOS
header files, and there is no 'has_arc' function there either!
So why hasn't everyone reported problems with this? It's because
lwgeom_geos.c is only used when the GEOS C-API isn't detected, and your
configure output shows that the GEOS C-API isn't being detected since it
states USE_GEOS_CAPI='0'. Unfortunately this means that all builds
against a non C-API GEOS are broken :(
Can you confirm which version of GEOS you are using from geos-config?
Someone with more GEOS knowledge may be able to suggest exactly how
'has_arc' can be replaced in the non C-API build, however I imagine that
building a new GEOS library yourself is likely to be the easiest
solution here.
Kind regards,
Mark.
More information about the postgis-users
mailing list