[GRASS-dev] r.horizon: undefined reference to `G_malloc'

Glynn Clements glynn at gclements.plus.com
Sun Nov 16 05:59:44 EST 2008


Markus Neteler wrote:

> after the recent G_malloc() change I can no longer compile r.horizon:
> 
> [neteler at markus r.horizon]$ make MODULE_TOPDIR=$HOME/grass64/
> gcc -L/home/neteler/grass64/dist.x86_64-unknown-linux-gnu/lib
> -Wl,--export-dynamic  -L/usr/lib64
> -Wl,-rpath-link,/home/neteler/grass64/dist.x86_64-unknown-linux-gnu/lib
> -L/usr/lib64   -o
> /home/neteler/grass64/dist.x86_64-unknown-linux-gnu/bin/r.horizon
> OBJ.x86_64-unknown-linux-gnu/main.o  -lgrass_gproj -lgrass_gis
> -lgrass_datetime -lz     -lproj  -L/usr/local/lib -lgdal  -lgrass_gis
> -lgrass_datetime -lz     -lm  -lz
> OBJ.x86_64-unknown-linux-gnu/main.o: In function `INPUT':
> /home/neteler/grassaddons/raster/r.sun_horizon/r.horizon/main.c:542:
> undefined reference to `G_malloc'

> Will be a trivial problem but I don't find it...
> ?

main.c was compiled with an old version of gisdefs.h. Either it's
picking up an installed version, or main.c hasn't been recompiled
(i.e. neglected to "make clean" in grassaddons).

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-dev mailing list