Opened 9 years ago

Closed 7 years ago

#3194 closed defect (invalid)

osm2pgsql not compile on FreeBSD [patch]

Reported by: dmitry2006@… Owned by: jburgess777@…
Priority: major Milestone:
Component: osm2pgsql Version:
Keywords: osm2pgsql Cc:

Description

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

Attachments (1)

patch.txt (348 bytes) - added by dmitry2006@… 9 years ago.

Download all attachments as: .zip

Change History (6)

comment:1 Changed 9 years ago by Tom Hughes

Owner: changed from Tom Hughes to jburgess777@…
Status: newassigned

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.

comment:2 Changed 9 years ago by dmitry2006@…

True, i made a typo... Patch reloaded

Changed 9 years ago by dmitry2006@…

Attachment: patch.txt added

comment:3 Changed 8 years ago by Tom Hughes

Component: utilsosm2pgsql

comment:4 Changed 8 years ago by amm

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?

comment:5 Changed 7 years ago by amm

Resolution: invalid
Status: assignedclosed

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.

Note: See TracTickets for help on using tickets.