Thanks for the tip - I had geos src and package installed which I think was confusing things - all seems to be good now.<br><br>Cheers,<br><br><br><div><span class="gmail_quote">On 6/21/07, <b class="gmail_sendername">Jon Burgess
</b> <<a href="mailto:jburgess777@googlemail.com">jburgess777@googlemail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
You would get errors like these if you were not linking against<br>libgeos. Unfortunately the information about the link line is cut off.<br>Could you send the output from a few lines above the one you copied<br>before?<br>
<br>A fix may be to add "-lgeos" to LDFLAGS, or maybe -L<dir> where dir is<br>the location of libgeos.<br><br>You do have libgeos itself installed too? (not just the -dev package?)<br><br>On 21/06/07, Nick Black <
<a href="mailto:nickblack1@gmail.com">nickblack1@gmail.com</a>> wrote:<br>> 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<br>> `geos::geom::GeometryFactory::GeometryFactory()'<br>> build_geometry.cpp:(.text+0x281): undefined reference to
<br>> `geos::geom::GeometryFactory::getPrecisionModel() const'<br>> build_geometry.cpp:(.text+0x2ac): undefined reference to<br>> `geos::io::WKTReader::read(std::basic_string<char,<br>> std::char_traits<char>, std::allocator<char> > const&)'
<br>> build_geometry.cpp:(.text+0x2d7): undefined reference to<br>> `geos::geom::GeometryFactory::~GeometryFactory()'<br>> build_geometry.cpp:(.text+0x326): undefined reference to<br>> `geos::geom::GeometryFactory::~GeometryFactory()'
<br>> build_geometry.o: In function `build_geometry':<br>> build_geometry.cpp:(.text+0x4a3): undefined reference to<br>> `geos::geom::GeometryFactory::GeometryFactory()'<br>> build_geometry.cpp:(.text+0x5e2): undefined reference to
<br>> `geos::geom::GeometryFactory::createLineString(geos::geom::CoordinateSequence*)<br>> const'<br>> build_geometry.cpp:(.text+0x660): undefined reference to<br>> `geos::geom::GeometryFactory::createMultiLineString(std::vector<geos::geom::Geometry*,
<br>> std::allocator<geos::g<br>> ::Geometry*> >*) const'<br>> build_geometry.cpp:(.text+0x69b): undefined reference to<br>> `geos::operation::linemerge::LineMerger::LineMerger()'<br>> build_geometry.cpp:(.text+0x6b3): undefined reference to
<br>> `geos::operation::linemerge::LineMerger::add(geos::geom::Geometry<br>> const*)'<br>> build_geometry.cpp:(.text+0x6c1): undefined reference to<br>> `geos::operation::linemerge::LineMerger::getMergedLineStrings()'
<br>> build_geometry.cpp:(.text+0x6ce): undefined reference to<br>> `geos::io::WKTWriter::WKTWriter()'<br>> build_geometry.cpp:(.text+0x702): undefined reference to<br>> `geos::io::WKTWriter::write(geos::geom::Geometry const*)'
<br>> build_geometry.cpp:(.text+0x7fa): undefined reference to<br>> `geos::geom::GeometryFactory::createLinearRing(geos::geom::CoordinateSequence*)<br>> const'<br>> build_geometry.cpp:(.text+0x811): undefined reference to
<br>> `geos::geom::GeometryFactory::createPolygon(geos::geom::LinearRing*,<br>> std::vector<geos::geom::Geometry*, std::<br>> ocator<geos::geom::Geometry*> >*) const'<br>> build_geometry.cpp:(.text+0x82d): undefined reference to
<br>> `geos::io::WKTWriter::write(geos::geom::Geometry const*)'<br>> build_geometry.cpp:(.text+0x873): undefined reference to<br>> `geos::geom::Point::getX() const'<br>> build_geometry.cpp:(.text+0x87e): undefined reference to
<br>> `geos::geom::Point::getY() const'<br>> build_geometry.cpp:(.text+0x951): undefined reference to<br>> `geos::io::WKTWriter::~WKTWriter()'<br>> build_geometry.cpp:(.text+0x979): undefined reference to
<br>> `geos::operation::linemerge::LineMerger::~LineMerger()'<br>> build_geometry.cpp:(.text+0x9cc): undefined reference to<br>> `geos::geom::GeometryFactory::~GeometryFactory()'<br>> build_geometry.cpp:(.text+0xa80): undefined reference to
<br>> `geos::io::WKTWriter::~WKTWriter()'<br>> build_geometry.cpp:(.text+0xaa8): undefined reference to<br>> `geos::operation::linemerge::LineMerger::~LineMerger()'<br>> build_geometry.cpp:(.text+0xc3a): undefined reference to
<br>> `geos::geom::GeometryFactory::~GeometryFactory()'<br>><br>><br>> I have libgeos-dev installed from the Ubuntu Feisty repos - at /usr/lib/,<br>> 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"
<br>> USE_STATS<br>><br>> So far as I know, I have the dependencies as listed in the readme.txt.  Any<br>> idea what the problem is?<br>><br>> Thanks for the help,<br>><br>><br>><br>><br>> --
<br>> Nick Black<br>>  --------------------------------<br>> <a href="http://www.blacksworld.net">http://www.blacksworld.net</a><br>> _______________________________________________<br>> dev mailing list<br>
> <a href="mailto:dev@openstreetmap.org">dev@openstreetmap.org</a><br>> <a href="http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev">http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev</a><br>><br>
><br><br><br>--<br>    Jon<br></blockquote></div><br><br clear="all"><br>-- <br>Nick Black<br>--------------------------------<br><a href="http://www.blacksworld.net">http://www.blacksworld.net</a>