Markus, Sorry for not posting this to the whole like. I hit reply and not reply all. Here is the error for compiling GRASS7 and addons r.stream.

svn up today

Error:
make MODULE_TOPDIR=$HOME/source/grass/grass7
gcc -g -Wall -Werror-implicit-function-declaration -fno-common - Wextra -Wunused -I/home/ssefick/source/grass/grass7/dist.x86_64- unknown-linux-gnu/include -I/home/ssefick/source/grass/grass7/ dist.x86_64-unknown-linux-gnu/include -D_FILE_OFFSET_BITS=64 -I/usr/ include/gdal -I/usr/include -DPACKAGE=\""grassmods"\" -I/home/ ssefick/source/grass/grass7/dist.x86_64-unknown-linux-gnu/include -I/ home/ssefick/source/grass/grass7/dist.x86_64-unknown-linux-gnu/include -o OBJ.x86_64-unknown-linux-gnu/io.o -c io.c
io.c: In function ‘ram_create_map’:
io.c:16: warning: format not a string literal and no format arguments
io.c:13: warning: unused variable ‘c’
io.c: In function ‘ram_read_map’:
io.c:139: warning: format not a string literal and no format arguments
io.c: In function ‘seg_create_map’:
io.c:278: warning: format not a string literal and no format arguments
io.c:282: error: implicit declaration of function ‘creat’
io.c:287: warning: format not a string literal and no format arguments
io.c:291: error: implicit declaration of function ‘open’
io.c:293: warning: format not a string literal and no format arguments
io.c:298: warning: format not a string literal and no format arguments
io.c: In function ‘seg_read_map’:
io.c:404: warning: format not a string literal and no format arguments
make: *** [OBJ.x86_64-unknown-linux-gnu/io.o] Error 1



thanks

Stephen

On Feb 25, 2011, at 4:09 PM, Markus Neteler wrote:

On Fri, Feb 25, 2011 at 9:41 PM, Stephen Sefick <[email protected]> wrote:

1. file from add-ons moved over to grass70 source tree in raster folder

Not needed, you can compile directly from grass-addons/:

cd grass-addons/grass7/raster/r.stream/r.stream.snap/
make MODULE_TOPDIR=$HOME/grass70/

if needed:
make MODULE_TOPDIR=$HOME/grass70/ install

to clean:
make MODULE_TOPDIR=$HOME/grass70/ clean


...
Assembler messages:
Fatal error: can't create OBJ.x86_64-unknown-linux-gnu/io.o: No such
file or directory
make[1]: *** [OBJ.x86_64-unknown-linux-gnu/io.o] Error 1
make[1]: Leaving directory
`/home/ssefick/source/grass/trunk/raster/r.stream/r.stream.snap'

This error I don't get. I am using
gcc version 4.4.3 (GCC)

But there are a series of compiler warnings like
main.c:126: warning: implicit declaration of function ‘create_distance_mask’
main.c:127: warning: implicit declaration of function ‘read_points’
main.c:130: warning: implicit declaration of function ‘snap_point’
main.c:132: warning: implicit declaration of function ‘write_points’

which should be fixed.

Markus

_______________________________________________
grass-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-user

Reply via email to