[postgis-users] Strange error

strk at refractions.net strk at refractions.net
Mon Sep 19 07:26:14 PDT 2005


Does it happen after a make clean as well ?
The problem is that there are 3 implementation for centroid().
Which one is used is decided upon the compile-time defines:
	USE_GEOS
	USE_JTS
If you changed those vars after a build, you'll need a make clean
to force re-evaluation of them.

If the problem persists it might be a mis-support for your
preprocessor, can you provide version of it ?

--strk;

On Mon, Sep 19, 2005 at 03:49:38PM +0200, Wacek wrote:
> Hi,
> 
> I am trying to set up PostGIS on my machine. I've installed proj and 
> geos. I adjust them in Makefile.conf. But when I run make I receive:
> 
> [root at rysy postgis-1.0.0]# make
> make -C lwgeom
> make[1]: Entering directory 
> `/export/home/wacek/postgis/lib/postgresql-7.4.7/contrib/postgis-1.0.0/lwgeom'
> sh ../geos_version.sh /usr/local > postgis_geos_version.h
> gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes 
> -Wmissing-declarations -g -O2 -fexceptions -fPIC -DUSE_VERSION=74 
> -DPOSTGIS_LIB_VERSION='"1.0.0"' -DPOSTGIS_SCRIPTS_VERSION='"0.3.0"' 
> -DPOSTGIS_BUILD_DATE='"2005-09-19 13:35:22"' -I/usr/local/include 
> -DUSE_GEOS -I/usr/local/include -DUSE_PROJ  -I/usr/local/include 
> -DAUTOCACHE_BBOX=1  -DUSE_STATS -fpic -shared -Wl,-soname,liblwgeom.so.1 
> measures.o box2d.o ptarray.o lwgeom_api.o lwgeom.o lwpoint.o lwline.o 
> lwpoly.o lwmpoint.o lwmline.o lwmpoly.o lwcollection.o 
> lwgeom_geos_wrapper.o  wktunparse.o lwgparse.o wktparse.tab.o lex.yy.o 
> vsprintf.o liblwgeom.o lwgeom_pg.o lwgeom_debug.o lwgeom_spheroid.o 
> lwgeom_ogc.o lwgeom_functions_analytic.o lwgeom_geos.o lwgeom_inout.o 
> lwgeom_estimate.o lwgeom_functions_basic.o lwgeom_gist.o lwgeom_btree.o 
> lwgeom_transform.o stringBuffer.o lwgeom_box.o lwgeom_box3d.o 
> lwgeom_box2dfloat4.o lwgeom_chip.o lwgeom_svg.o lwgeom_gml.o 
> lwgeom_triggers.o lwgeom_dump.o 
> -L/export/home/wacek/postgis/lib/postgresql-7.4.7/contrib/postgis-1.0.0/../../src/port 
> -L/export/home/wacek/postgis/lib/postgresql-7.4.7/contrib/postgis-1.0.0/../../src/port  
> -lstdc++ -L/usr/local/lib -lgeos -L/usr/local/lib -lproj   
> -Wl,-rpath,/usr/local/pgsql/lib -o liblwgeom.so.1.0
> lwgeom_functions_basic.o(.text+0x375c): In function `pg_finfo_centroid':
> /export/home/wacek/postgis/lib/postgresql-7.4.7/contrib/postgis-1.0.0/lwgeom/lwgeom_functions_basic.c:2391: 
> multiple definition of `pg_finfo_centroid'
> lwgeom_geos.o(.text+0x1b8):/export/home/wacek/postgis/lib/postgresql-7.4.7/contrib/postgis-1.0.0/lwgeom/lwgeom_geos.c:1003: 
> first defined here
> lwgeom_functions_basic.o(.text+0x3774): In function `centroid':
> /export/home/wacek/postgis/lib/postgresql-7.4.7/contrib/postgis-1.0.0/lwgeom/lwgeom_functions_basic.c:2393: 
> multiple definition of `centroid'
> lwgeom_geos.o(.text+0x1c00):/export/home/wacek/postgis/lib/postgresql-7.4.7/contrib/postgis-1.0.0/lwgeom/lwgeom_geos.c:1005: 
> first defined here
> /usr/bin/ld: Warning: size of symbol `centroid' changed from 392 in 
> lwgeom_geos.o to 145 in lwgeom_functions_basic.o
> collect2: ld returned 1 exit status
> make[1]: *** [liblwgeom.so.1.0] Error 1
> make[1]: Leaving directory 
> `/export/home/wacek/postgis/lib/postgresql-7.4.7/contrib/postgis-1.0.0/lwgeom'
> make: *** [liblwgeom] Error 2
> 
> the same thing is when I comile 1.0.4 version.
> 
> Does anyone can help me?
> 
> Best regards
> Wacek
> 
> 
> 
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users



More information about the postgis-users mailing list