[GRASSLIST:5770] Re: errors on 5.4.0 build
Paul Kelly
paul-grass at stjohnspoint.co.uk
Mon Feb 14 17:00:27 EST 2005
On Mon, 14 Feb 2005, Kent Hodges wrote:
> Hi,
>
> The make.log is 4749 lines long so I have snipped the section containing the
> error:
>
> c -L/home/kent/Programs/grass-build/src/libes -Wl,--export-dynamic
> -Wl,-rpath-link,/home/kent/Programs/grass-build/src/libes
> -o /home/kent/Programs/grass-build/dist.i686-pc-linux-gnu/etc/bin/cmd/db.columns /home/kent/Programs/grass-build/src/libes/dbmi/clients/columns.o
> -ldbmi -lgrass_gis -lz -lm
> /home/kent/Programs/grass-build/src/libes/libdbmi.a(start.o)(.text+0xa3): In
> function `db_start_driver':
> /home/kent/Programs/grass-5.4.0/src/libes/dbmi/lib/start.c:47: undefined
> reference to `db_malloc'
All I can come up with without being able to test is to change the
function prototype for db_malloc in src/include/proto_dbmi.h from
void * db_malloc P((int n ));
to
void * db_malloc P((size_t));
size_t is used for the argument passed to malloc() in
/usr/include/stdlib.h . Although I notice GRASS' G_malloc is declared as
taking an int and hasn't caused problems..
Would be good if somebody can test.
Paul
More information about the grass-user
mailing list