[postgis-users] PostGIS and GEOS on FreeBSD 4.11: problem with libstdc++.so.6

Toomas Aas toomas.aas at raad.tartu.ee
Wed Sep 27 13:09:52 PDT 2006


Markus Schaber wrote:

> Toomas Aas wrote:
> 
>> I wonder if I should perhaps try to build PostgreSQL and PostGIS with
>> GCC 3.4, so they all use the same C++ libraries?
>
> Yes, that seems to be the solution.
>
> Additionally, AFAICT, GCC 3.4 and 2.95 have different binary interfaces
> for C++, leading to anything from linkage errors over crashing
> applications to production of fake data.

OK, I rebuilt PostgreSQL with GCC 3.4 and added -lstdc++ to LDFLAGS. The 
simple test query:
select geomfromtext('');
now gives a much more reasonable answer:

ERROR:  Invalid OGC WKT (too short)

Just waiting for inputfrom our developers if that is what they expected 
to see :)

Thanks for helping to pinpoint the problem. Hopefully we can upgrade to 
FreeBSD 6 soon and leave GCC 2.95 behind forever.

--
Toomas Aas



More information about the postgis-users mailing list