[GRASS-dev] GRASS 7 - r3.in.ascii not compiling on Mac

I just updated from trunk today and tried to compile GRASS 7.

r3.in.ascii failed to compile with the following error.

Michael

cmb-MBP:r3.in.ascii cmbarton$ make
: && gcc -L/Users/cmbarton/grass_dev/grass70_dev/dist.i386-apple-darwin10.4.0/lib -L/Users/cmbarton/grass_dev/grass70_dev/dist.i386-apple-darwin10.4.0/lib -arch i386 -arch x86_64 -o /Users/cmbarton/grass_dev/grass70_dev/dist.i386-apple-darwin10.4.0/bin/r3.in.ascii OBJ.i386-apple-darwin10.4.0/main.o -lgrass_g3d.7.0.svn -lgrass_gis.7.0.svn
Undefined symbols for architecture i386:
“_Rast_set_history”, referenced from:
_main in main.o
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
Undefined symbols for architecture x86_64:
“_Rast_set_history”, referenced from:
_main in main.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
lipo: can’t open input file: /var/folders/AK/AKpYwDw1EoWI+fFF02nvRk+++TI/-Tmp-//cc8l3PD2.out (No such file or directory)
make: *** [/Users/cmbarton/grass_dev/grass70_dev/dist.i386-apple-darwin10.4.0/bin/r3.in.ascii] Error 1
cmb-MBP:r3.in.ascii cmbarton$ cd …


C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Arizona State University

voice: 480-965-6262 (SHESC), 480-727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)

www: www.public.asu.edu/~cmbarton, http://csdc.asu.edu

Barton Michael wrote:

I just updated from trunk today and tried to compile GRASS 7.

r3.in.ascii failed to compile with the following error.

Michael

cmb-MBP:r3.in.ascii cmbarton$ make
: && gcc -L/Users/cmbarton/grass_dev/grass70_dev/dist.i386-apple-darwin10.4.0/lib -L/Users/cmbarton/grass_dev/grass70_dev/dist.i386-apple-darwin10.4.0/lib -arch i386 -arch x86_64 -o /Users/cmbarton/grass_dev/grass70_dev/dist.i386-apple-darwin10.4.0/bin/r3.in.ascii OBJ.i386-apple-darwin10.4.0/main.o -lgrass_g3d.7.0.svn -lgrass_gis.7.0.svn
Undefined symbols for architecture i386:
  "_Rast_set_history", referenced from:
      _main in main.o

This should be fixed by r42746; also for r3.info.

There shouldn't be any other modules with this issue. r3.to.rast is
the only other raster3d module which uses the history functions, and
that already linked against $(RASTERLIB). Any non-raster3d modules
which use the history will have needed to link against $(RASTERLIB) in
order to read/write the history file (G3d has its own versions of
these functions).

This didn't show up on Linux as libgrass_raster is pulled in
automatically by libgrass_g3d, and that's good enough for the GNU
linker. I suspect that it might also have been an issue on Windows.

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