[GRASSLIST:2133] 5.7 and postgres on Mac OSX

David Orme d.orme at imperial.ac.uk
Mon Jan 5 12:27:58 EST 2004


Hi all,

I'm trying again to build grass 5.7 (from 2004_01_03 snapshots) on mac  
10.2.8: make bails out when trying to create libgrass_vect.dylib  
because it can't locate -lpq. I've got the postgres libs and includes  
in my configure arguments and I can't work out where I'm going wrong.  
I've put the steps below - can anyone suggest what's going on?

Thanks,
David

CFLAGS="-g -Wall" ./configure   
--with-grass50=//usr/local/src/grass53_exp_2004_01_03    
--with-postgres-includes=/usr/local/pgsql/include/    
--with-postgres-libs=/usr/local/pgsql/lib/ --with-opengl=no
make mix
make

.
[clipped]
.

gcc   
-L/usr/local/src/grass57_exp_2004_01_03/dist.powerpc-apple-darwin6.8/ 
lib    -dynamiclib -Wl,-flat_namespace,-U,_cuserid -undefined suppress   
-L/usr/local/src/grass57_exp_2004_01_03/dist.powerpc-apple-darwin6.8/ 
lib      \
         OBJ.powerpc-apple-darwin6.8/area.o  
OBJ.powerpc-apple-darwin6.8/array.o OBJ.powerpc-apple-darwin6.8/box.o  
OBJ.powerpc-apple-darwin6.8/break_lines.o  
OBJ.powerpc-apple-darwin6.8/break_polygons.o  
OBJ.powerpc-apple-darwin6.8/bridges.o  
OBJ.powerpc-apple-darwin6.8/buffer.o  
OBJ.powerpc-apple-darwin6.8/build.o  
OBJ.powerpc-apple-darwin6.8/build_nat.o  
OBJ.powerpc-apple-darwin6.8/build_ogr.o  
OBJ.powerpc-apple-darwin6.8/build_post.o  
OBJ.powerpc-apple-darwin6.8/build_shp.o  
OBJ.powerpc-apple-darwin6.8/cats.o OBJ.powerpc-apple-darwin6.8/close.o  
OBJ.powerpc-apple-darwin6.8/close_nat.o  
OBJ.powerpc-apple-darwin6.8/close_ogr.o  
OBJ.powerpc-apple-darwin6.8/close_post.o  
OBJ.powerpc-apple-darwin6.8/close_shp.o  
OBJ.powerpc-apple-darwin6.8/constraint.o  
OBJ.powerpc-apple-darwin6.8/dangles.o  
OBJ.powerpc-apple-darwin6.8/error.o OBJ.powerpc-apple-darwin6.8/field.o  
OBJ.powerpc-apple-darwin6.8/find.o OBJ.powerpc-apple-darwin6.8/graph.o  
OBJ.powerpc-apple-darwin6.8/header.o OBJ.powerpc-apple-darwin6.8/hist.o  
OBJ.powerpc-apple-darwin6.8/init_head.o  
OBJ.powerpc-apple-darwin6.8/intersect.o  
OBJ.powerpc-apple-darwin6.8/legal_vname.o  
OBJ.powerpc-apple-darwin6.8/level.o  
OBJ.powerpc-apple-darwin6.8/level_two.o  
OBJ.powerpc-apple-darwin6.8/line.o OBJ.powerpc-apple-darwin6.8/list.o  
OBJ.powerpc-apple-darwin6.8/map.o OBJ.powerpc-apple-darwin6.8/net.o  
OBJ.powerpc-apple-darwin6.8/open.o  
OBJ.powerpc-apple-darwin6.8/open_nat.o  
OBJ.powerpc-apple-darwin6.8/open_ogr.o  
OBJ.powerpc-apple-darwin6.8/open_post.o  
OBJ.powerpc-apple-darwin6.8/open_shp.o  
OBJ.powerpc-apple-darwin6.8/overlap.o  
OBJ.powerpc-apple-darwin6.8/overlay.o  
OBJ.powerpc-apple-darwin6.8/poly.o OBJ.powerpc-apple-darwin6.8/read.o  
OBJ.powerpc-apple-darwin6.8/read_nat.o  
OBJ.powerpc-apple-darwin6.8/read_ogr.o  
OBJ.powerpc-apple-darwin6.8/read_post.o  
OBJ.powerpc-apple-darwin6.8/read_shp.o  
OBJ.powerpc-apple-darwin6.8/remove_duplicates.o  
OBJ.powerpc-apple-darwin6.8/rewind.o  
OBJ.powerpc-apple-darwin6.8/rewind_nat.o  
OBJ.powerpc-apple-darwin6.8/rewind_ogr.o  
OBJ.powerpc-apple-darwin6.8/rewind_post.o  
OBJ.powerpc-apple-darwin6.8/rewind_shp.o  
OBJ.powerpc-apple-darwin6.8/select.o  
OBJ.powerpc-apple-darwin6.8/sindex.o OBJ.powerpc-apple-darwin6.8/snap.o  
OBJ.powerpc-apple-darwin6.8/tin.o OBJ.powerpc-apple-darwin6.8/type.o  
OBJ.powerpc-apple-darwin6.8/window.o  
OBJ.powerpc-apple-darwin6.8/write.o  
OBJ.powerpc-apple-darwin6.8/write_nat.o  
OBJ.powerpc-apple-darwin6.8/write_post.o -lgrass_gis -lgrass_datetime   
-lintl -lgrass_dig2 -lgrass_shape -lgrass_dgl -lgrass_rtree  
-lgrass_linkm -lgrass_dbmiclient -lgrass_dbmibase -lpq  -o  
/usr/local/src/grass57_exp_2004_01_03/dist.powerpc-apple-darwin6.8/lib/ 
libgrass_vect.dylib
/usr/bin/libtool: can't locate file for: -lpq
/usr/bin/libtool: file: -lpq is not an object file (not allowed in a  
library)
make[3]: ***  
[/usr/local/src/grass57_exp_2004_01_03/dist.powerpc-apple-darwin6.8/ 
lib/libgrass_vect.dylib] Error 1
make[2]: *** [subdirs] Error 1
make[1]: *** [subdirs] Error 1
make: *** [default] Error 1




More information about the grass-user mailing list