Hello,<br><br>I'm trying to compile osm2pgsql.  I get this error when running make :<br><br> 8sanitizer.o reprojection.o   -o osm2pgsql<br>build_geometry.o: In function `is_simple':<br>build_geometry.cpp:(.text+0x276): undefined reference to `geos::geom::GeometryFactory::GeometryFactory()'
<br>build_geometry.cpp:(.text+0x281): undefined reference to `geos::geom::GeometryFactory::getPrecisionModel() const'<br>build_geometry.cpp:(.text+0x2ac): undefined reference to `geos::io::WKTReader::read(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
<br>build_geometry.cpp:(.text+0x2d7): undefined reference to `geos::geom::GeometryFactory::~GeometryFactory()'<br>build_geometry.cpp:(.text+0x326): undefined reference to `geos::geom::GeometryFactory::~GeometryFactory()'
<br>build_geometry.o: In function `build_geometry':<br>build_geometry.cpp:(.text+0x4a3): undefined reference to `geos::geom::GeometryFactory::GeometryFactory()'<br>build_geometry.cpp:(.text+0x5e2): undefined reference to `geos::geom::GeometryFactory::createLineString(geos::geom::CoordinateSequence*) const'
<br>build_geometry.cpp:(.text+0x660): undefined reference to `geos::geom::GeometryFactory::createMultiLineString(std::vector<geos::geom::Geometry*, std::allocator<geos::g<br>::Geometry*> >*) const'<br>build_geometry.cpp:(.text+0x69b): undefined reference to `geos::operation::linemerge::LineMerger::LineMerger()'
<br>build_geometry.cpp:(.text+0x6b3): undefined reference to `geos::operation::linemerge::LineMerger::add(geos::geom::Geometry const*)'<br>build_geometry.cpp:(.text+0x6c1): undefined reference to `geos::operation::linemerge::LineMerger::getMergedLineStrings()'
<br>build_geometry.cpp:(.text+0x6ce): undefined reference to `geos::io::WKTWriter::WKTWriter()'<br>build_geometry.cpp:(.text+0x702): undefined reference to `geos::io::WKTWriter::write(geos::geom::Geometry const*)'
<br>build_geometry.cpp:(.text+0x7fa): undefined reference to `geos::geom::GeometryFactory::createLinearRing(geos::geom::CoordinateSequence*) const'<br>build_geometry.cpp:(.text+0x811): undefined reference to `geos::geom::GeometryFactory::createPolygon(geos::geom::LinearRing*, std::vector<geos::geom::Geometry*, std::
<br>ocator<geos::geom::Geometry*> >*) const'<br>build_geometry.cpp:(.text+0x82d): undefined reference to `geos::io::WKTWriter::write(geos::geom::Geometry const*)'<br>build_geometry.cpp:(.text+0x873): undefined reference to `geos::geom::Point::getX() const'
<br>build_geometry.cpp:(.text+0x87e): undefined reference to `geos::geom::Point::getY() const'<br>build_geometry.cpp:(.text+0x951): undefined reference to `geos::io::WKTWriter::~WKTWriter()'<br>build_geometry.cpp:(.text+0x979): undefined reference to `geos::operation::linemerge::LineMerger::~LineMerger()'
<br>build_geometry.cpp:(.text+0x9cc): undefined reference to `geos::geom::GeometryFactory::~GeometryFactory()'<br>build_geometry.cpp:(.text+0xa80): undefined reference to `geos::io::WKTWriter::~WKTWriter()'<br>build_geometry.cpp:(.text+0xaa8): undefined reference to `geos::operation::linemerge::LineMerger::~LineMerger()'
<br>build_geometry.cpp:(.text+0xc3a): undefined reference to `geos::geom::GeometryFactory::~GeometryFactory()'<br><br><br>I have libgeos-dev installed from the Ubuntu Feisty repos - at /usr/lib/, but I have postgis built with an older version:
<br><br> postgis_full_version                               <br>----------------------------------------------------------------------------------<br> POSTGIS="1.2.1" GEOS="2.2.3-CAPI-1.1.1" PROJ="Rel. 
4.4.9, 29 Oct 2004" USE_STATS<br><br>So far as I know, I have the dependencies as listed in the readme.txt.  Any idea what the problem is?<br><br>Thanks for the help,<br><br><br><br clear="all"><br>-- <br>Nick Black<br>
--------------------------------<br><a href="http://www.blacksworld.net">http://www.blacksworld.net</a>