[Bug 89792] Re: LDFLAGS=-lstdc++ needed for PostGIS
Toshimi Minoura
minoura at eecs.orst.edu
Mon Mar 5 22:12:41 GMT 2007
I found a possilbe explanation fro the problem at
http://www.nabble.com/Re%3A-can-not-load-library-tf3286339.html#a9149824
On Sun, 2007-02-25 at 00:50 -0600, Jeremy Dunck wrote:
> 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.
--
LDFLAGS=-lstdc++ needed for PostGIS
https://launchpad.net/bugs/89792
More information about the ubuntu-backports
mailing list