Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

osm2pgsql not compile on FreeBSD [patch] #3194

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 4 comments
Closed

osm2pgsql not compile on FreeBSD [patch] #3194

openstreetmap-trac opened this issue Jul 23, 2021 · 4 comments

Comments

@openstreetmap-trac
Copy link

Reporter: dmitry2006[at]yandex.ru
[Submitted to the original trac issue database at 4.14am, Monday, 30th August 2010]

g++ -c -o build_geometry.o build_geometry.cpp
build_geometry.cpp:28:26: error: geos/version.h: No such file or directory
build_geometry.cpp:51:23: error: geos/geom.h: No such file or directory
build_geometry.cpp:52:21: error: geos/io.h: No such file or directory
build_geometry.cpp:53:30: error: geos/opLinemerge.h: No such file or directory
build_geometry.cpp:54: error: 'geos' is not a namespace-name
build_geometry.cpp:54: error: expected namespace-name before ';' token
build_geometry.cpp:59: error: 'Geometry' was not declared in this scope
build_geometry.cpp:59: error: template argument 1 is invalid
build_geometry.cpp:59: error: invalid type in declaration before ';' token
build_geometry.cpp:61: error: expected initializer before '<' token
build_geometry.cpp:62: error: expected initializer before '<' token
build_geometry.cpp: In function 'char* get_wkt_simple(osmNode*, int, int)':
build_geometry.cpp:66: error: 'GeometryFactory' was not declared in this scope
build_geometry.cpp:66: error: expected `;' before 'gf'
build_geometry.cpp:67: error: 'CoordinateSequence' was not declared in this scope
build_geometry.cpp:67: error: template argument 1 is invalid
build_geometry.cpp:67: error: invalid type in declaration before '(' token
build_geometry.cpp:67: error: 'gf' was not declared in this scope
build_geometry.cpp:72: error: 'Coordinate' was not declared in this scope

@openstreetmap-trac
Copy link
Author

Author: TomH
[Added to the original trac issue at 6.41am, Monday, 30th August 2010]

That doesn't look like the right fix to me - if it needs libgeos headers then it should add them to the include path rather than relying on postgres compile options to pull them in.

@openstreetmap-trac
Copy link
Author

Author: dmitry2006[at]yandex.ru
[Added to the original trac issue at 6.49am, Monday, 30th August 2010]

True, i made a typo...
Patch reloaded

@openstreetmap-trac
Copy link
Author

Author: amm
[Added to the original trac issue at 7.23pm, Sunday, 25th September 2011]

Is this bug still applicable? Since this report, the configure system has changed quite a bit (now uses autotools). Could you please verify if the current SVN version works or is still broken?

@openstreetmap-trac
Copy link
Author

Author: amm
[Added to the original trac issue at 10.31pm, Saturday, 27th October 2012]

Marking as invalid, as there hasn't been any activity on this in a long time and many things have changed on the build system since then.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant