Opened 12 years ago

Closed 11 years ago

#597 closed defect (invalid)

problem when compiling GRASS against GEOS

Reported by: martinl Owned by: pramsey
Priority: major Milestone: 3.4.0
Component: Build/Install Version: main
Severity: Unassigned Keywords: DelaunayTriangulationBuilder
Cc: martinl

Description

Hi,

I have problem when compiling GRASS against GEOS library. Configuration fails with

configure:6376: checking for geos-config
configure:6424: checking for geos_c.h
configure:6432: gcc -E -I/usr/local/include  conftest.c >/dev/null 2>conftest.out
configure:6521: checking for initGEOS in -lgeos_c
configure:6538: gcc -o conftest -g -Wall -Werror-implicit-function-declaration -fno-common -Wextra -Wunused   -L/usr/local/lib -lgeos  -Wl,--export-dynamic conftest.c -lgeos_c   1>&5
/usr/local/lib/libgeos_c.so: undefined reference to `geos::triangulate::DelaunayTriangulationBuilder::getTriangles(geos::geom::GeometryFactory const&)'
/usr/local/lib/libgeos_c.so: undefined reference to `geos::triangulate::DelaunayTriangulationBuilder::DelaunayTriangulationBuilder()'
/usr/local/lib/libgeos_c.so: undefined reference to `geos::triangulate::DelaunayTriangulationBuilder::getEdges(geos::geom::GeometryFactory const&)'
/usr/local/lib/libgeos_c.so: undefined reference to `geos::triangulate::DelaunayTriangulationBuilder::~DelaunayTriangulationBuilder()'
/usr/local/lib/libgeos_c.so: undefined reference to `geos::triangulate::DelaunayTriangulationBuilder::setSites(geos::geom::Geometry const&)'
collect2: error: ld returned 1 exit status
configure: failed program was:
#line 6527 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char initGEOS();

int main() {
initGEOS()
; return 0; }

GEOS is configured with

./configure --prefix=/usr/local --enable-python --with-gnu-ld

Any idea? Thanks. Martin

Change History (4)

comment:1 by martinl, 11 years ago

Seems to be related to GEOSDelaunayTriangulation_r from geos_ts_c.cpp

comment:2 by strk, 11 years ago

Milestone: 3.3.63.4.0

Did you run ./autogen.sh ?

comment:3 by robe, 11 years ago

Cc: martinl added

martinl -- can you respond to this one

in reply to:  2 comment:4 by martinl, 11 years ago

Resolution: invalid
Status: newclosed

Replying to strk:

Did you run ./autogen.sh ?

Sorry, I overlooked this ticket. Right, closing.

Note: See TracTickets for help on using tickets.