[GRASSLIST:1960] can't find statvfs.h, gis.h in build of 5.7

Christopher Fonnesbeck chris at fonnesbeck.org
Fri Dec 5 09:35:57 EST 2003


When building grass57, I get the following errors from main.cc:

c++ -c -I./IOStream/include -DUSER=\"chris\" -DNODATA_FIX 
-D_FILE_OFFSET_BITS=64 -DELEV_FLOAT main.cc -o 
OBJ.powerpc-apple-darwin7.0.0/FLOAT/main.o
main.cc:48:25: sys/statvfs.h: No such file or directory
main.cc:52:17: gis.h: No such file or directory
In file included from main.cc:56:
common.h:53:17: gis.h: No such file or directory
In file included from main.cc:60:
grass2str.h: In function `AMI_STREAM<T>* cell2stream(char*, float, long 
int*)':
grass2str.h:90: error: parse error before `;' token
grass2str.h:97: error: parse error before `;' token
grass2str.h:113: error: parse error before `)' token
grass2str.h:116: error: parse error before `;' token
grass2str.h:120: error: parse error before `)' token
grass2str.h:123: error: parse error before `;' token
grass2str.h:127: error: parse error before `)' token
grass2str.h:143: error: parse error before `)' token
grass2str.h:143: error: parse error before `)' token
grass2str.h: In function `void stream2_CELL(AMI_STREAM<T>*, short int, 
short
    int, char*)':
grass2str.h:219: error: parse error before `)' token
grass2str.h:221: error: parse error before `)' token
grass2str.h: In function `void stream2_CELL(AMI_STREAM<T>*, short int, 
short
    int, FUN, char*)':
grass2str.h:291: error: parse error before `)' token
grass2str.h:293: error: parse error before `)' token
grass2str.h:300: error: parse error before `)' token
grass2str.h: In function `void stream2_FCELL(AMI_STREAM<T>*, short int, 
short
    int, FUN, char*)':
grass2str.h:365: error: parse error before `)' token
grass2str.h:367: error: parse error before `)' token
grass2str.h:374: error: parse error before `)' token
grass2str.h: In function `void stream2_FCELL(AMI_STREAM<T>*, short int, 
short
    int, FUN1, FUN2, char*, char*)':
grass2str.h:450: error: parse error before `)' token
grass2str.h:453: error: parse error before `)' token
main.cc: In function `void parse_args(int, char**)':
main.cc:84: error: `G_define_option' undeclared (first use this 
function)
main.cc:84: error: (Each undeclared identifier is reported only once 
for each
    function it appears in.)
main.cc:85: error: invalid use of undefined type `struct Option'
main.cc:83: error: forward declaration of `struct Option'
main.cc:86: error: invalid use of undefined type `struct Option'
main.cc:83: error: forward declaration of `struct Option'
main.cc:86: error: `TYPE_STRING' undeclared (first use this function)
main.cc:87: error: invalid use of undefined type `struct Option'
main.cc:83: error: forward declaration of `struct Option'
main.cc:87: error: `YES' undeclared (first use this function)
main.cc:88: error: invalid use of undefined type `struct Option'
main.cc:83: error: forward declaration of `struct Option'
main.cc:89: error: invalid use of undefined type `struct Option'
main.cc:83: error: forward declaration of `struct Option'
main.cc:94: error: invalid use of undefined type `struct Option'
main.cc:83: error: forward declaration of `struct Option'
main.cc:95: error: invalid use of undefined type `struct Option'
main.cc:83: error: forward declaration of `struct Option'
main.cc:96: error: invalid use of undefined type `struct Option'
main.cc:83: error: forward declaration of `struct Option'
main.cc:97: error: invalid use of undefined type `struct Option'
main.cc:83: error: forward declaration of `struct Option'
main.cc:98: error: invalid use of undefined type `struct Option'
main.cc:83: error: forward declaration of `struct Option'
main.cc:103: error: invalid use of undefined type `struct Option'
main.cc:83: error: forward declaration of `struct Option'
main.cc:104: error: invalid use of undefined type `struct Option'
main.cc:83: error: forward declaration of `struct Option'
main.cc:105: error: invalid use of undefined type `struct Option'
main.cc:83: error: forward declaration of `struct Option'
main.cc:106: error: invalid use of undefined type `struct Option'
main.cc:83: error: forward declaration of `struct Option'
main.cc:107: error: invalid use of undefined type `struct Option'
main.cc:83: error: forward declaration of `struct Option'
main.cc:112: error: invalid use of undefined type `struct Option'
main.cc:83: error: forward declaration of `struct Option'
main.cc:113: error: invalid use of undefined type `struct Option'
main.cc:83: error: forward declaration of `struct Option'
main.cc:114: error: invalid use of undefined type `struct Option'
main.cc:83: error: forward declaration of `struct Option'
main.cc:115: error: invalid use of undefined type `struct Option'
main.cc:83: error: forward declaration of `struct Option'
main.cc:116: error: invalid use of undefined type `struct Option'
main.cc:83: error: forward declaration of `struct Option'
main.cc:121: error: invalid use of undefined type `struct Option'
main.cc:83: error: forward declaration of `struct Option'
main.cc:122: error: invalid use of undefined type `struct Option'
main.cc:83: error: forward declaration of `struct Option'
main.cc:123: error: invalid use of undefined type `struct Option'
main.cc:83: error: forward declaration of `struct Option'
main.cc:124: error: invalid use of undefined type `struct Option'
main.cc:83: error: forward declaration of `struct Option'
main.cc:125: error: invalid use of undefined type `struct Option'
main.cc:83: error: forward declaration of `struct Option'
main.cc:130: error: invalid use of undefined type `struct Option'
main.cc:83: error: forward declaration of `struct Option'
main.cc:131: error: invalid use of undefined type `struct Option'
main.cc:83: error: forward declaration of `struct Option'
main.cc:132: error: invalid use of undefined type `struct Option'
main.cc:83: error: forward declaration of `struct Option'
main.cc:133: error: invalid use of undefined type `struct Option'
main.cc:83: error: forward declaration of `struct Option'
main.cc:134: error: invalid use of undefined type `struct Option'
main.cc:83: error: forward declaration of `struct Option'
main.cc:139: error: `G_define_flag' undeclared (first use this function)
main.cc:140: error: invalid use of undefined type `struct Flag'
main.cc:138: error: forward declaration of `struct Flag'
main.cc:141: error: invalid use of undefined type `struct Flag'
main.cc:138: error: forward declaration of `struct Flag'
main.cc:147: error: invalid use of undefined type `struct Option'
main.cc:83: error: forward declaration of `struct Option'
main.cc:148: error: invalid use of undefined type `struct Option'
main.cc:83: error: forward declaration of `struct Option'
main.cc:148: error: `TYPE_DOUBLE' undeclared (first use this function)
main.cc:149: error: invalid use of undefined type `struct Option'
main.cc:83: error: forward declaration of `struct Option'
main.cc:149: error: `NO' undeclared (first use this function)
main.cc:150: error: invalid use of undefined type `struct Option'
main.cc:83: error: forward declaration of `struct Option'
main.cc:151: error: invalid use of undefined type `struct Option'
main.cc:83: error: forward declaration of `struct Option'
main.cc:156: error: invalid use of undefined type `struct Option'
main.cc:83: error: forward declaration of `struct Option'
main.cc:157: error: invalid use of undefined type `struct Option'
main.cc:83: error: forward declaration of `struct Option'
main.cc:157: error: `TYPE_INTEGER' undeclared (first use this function)
main.cc:158: error: invalid use of undefined type `struct Option'
main.cc:83: error: forward declaration of `struct Option'
main.cc:159: error: invalid use of undefined type `struct Option'
main.cc:83: error: forward declaration of `struct Option'
main.cc:160: error: invalid use of undefined type `struct Option'
main.cc:83: error: forward declaration of `struct Option'
main.cc:165: error: invalid use of undefined type `struct Option'
main.cc:83: error: forward declaration of `struct Option'
main.cc:166: error: invalid use of undefined type `struct Option'
main.cc:83: error: forward declaration of `struct Option'
main.cc:167: error: invalid use of undefined type `struct Option'
main.cc:83: error: forward declaration of `struct Option'
main.cc:168: error: invalid use of undefined type `struct Option'
main.cc:83: error: forward declaration of `struct Option'
main.cc:169: error: invalid use of undefined type `struct Option'
main.cc:83: error: forward declaration of `struct Option'
main.cc:174: error: invalid use of undefined type `struct Flag'
main.cc:138: error: forward declaration of `struct Flag'
main.cc:175: error: invalid use of undefined type `struct Flag'
main.cc:138: error: forward declaration of `struct Flag'
main.cc:181: error: invalid use of undefined type `struct Option'
main.cc:83: error: forward declaration of `struct Option'
main.cc:182: error: invalid use of undefined type `struct Option'
main.cc:83: error: forward declaration of `struct Option'
main.cc:183: error: invalid use of undefined type `struct Option'
main.cc:83: error: forward declaration of `struct Option'
main.cc:184: error: invalid use of undefined type `struct Option'
main.cc:83: error: forward declaration of `struct Option'
main.cc:185: error: invalid use of undefined type `struct Option'
main.cc:83: error: forward declaration of `struct Option'
main.cc:190: error: `G_parser' undeclared (first use this function)
main.cc:196: error: invalid use of undefined type `struct Option'
main.cc:83: error: forward declaration of `struct Option'
main.cc:197: error: invalid use of undefined type `struct Option'
main.cc:83: error: forward declaration of `struct Option'
main.cc:198: error: invalid use of undefined type `struct Option'
main.cc:83: error: forward declaration of `struct Option'
main.cc:199: error: invalid use of undefined type `struct Option'
main.cc:83: error: forward declaration of `struct Option'
main.cc:200: error: invalid use of undefined type `struct Option'
main.cc:83: error: forward declaration of `struct Option'
main.cc:202: error: invalid use of undefined type `struct Option'
main.cc:83: error: forward declaration of `struct Option'
main.cc:205: error: invalid use of undefined type `struct Flag'
main.cc:138: error: forward declaration of `struct Flag'
main.cc:206: error: invalid use of undefined type `struct Option'
main.cc:83: error: forward declaration of `struct Option'
main.cc:209: error: invalid use of undefined type `struct Option'
main.cc:83: error: forward declaration of `struct Option'
main.cc:212: error: invalid use of undefined type `struct Option'
main.cc:83: error: forward declaration of `struct Option'
main.cc:213: error: invalid use of undefined type `struct Option'
main.cc:83: error: forward declaration of `struct Option'
main.cc:214: error: invalid use of undefined type `struct Flag'
main.cc:138: error: forward declaration of `struct Flag'
main.cc:215: error: invalid use of undefined type `struct Option'
main.cc:83: error: forward declaration of `struct Option'
main.cc: In function `void check_header(char*)':
main.cc:226: error: `G_find_cell' undeclared (first use this function)
main.cc:228: error: `G_fatal_error' undeclared (first use this function)
main.cc:231: error: aggregate `Cell_head cell_hd' has incomplete type 
and
    cannot be defined
main.cc:232: error: `G_get_cellhd' undeclared (first use this function)
main.cc:236: error: invalid use of undefined type `struct Cell_head'
common.h:60: error: forward declaration of `struct Cell_head'
main.cc:237: error: invalid use of undefined type `struct Cell_head'
common.h:60: error: forward declaration of `struct Cell_head'
main.cc:250: error: `RASTER_MAP_TYPE' undeclared (first use this 
function)
main.cc:250: error: parse error before `;' token
main.cc:251: error: `data_type' undeclared (first use this function)
main.cc:251: error: `G_raster_map_type' undeclared (first use this 
function)
main.cc:268: error: `CELL_TYPE' undeclared (first use this function)
main.cc:272: error: `DCELL_TYPE' undeclared (first use this function)
main.cc: In function `void check_args()':
main.cc:288: error: `G_legal_filename' undeclared (first use this 
function)
main.cc: In function `void setFlowAccuColorTable(char*)':
main.cc:369: error: aggregate `Colors colors' has incomplete type and 
cannot be
    defined
main.cc:371: error: aggregate `Range r' has incomplete type and cannot 
be
    defined
main.cc:377: error: `G_read_range' undeclared (first use this function)
main.cc:390: error: `G_init_colors' undeclared (first use this function)
main.cc:392: error: `G_add_color_rule' undeclared (first use this 
function)
main.cc:396: error: `CELL' undeclared (first use this function)
main.cc:396: error: parse error before `[' token
main.cc:399: error: `G_write_colors' undeclared (first use this 
function)
main.cc:402: error: `G_free_colors' undeclared (first use this function)
main.cc: In function `void printMaxSortSize(long int)':
main.cc:430: error: aggregate `statvfs statbuf' has incomplete type and 
cannot
    be defined
main.cc:431: error: parse error before `,' token
main.cc: In function `int main(int, char**)':
main.cc:457: error: `G_gisinit' undeclared (first use this function)
main.cc:460: error: `G_define_module' undeclared (first use this 
function)
main.cc:465: error: invalid use of undefined type `struct GModule'
main.cc:449: error: forward declaration of `struct GModule'
main.cc:469: error: invalid application of `sizeof' to an incomplete 
type
main.cc:471: error: `G_get_set_window' undeclared (first use this 
function)
main.cc:474: error: `G_window_rows' undeclared (first use this function)
main.cc:475: error: `G_window_cols' undeclared (first use this function)
grass2str.h: In function `AMI_STREAM<T>* cell2stream(char*, float, long 
int*)
    [with T = elevation_type]':
main.cc:539:   instantiated from here
grass2str.h:86: error: `G_open_cell_old' undeclared (first use this 
function)
grass2str.h:95: error: `G_allocate_raster_buf' undeclared (first use 
this
    function)
grass2str.h:106: error: `G_get_raster_row' undeclared (first use this 
function)
grass2str.h:113: error: `c' undeclared (first use this function)
grass2str.h:114: error: `G_is_c_null_value' undeclared (first use this
    function)
grass2str.h:119: error: `FCELL_TYPE' undeclared (first use this 
function)
grass2str.h:120: error: `f' undeclared (first use this function)
grass2str.h:121: error: `G_is_f_null_value' undeclared (first use this
    function)
grass2str.h:127: error: `d' undeclared (first use this function)
grass2str.h:128: error: `G_is_d_null_value' undeclared (first use this
    function)
main.cc:539:   instantiated from here
grass2str.h:155: error: `G_percent' undeclared (first use this function)
grass2str.h:160: error: `G_free' undeclared (first use this function)
grass2str.h:162: error: `G_close_cell' undeclared (first use this 
function)
grass2str.h: In function `void stream2_CELL(AMI_STREAM<T>*, short int, 
short
    int, char*) [with T = direction_type]':
main.cc:556:   instantiated from here
grass2str.h:196: error: `G_open_raster_new' undeclared (first use this
    function)
main.cc:556:   instantiated from here
grass2str.h:219: error: `G_set_c_null_value' undeclared (first use this
    function)
grass2str.h:225: error: `G_put_raster_row' undeclared (first use this 
function)
grass2str.h: In function `void stream2_FCELL(AMI_STREAM<T>*, short int, 
short
    int, FUN1, FUN2, char*, char*) [with T = sweepOutput, FUN1 =
    printAccumulation, FUN2 = printTci]':
main.cc:581:   instantiated from here
grass2str.h:449: error: `FCELL' undeclared (first use this function)
grass2str.h:449: error: `rast1' undeclared (first use this function)
grass2str.h:452: error: `rast2' undeclared (first use this function)
main.cc:581:   instantiated from here
grass2str.h:465: error: `G_set_f_null_value' undeclared (first use this
    function)
make[2]: *** [OBJ.powerpc-apple-darwin7.0.0/FLOAT/main.o] Error 1
make[1]: *** [subdirs] Error 1
make: *** [default] Error 1

I have NO idea why it can't find gis.h, as it is in the includes of 
both grass53 and grass57. Here is my configuration:

./configure --with-grass50=/usr/local/src/grass53    --enable-shared    
--with-includes="/usr/X11R6/include /usr/local/include /sw/include"    
--with-libs="/usr/local/lib /sw/lib"   
--with-tiff-includes=/usr/local/include --with-tiff-libs=/usr/local/lib 
    --with-opengl-libs=/usr/X11R6/lib 
--with-opengl-includes=/usr/X11R6/include    
--with-fftw-includes=/usr/local/include    
--with-gdal=/usr/local/bin/gdal-config    --with-readline    
--with-mysql    --with-mysql-includes=/usr/local/mysql/include    
--with-mysql-libs=/usr/local/mysql/lib/mysql    --without-postgres    
--without-odbc    --with-cxx    --with-proj

Any ideas here?
--
Christopher J. Fonnesbeck ( c h r i s @ f o n n e s b e c k . o r g )
Georgia Cooperative Fish & Wildlife Research Unit, University of Georgia




More information about the grass-user mailing list