[GRASS-dev] Re: [GRASS-SVN] r51583 - grass/trunk/vector/v.buffer

Markus Neteler neteler at osgeo.org
Tue May 1 06:56:20 EDT 2012


Hi,

On Tue, May 1, 2012 at 10:37 AM,  <svn_grass at osgeo.org> wrote:
> Author: mmetz
> Date: 2012-05-01 01:37:26 -0700 (Tue, 01 May 2012)
> New Revision: 51583
>
> Modified:
>   grass/trunk/vector/v.buffer/Makefile
> Log:
> add again GEOSLIBS ??? should be included by VECTORLIB

I have this:

[neteler at north grass70]$ grep geos include/Make/*
include/Make/Platform.make:GEOSLIBS            = -L/usr/lib64 -lgeos -lgeos_c

but without GEOSLIBS in the Makefile of v.buffer I get this error:

gcc  -g -Wall  -fno-common -fexceptions -mtune=nocona -m64
-minline-all-stringops
-I/home/neteler/grass70/dist.x86_64-unknown-linux-gnu/include
-I/home/neteler/grass70/dist.x86_64-unknown-linux-gnu/include
-D_FILE_OFFSET_BITS=64 -I/usr/include/gdal -I/usr/include
-DPACKAGE=\""grassmods"\"
-I/home/neteler/grass70/dist.x86_64-unknown-linux-gnu/include
-I/home/neteler/grass70/dist.x86_64-unknown-linux-gnu/include -o
OBJ.x86_64-unknown-linux-gnu/geos.o -c geos.c
: && gcc -L/home/neteler/grass70/dist.x86_64-unknown-linux-gnu/lib
-L/home/neteler/grass70/dist.x86_64-unknown-linux-gnu/lib
-Wl,--no-undefined -Wl,--export-dynamic  -L/usr/lib64
-Wl,-rpath-link,/home/neteler/grass70/dist.x86_64-unknown-linux-gnu/lib
 -o /home/neteler/grass70/dist.x86_64-unknown-linux-gnu/bin/v.buffer
OBJ.x86_64-unknown-linux-gnu/main.o
OBJ.x86_64-unknown-linux-gnu/geos.o    -lgrass_vector.7.0.svn
-lgrass_dbmiclient.7.0.svn -lgrass_dbmibase.7.0.svn
-lgrass_gis.7.0.svn -lm   -lm
/usr/bin/ld: OBJ.x86_64-unknown-linux-gnu/main.o: undefined reference
to symbol 'GEOSBufferParams_create'
/usr/bin/ld: note: 'GEOSBufferParams_create' is defined in DSO
/usr/lib64/libgeos_c.so.1 so try adding it to the linker command line
/usr/lib64/libgeos_c.so.1: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make: *** [/home/neteler/grass70/dist.x86_64-unknown-linux-gnu/bin/v.buffer]
Error 1

Using Fedora 16, 64bit with geos from their RPM.

A related page:
http://fedoraproject.org/wiki/UnderstandingDSOLinkChange

Since you also have Fedora16, I wonder why it compiles for you and not for me
without GEOSLIBS in the Makefile of v.buffer.

Markus


More information about the grass-dev mailing list