[GRASS5] again compiling-probs with grass51
Radim Blazek
blazek at itc.it
Thu May 15 10:51:25 EDT 2003
On Thursday 15 May 2003 02:42 pm, Stephan Holl wrote:
> Dear developers,
>
> doing a fresh CVS-checkout from grass51 the compilations stops with the
> following error:
>
> /daten/software/grass51/include/gis.h:36: warning: `GRASS_copyright'
> defined but not used
> /daten/software/grass51/include/sqlp.h:145: warning: `newNode' declared
> `static' but never defined
> gcc -g -L/daten/software/grass51/dist.i686-pc-linux-gnu/lib -o
> /daten/software/grass51/dist.i686-pc-linux-gnu/driver/db/pg
> OBJ.i686-pc-linux-gnu/column.o OBJ.i686-pc-linux-gnu/cursor.o
> OBJ.i686-pc-linux-gnu/db.o OBJ.i686-pc-linux-gnu/describe.o
> OBJ.i686-pc-linux-gnu/driver.o OBJ.i686-pc-linux-gnu/execute.o
> OBJ.i686-pc-linux-gnu/error.o OBJ.i686-pc-linux-gnu/fetch.o
> OBJ.i686-pc-linux-gnu/listdb.o OBJ.i686-pc-linux-gnu/listtab.o
> OBJ.i686-pc-linux-gnu/main.o OBJ.i686-pc-linux-gnu/pgexe.o
> OBJ.i686-pc-linux-gnu/select.o OBJ.i686-pc-linux-gnu/str.o
> OBJ.i686-pc-linux-gnu/table.o
> /daten/software/grass51/dist.i686-pc-linux-gnu/lib/libgrass_dbmi.a
> /daten/software/grass51/dist.i686-pc-linux-gnu/lib/libgrass_sqlp.a
> /daten/software/grass51/dist.i686-pc-linux-gnu/lib/libgrass_dbstubs.a
> /daten/software/grass51/dist.i686-pc-linux-gnu/lib/libgrass_dbdialog.a
> /daten/software/grass51/dist.i686-pc-linux-gnu/lib/libgrass_gis.a
> /daten/software/grass51/dist.i686-pc-linux-gnu/lib/libgrass_datetime.a
> -lpq -lcrypt -ltk8.4 -lm -ltcl8.4 -lm \
> -lm -lz
> /usr/lib/gcc-lib/i486-suse-linux/3.2/../../../../i486-suse-linux/bin/ld:
> cannot find -lpq
I think that $(PQLIBPATH) is missing in rules, try to change Makefile from:
$(DRIVER): $(ARCH_OBJS)
$(CC) -g $(LDFLAGS) -o $@ $(ARCH_OBJS) $(LIBES) $(CRYPTLIB) $(TCLTKLIBPATH) $(TCLTKLIBS) \
$(MATHLIB) $(XDRLIB)
to
$(DRIVER): $(ARCH_OBJS)
$(CC) -g $(LDFLAGS) -o $@ $(ARCH_OBJS) $(PQLIBPATH) $(LIBES) $(CRYPTLIB) $(TCLTKLIBPATH) $(TCLTKLIBS) \
$(MATHLIB) $(XDRLIB)
Radim
More information about the grass-dev
mailing list