[GRASS-dev] error in nviz compiling GRASS 7 on Mac

Markus Neteler neteler at osgeo.org
Sat Feb 13 03:02:21 EST 2010


On Sat, Feb 13, 2010 at 8:45 AM, Michael Barton <michael.barton at asu.edu> wrote:
> I just tried to compile GRASS 7, updated a few minutes ago. There is an error in nviz. It is very recent, since I successfully compiled 7 a couple days ago.
>
> cmb-MBP-2:grass70_dev cmbarton$ cd /Users/cmbarton/grass_dev/grass70_dev/visualization/nviz
> cmb-MBP-2:nviz cmbarton$ make
> make -C src
> gcc  -g -O2    -arch i386  -I/Users/cmbarton/grass_dev/grass70_dev/dist.i386-apple-darwin10.2.0/include -I/Users/cmbarton/grass_dev/grass70_dev/dist.i386-apple-darwin10.2.0/include  -D_FILE_OFFSET_BITS=64 -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -I/Library/Frameworks/Tk.framework/PrivateHeaders -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -I/Library/Frameworks/Tk.framework/PrivateHeaders -I/Users/cmbarton/grass_dev/grass70_dev/dist.i386-apple-darwin10.2.0/include -I/Users/cmbarton/grass_dev/grass70_dev/dist.i386-apple-darwin10.2.0/include -I/Library/Frameworks/UnixImageIO.framework/unix/include  -I/Library/Frameworks/GDAL.framework/Versions/1.6/Headers -I/Library/Frameworks/GEOS.framework/Versions/3/unix/include  -DPACKAGE=\""grassmods"\"   -I/Users/cmbarton/grass_dev/grass70_dev/dist.i386-apple-darwin10.2.0/include -I/Users/cmbarton/grass_dev/grass70_dev/dist.i386-apple-darwin10.2.0/include -o OBJ.i386-apple-darwin10.2.0/do_zoom.o -c do_zoom.c
> do_zoom.c:48: error: conflicting types for ‘asprintf’
> /usr/include/stdio.h:300: error: previous declaration of ‘asprintf’ was here

Wild guess: Maybe it should be G_asprintf() ?
On Linux it compiles.

Markus


More information about the grass-dev mailing list