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

Michael Barton Michael.Barton at asu.edu
Sat Feb 13 10:44:40 EST 2010


Thanks much. Fixed now.

Michael


On Feb 13, 2010, at 2:07 AM, Glynn Clements wrote:

> 
> Markus Neteler 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() ?
> 
> No; it should be some other name which doesn't conflict with any
> existing function, e.g. xsprintf(). Fixed in r40965.
> 
> It's just a wrapper around G_asprintf() (which is a wrapper around
> asprintf() if it exists, or an implementation based upon snprintf() if
> it doesn't).
> 
> -- 
> Glynn Clements <glynn at gclements.plus.com>



More information about the grass-dev mailing list