<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">Hi Nick,<DIV><BR class="khtml-block-placeholder"></DIV><DIV>Could you provide output from geos-config (--cflags and --libs )</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Cheers,</DIV><DIV>Artem<DIV><DIV><DIV>On 21 Jun 2007, at 12:20, Nick Black wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite">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><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">_______________________________________________</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">dev mailing list</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="mailto:dev@openstreetmap.org">dev@openstreetmap.org</A></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev">http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev</A></DIV> </BLOCKQUOTE></DIV><BR><DIV> <SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV>Artem Pavlenko</DIV><DIV><A href="http://mapnik.org">http://mapnik.org</A></DIV><DIV><BR class="khtml-block-placeholder"></DIV><BR class="Apple-interchange-newline"></SPAN> </DIV><BR></DIV></DIV></BODY></HTML>