[GRASS-dev] still compilation problems on iMac with GRASS 7

Michael Barton michael.barton at asu.edu
Thu Jul 24 19:42:15 EDT 2008


Aarrgh!

I reupdated from trunk, recompiled TclTk from source, reinstalled your  
newest frameworks and I still get errors compiling GRASS 7 on my iMac.  
AFAICT, same OS and setup as my MacBook: OS X 10.5.4 up to date, same  
config string.

Below are the errors. They simply don't make any sense. Neither of  
these sections of the code have been altered in a while. But that  
shouldn't matter. What compiles on my MacBook *ought* to compile on my  
iMac.

Any suggestions as to where to start to look to sort this out?

Michael
______________________________
C. Michael Barton, Professor of Anthropology
Director of Graduate Studies
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University
Tempe, AZ  85287-2402
USA

voice: 480-965-6262; fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton


=============  errors ==================

anthgradpc7:grass7_src cmbarton$ cd ./lib/external/shapelib
anthgradpc7:shapelib cmbarton$ make
gcc -I/Users/cmbarton/grass_dev/grass7_src/dist.i386-apple-darwin9.4.0/ 
include  -arch i386 -Os    -fno-common   -DPACKAGE=\""grasslibs"\"    - 
DPACKAGE=\""grasslibs"\"  -I/Users/cmbarton/grass_dev/grass7_src/ 
dist.i386-apple-darwin9.4.0/include -o OBJ.i386-apple-darwin9.4.0/ 
safileio.o -c safileio.c
safileio.c:83: error: syntax error before ‘SADFOpen’
safileio.c: In function ‘SADFOpen’:
safileio.c:86: error: ‘SAFile’ undeclared (first use in this function)
safileio.c:86: error: (Each undeclared identifier is reported only once
safileio.c:86: error: for each function it appears in.)
safileio.c:86: error: syntax error before ‘fopen’
safileio.c: At top level:
safileio.c:93: error: syntax error before ‘SADFRead’
safileio.c:93: error: syntax error before ‘SAOffset’
safileio.c: In function ‘SADFRead’:
safileio.c:96: error: ‘SAOffset’ undeclared (first use in this function)
safileio.c:96: error: syntax error before ‘fread’
safileio.c: At top level:
safileio.c:104: error: syntax error before ‘SADFWrite’
safileio.c:104: error: syntax error before ‘SAOffset’
safileio.c: In function ‘SADFWrite’:
safileio.c:107: error: ‘SAOffset’ undeclared (first use in this  
function)
safileio.c:107: error: syntax error before ‘fwrite’
safileio.c: At top level:
safileio.c:115: error: syntax error before ‘SADFSeek’
safileio.c:115: error: syntax error before ‘file’
safileio.c: In function ‘SADFSeek’:
safileio.c:118: error: ‘SAOffset’ undeclared (first use in this  
function)
safileio.c:118: error: syntax error before ‘fseek’
safileio.c: At top level:
safileio.c:125: error: syntax error before ‘SADFTell’
safileio.c:125: error: syntax error before ‘file’
safileio.c: In function ‘SADFTell’:
safileio.c:128: error: ‘SAOffset’ undeclared (first use in this  
function)
safileio.c:128: error: syntax error before ‘ftell’
safileio.c: At top level:
safileio.c:135: error: syntax error before ‘file’
safileio.c: In function ‘SADFFlush’:
safileio.c:138: error: ‘file’ undeclared (first use in this function)
safileio.c: At top level:
safileio.c:145: error: syntax error before ‘file’
safileio.c: In function ‘SADFClose’:
safileio.c:148: error: ‘file’ undeclared (first use in this function)
safileio.c: At top level:
safileio.c:175: error: syntax error before ‘*’ token
safileio.c: In function ‘SASetupDefaultHooks’:
safileio.c:178: error: ‘psHooks’ undeclared (first use in this function)
make: *** [OBJ.i386-apple-darwin9.4.0/safileio.o] Error 1


===================================

cd ./db/drivers/dbf
anthgradpc7:dbf cmbarton$ make
gcc -L/Users/cmbarton/grass_dev/grass7_src/dist.i386-apple-darwin9.4.0/ 
lib -arch i386 -Os -arch i386 -Os    -o /Users/cmbarton/grass_dev/ 
grass7_src/dist.i386-apple-darwin9.4.0/driver/db/dbf OBJ.i386-apple- 
darwin9.4.0/column.o OBJ.i386-apple-darwin9.4.0/cursor.o OBJ.i386- 
apple-darwin9.4.0/db.o OBJ.i386-apple-darwin9.4.0/dbfexe.o OBJ.i386- 
apple-darwin9.4.0/describe.o OBJ.i386-apple-darwin9.4.0/driver.o  
OBJ.i386-apple-darwin9.4.0/error.o OBJ.i386-apple-darwin9.4.0/ 
execute.o OBJ.i386-apple-darwin9.4.0/fetch.o OBJ.i386-apple- 
darwin9.4.0/listtab.o OBJ.i386-apple-darwin9.4.0/main.o OBJ.i386-apple- 
darwin9.4.0/select.o OBJ.i386-apple-darwin9.4.0/str.o OBJ.i386-apple- 
darwin9.4.0/table.o OBJ.i386-apple-darwin9.4.0/create_table.o  - 
lgrass_dbmidriver -lgrass_dbmibase -lgrass_gis -lgrass_datetime - 
lz      -lgrass_dbstubs -lgrass_dbmibase -lgrass_gis -lgrass_datetime - 
lz      -lgrass_gis -lgrass_datetime -lz      -lgrass_gis - 
lgrass_datetime -lz      -lgrass_dbmibase -lgrass_gis -lgrass_datetime  
-lz       -lgrass_sqlp -lgrass_shape -lgrass_dbstubs -lgrass_dbmibase - 
lgrass_gis -lgrass_datetime -lz      -lgrass_gis -lgrass_datetime - 
lz      -lgrass_gis -lgrass_datetime -lz     -lgrass_datetime  -lz
ld: library not found for -lgrass_shape
collect2: ld returned 1 exit status
make: *** [/Users/cmbarton/grass_dev/grass7_src/dist.i386-apple- 
darwin9.4.0/driver/db/dbf] Error 1


More information about the grass-dev mailing list