[postgis-users] Makefile syntax problem with 1.2/8.2?

Mark Cave-Ayland mark.cave-ayland at ilande.co.uk
Thu Dec 14 02:47:54 PST 2006


On Wed, 2006-12-13 at 21:22 +0000, Nick Bower wrote:

(cut)

> gcc -DUSE_VERSION=82 -DPOSTGIS_LIB_VERSION='"1.2.0"' -DPOSTGIS_VERSION='"1.2 
> USE_GEOS=1 USE_PROJ=1 
> USE_STATS=1"' -DPOSTGIS_SCRIPTS_VERSION='"1.2.0"' -DPOSTGIS_BUILD_DATE='"2006-12-13 
> 21:17:23"' -I/usr/include -DUSE_PROJ  -I/usr/local/pgsql/include/server -DAUTOCACHE_BBOX=1  -DUSE_STATS -Wall -g -O2 -fPIC -fexceptions -DUSE_GEOS -I/usr/include   -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   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_c.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 lwgeom_functions_lrs.o long_xact.o lwcurve.o 
> lwcompound.o lwcurvepoly.o lwmcurve.o lwmsurface.o 
> lwgeom_sqlmm.o  -shared  /usr/lib -lgeos_c -L/usr/lib -lproj -o 
> liblwgeom.so.1.2
> /usr/lib: file not recognized: Is a directory
> collect2: ld returned 1 exit status
> make[1]: *** [liblwgeom.so.1.2] Error 1
> make[1]: Leaving directory `/root/src/postgis-1.2.0/lwgeom'
> make: *** [liblwgeom] Error 2


Hi Nick,

Okay, just wanted to check that there weren't any strange values being
passed into ./configure. Having a quick look through the Makefile, there
are very few things that can appear at that place in the link line - the
obvious one is content of the environment variable LDFLAGS. Is this
somehow being automatically set in your environment? If so, try
unsetting it and see whether that helps.


Kind regards,

Mark.





More information about the postgis-users mailing list