[Bug 195090] /usr/bin/ld: cannot find -lstdc++ - Postgis / geos Error on install..

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Nov 20 15:23:42 UTC 2014


--- Comment #4 from martin at marketbridge.com ---
Ok, I made headway on this... VERY STRANGE ... I found some packages that were
installed to support GEOS showed a certain version with the "pkg info" command
but when I tried to deinstall and make clean inside that version, it said the
package was not installed.  I would then go into another port version... and
THEN I could deinstall even though pkg info showed a different version.  I
don't get it.  Anyhow, I deinstalled all Postgis dependencies, make clean and
then reinstalled them.  NOW, the pkg info command shows the correct version and
all dependencies installed without a problem (including geos).  However, I have
one remaining problem:

"./liblwgeom/.libs/liblwgeom.so: undefined reference to
../liblwgeom/.libs/liblwgeom.so: undefined reference to
std::__1::char_traits<char> >&)'
../liblwgeom/.libs/liblwgeom.so: undefined reference to `std::terminate()'
../liblwgeom/.libs/liblwgeom.so: undefined reference to
../liblwgeom/.libs/liblwgeom.so: undefined reference to
`geos::geom::GeometryFactory::createMultiPolygon() const'
cc: error: linker command failed with exit code 1 (use -v to see invocation)
Makefile:103: recipe for target 'shp2pgsql' failed
gmake[4]: *** [shp2pgsql] Error 1
gmake[4]: Leaving directory
GNUmakefile:14: recipe for target 'all' failed
gmake[3]: *** [all] Error 1
gmake[3]: Leaving directory '/usr/ports/databases/postgis21/work/postgis-2.1.3'

I cannot explain this.  This is on make install clean for:


You are receiving this mail because:
You are the assignee for the bug.

More information about the freebsd-bugs mailing list