[GRASSLIST:4684] malloc alloc conflicting types in alloc.c in dbmi
francesco.pirotti
francesco.pirotti at unipd.it
Fri Oct 29 09:36:49 EDT 2004
Hello GRASS users,
Here is a question for the "programming-oriented" people:
I am compiling 5.3 source in the new Linux Mandrake 10.1 S.O and I get the
following modules with errors:
Compilation error in module: src/libes/dbmi/clients (ignored)
Compilation error in module: src/display/d.db (ignored)
Compilation error in module: src/display/d.what.db (ignored)
Compilation error in module: src/display/d.what.vect (ignored)
Compilation error in module: src/mapdev/v.db.reclass (ignored)
Compilation error in module: src/mapdev/v.out.shape (ignored)
Compilation error in module: src/mapdev/v.to.db (ignored)
Compilation error in module: src/raster/r.in.gdal (ignored)
Compilation error in module: src/raster/r.mapcalc3 (ignored)
Compilation error in module: src.contrib/SDTS (ignored)
Compilation error in module: src/libes/dbmi/drivers/odbc (ignored)
when compiling the first error module with gmake53 I get the following error
stating that the malloc and alloc declaration in the first lines of the file
alloc.c is of conflicting types.
alloc.c:4: error: conflicting types for 'malloc'
alloc.c:4: error: conflicting types for 'malloc'
alloc.c:5: error: conflicting types for 'calloc'
alloc.c:5: error: conflicting types for 'calloc'
make[1]: *** [OBJ.i686-pc-linux-gnu/alloc.o] Error 1
make[1]: Leaving directory `/usr/local/grass-5.3.0/src/libes/dbmi/lib'
make: *** [all] Error 2
The first lines of alloc.c are:
#include "dbmi.h"
#include <string.h>
extern char *malloc();
extern char *calloc();
extern char *realloc();
Can it be something to do with stdc++ libraries?
If anybody has an idea please let me know?
Ciao
Francesco Pirotti
More information about the grass-user
mailing list