[GRASS5] Grass51 compile error

I wanted to try the new vector features in grass51 but I get following
error during the make-process:

------
postgres
make[3]: Wechsel in das Verzeichnis
»/home/harald/sourcen/grass51/db/drivers/postgres«
make[3]: *** Keine Regel vorhanden, um das Target »-lpq«,
    benötigt von
»/home/harald/sourcen/grass51/dist.i686-pc-linux-gnu/driver/db/pg«, zu
erstellen. Schluss.
make[3]: Verlassen des Verzeichnisses
»/home/harald/sourcen/grass51/db/drivers/postgres«
make[2]: *** [subdirs] Fehler 1
make[2]: Verlassen des Verzeichnisses
»/home/harald/sourcen/grass51/db/drivers«
make[1]: *** [subdirs] Fehler 1
make[1]: Verlassen des Verzeichnisses »/home/harald/sourcen/grass51/db«
make: *** [default] Fehler 1
harald@laptop:~/sourcen/grass51>
------

I think it is due to the message "no rule to make target -lpq". What can
I do here?

Here are some information about my system:

-SuSE Linux 8.1
-Grass50 snapshot experimental from 2003_02_22 (compiled and installed
without any problems)
-Postgres 7.3

Here is how i call the configure-script of grass51:
-------
CFLAGS="-g -Wall" ./configure
    --prefix=/home/harald/programs/grass_exp \
    --with-postgres-includes=/home/mobiharz/programme/postgres/include\
    --with-postgres-libs=/home/mobiharz/programme/postgres/lib \
    --with-tcltk-includes=/home/harald/programs/tcltk/include \
    --with-tcltk-libs=/home/harald/programs/tcltk/lib \
    --with-grass50=/home/harald/sourcen/grass50_exp_2003_02_22
-------

The output of configure looks like this:
-------
GRASS is now configured for i686-pc-linux-gnu

    Source directory: /home/harald/sourcen/grass51
    Build directory: /home/harald/sourcen/grass51
    Installation directory: /home/harald/programs/grass_exp/grass5
    C compiler: gcc -g -O2
    FORTRAN compiler:

    NVIZ: yes

    X11 support: yes
    DBM support: no
    JPEG support: yes
    TIFF support: yes
    PNG support: yes
    GD support: yes
    Tcl/Tk support: yes
    PostgreSQL support: yes
    MySQL support: no
    OpenGL(R) support: yes
    ODBC support: yes
    FFTW support: yes
    BLAS support: no
    LAPACK support: no
    Motif support: no
    FreeType support: no
    GLw support: no
    NLS support: no
    Readline support: no
--------

Can you help me?

Thanks.

Harald

On Friday 28 February 2003 10:56 am, Harald Wehr wrote:

I wanted to try the new vector features in grass51 but I get following
error during the make-process:

------
postgres
make[3]: Wechsel in das Verzeichnis
»/home/harald/sourcen/grass51/db/drivers/postgres«
make[3]: *** Keine Regel vorhanden, um das Target »-lpq«,
    benötigt von
»/home/harald/sourcen/grass51/dist.i686-pc-linux-gnu/driver/db/pg«, zu
erstellen. Schluss.
make[3]: Verlassen des Verzeichnisses
»/home/harald/sourcen/grass51/db/drivers/postgres«
make[2]: *** [subdirs] Fehler 1
make[2]: Verlassen des Verzeichnisses
»/home/harald/sourcen/grass51/db/drivers«
make[1]: *** [subdirs] Fehler 1
make[1]: Verlassen des Verzeichnisses »/home/harald/sourcen/grass51/db«
make: *** [default] Fehler 1
harald@laptop:~/sourcen/grass51>
------

I think it is due to the message "no rule to make target -lpq". What can
I do here?

Update grass51/db/drivers/postgres/Makefile from CVS
or remove "$(LIBES)" from "$(DRIVER): $(ARCH_OBJS) $(LIBES)"

Radim