[GRASSLIST:6165] Problems with make -GRASS 5.4

On Mon, 14 Mar 2005, William Hudspeth wrote:

Hello, I have configured my GRASS installation with the following:

../grass-5.4.0/configure --with-tcltk-includes=/usr/local/include --
with-tcltk-libs=/usr/local/lib --with-postgres-
includes=/usr/local/pgsql/include --with-postgres-
libs=/usr/local/pgsql/lib --with-odbc=no --with-gdal --with-fftw=no

It then crashes on Make. I have extracted what seem to be the most
important errors.

alloc.c: In function `db_store':
alloc.c:10: warning: assignment makes pointer from integer without a
cast
alloc.c: At top level:
alloc.c:18: error: conflicting types for 'db_malloc'
alloc.c:10: error: previous implicit declaration of 'db_malloc' was

here

Try adding the line
#include "dbmi.h"

below the other two #include lines in src/libes/dbmi/lib/alloc.c and
re-compile. Does that help?

Paul

Paul, your solution worked well. Thanks much for the help. Bill

On Mon, 14 Mar 2005, William Hudspeth wrote:

Try adding the line
#include "dbmi.h"

below the other two #include lines in src/libes/dbmi/lib/alloc.c and
re-compile. Does that help?

Paul

Paul, your solution worked well. Thanks much for the help. Bill

Good to hear. I've committed it to CVS. This problem has been reported a few times now and seems to manifest itself depending on what compiler you are using so when I have time over the next week or so I'll see about merging a few more bugfixes into the 5.4 release branch and see if we can get 5.4.1 ready.

Paul