[GRASS-dev] compilation error

Hello,
I tried to compile GRASS trunk.

Why do I get this error:

ERROR: Incompatible library version for module. You need to rebuild GRASS
        or untangle multiple installations.
make[2]: *** [db.tables.tmp.html] Fehler 1

Thanks in advance,
Timmie

ERROR: Incompatible library version for module. You need to rebuild GRASS
       or untangle multiple installations.
make[2]: *** [db.tables.tmp.html] Fehler 1

After Hamish recommended
make distclean

I got a litle further.

Now the next break:

/usr/local/src/grass_trunk/dist.i686-pc-linux-gnu/include/grass/gprojects.h:23:29: Fehler: ogr_srs_api.h: No such file or directory
In file included from proj_wrap.c:2694:
/usr/local/src/grass_trunk/dist.i686-pc-linux-gnu/include/grass/gprojects.h:84: Fehler: expected »=«, »,«, »;«, »asm« or »__attribute__« before »GPJ_grass_to_osr«
/usr/local/src/grass_trunk/dist.i686-pc-linux-gnu/include/grass/gprojects.h:88: Fehler: expected declaration specifiers or »...« before »OGRSpatialReferenceH«
make[3]: *** [OBJ.i686-pc-linux-gnu/proj_wrap.o] Fehler 1

What does this mean?

Kind regards,
Timmie

Hello,
thanks to Hamish for the assistance.

As the trunk failed I tried grass64:

svn co of https://svn.osgeo.org/grass/grass/branches/releasebranch_6_4

CFLAGS="-g -Wall" ./configure --with-cxx --with-freetype=yes --with-postgres=no --with-sqlite=yes --enable-largefile=yes --with-tcltk-includes=/usr/include/tcl8.4 --with-freetype-includes=/usr/include/freetype2 --with-opengl-libs=/usr/include/GL --with-readline --with-python=yes --program-suffix=SVN

=> no suffix appended:
ls ./bin.i686-pc-linux-gnu/
insgesamt 4,0K
-rwxr-xr-x 1 timmie users 1005 2009-06-12 14:26 grass64

then when entering a mapset, a wxpython window opens telling: "g.proj -p fails"

I have proj installed.

What can I do?

CFLAGS="-g -Wall" ./configure --with-cxx --with-freetype=yes --with-postgres=no --with-sqlite=yes --enable-largefile=yes --with-tcltk-includes=/usr/include/tcl8.4 --with-freetype-includes=/usr/include/freetype2 --with-opengl-libs=/usr/include/GL --with-readline --with-python=yes --program-suffix=SVN

=> no suffix appended:
ls ./bin.i686-pc-linux-gnu/
insgesamt 4,0K
-rwxr-xr-x 1 timmie users 1005 2009-06-12 14:26 grass64

Any idea why there is no suffix appended?
I want to have
grass64SVN

Thanks,
Timmie