[GRASS-user] Re: r.stream.order problem making on mac os x

stephen sefick ssefick at gmail.com
Sun Sep 27 15:38:22 EDT 2009


They have compiled after a
make clean
make
make install

but I am getting a bus error

On Sun, Sep 27, 2009 at 1:31 PM, stephen sefick <ssefick at gmail.com> wrote:
> I put the r.stream.order sources into my raster folder in the grass
> sources.  I tried both the from Jarek's website and the svn
> grass-addons both threw this error message.  The old version compiled
> and worked fine on my mac 10.5.7.  Any help would be greatly
> appreciated.
>
> Stephen Sefick
>
> test -d OBJ.i386-apple-darwin9.8.0 || mkdir -p OBJ.i386-apple-darwin9.8.0
> gcc -I/Users/sefick/Grass_Source/grass-6.4.0RC5/dist.i386-apple-darwin9.8.0/include
>  -g -O2       -DPACKAGE=\""grassmods"\"
> -I/Users/sefick/Grass_Source/grass-6.4.0RC5/dist.i386-apple-darwin9.8.0/include
> -o OBJ.i386-apple-darwin9.8.0/io.o -c io.c
> io.c:1:27: error: grass/glocale.h: No such file or directory
> In file included from io.c:2:
> global.h:5:23: error: grass/gis.h: No such file or directory
> In file included from io.c:2:
> global.h:66: error: syntax error before ‘*’ token
> global.h:67: error: syntax error before ‘*’ token
> global.h:78: error: syntax error before ‘*’ token
> global.h:78: warning: data definition has no type or storage class
> global.h:79: error: syntax error before ‘*’ token
> global.h:79: warning: data definition has no type or storage class
> io.c: In function ‘open_raster’:
> io.c:9: error: storage size of ‘cellhd’ isn’t known
> io.c:11: warning: assignment makes pointer from integer without a cast
> io.c:17: error: ‘CELL_TYPE’ undeclared (first use in this function)
> io.c:17: error: (Each undeclared identifier is reported only once
> io.c:17: error: for each function it appears in.)
> io.c:27: error: invalid use of undefined type ‘struct Cell_head’
> io.c:27: error: invalid use of undefined type ‘struct Cell_head’
> io.c: In function ‘create_base_maps’:
> io.c:38: error: ‘CELL’ undeclared (first use in this function)
> io.c:38: error: ‘r_dirs’ undeclared (first use in this function)
> io.c:38: error: ‘r_streams’ undeclared (first use in this function)
> io.c:39: error: ‘DCELL’ undeclared (first use in this function)
> io.c:39: error: ‘r_accum’ undeclared (first use in this function)
> io.c:47: error: syntax error before ‘)’ token
> io.c:48: error: syntax error before ‘)’ token
> io.c:50: error: syntax error before ‘)’ token
> io.c:52: error: syntax error before ‘)’ token
> io.c:53: error: syntax error before ‘)’ token
> io.c:55: error: syntax error before ‘)’ token
> io.c:62: warning: assignment makes pointer from integer without a cast
> io.c:63: warning: assignment makes pointer from integer without a cast
> io.c:73: error: syntax error before ‘)’ token
> io.c: In function ‘stream_number’:
> io.c:120: error: ‘CELL’ undeclared (first use in this function)
> io.c:120: error: syntax error before ‘c_min’
> io.c:123: warning: assignment makes pointer from integer without a cast
> io.c:125: error: ‘c_min’ undeclared (first use in this function)
> io.c:125: error: ‘c_max’ undeclared (first use in this function)
> io.c: In function ‘write_maps’:
> io.c:132: error: ‘CELL’ undeclared (first use in this function)
> io.c:132: error: ‘strahler_buf’ undeclared (first use in this function)
> io.c:132: error: ‘shreeve_buf’ undeclared (first use in this function)
> io.c:132: error: ‘hack_buf’ undeclared (first use in this function)
> io.c:132: error: ‘horton_buf’ undeclared (first use in this function)
> io.c:134: error: storage size of ‘history’ isn’t known
> io.c:138: error: ‘CELL_TYPE’ undeclared (first use in this function)
> make: *** [OBJ.i386-apple-darwin9.8.0/io.o] Error 1
>
>
> --
> Stephen Sefick
>
> Let's not spend our time and resources thinking about things that are
> so little or so large that all they really do for us is puff us up and
> make us feel like gods.  We are mammals, and have not exhausted the
> annoying little problems of being mammals.
>
>                                                                -K. Mullis
>



-- 
Stephen Sefick

Let's not spend our time and resources thinking about things that are
so little or so large that all they really do for us is puff us up and
make us feel like gods.  We are mammals, and have not exhausted the
annoying little problems of being mammals.

								-K. Mullis


More information about the grass-user mailing list