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

Markus Neteler neteler at osgeo.org
Sun Nov 16 05:15:33 EST 2008


Hi,

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'
/home/neteler/grassaddons/raster/r.sun_horizon/r.horizon/main.c:543:
undefined reference to `G_malloc'
/home/neteler/grassaddons/raster/r.sun_horizon/r.horizon/main.c:546:
undefined reference to `G_malloc'
/home/neteler/grassaddons/raster/r.sun_horizon/r.horizon/main.c:549:
undefined reference to `G_malloc'
OBJ.x86_64-unknown-linux-gnu/main.o: In function `calculate':
/home/neteler/grassaddons/raster/r.sun_horizon/r.horizon/main.c:1110:
undefined reference to `G_malloc'
OBJ.x86_64-unknown-linux-gnu/main.o:/home/neteler/grassaddons/raster/r.sun_horizon/r.horizon/main.c:1112:
more undefined references to `G_malloc' follow
collect2: ld returned 1 exit status
make: *** [/home/neteler/grass64/dist.x86_64-unknown-linux-gnu/bin/r.horizon]
Error 1

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

Markus


More information about the grass-dev mailing list