[GRASS-dev] strange issue compiling on Mac

Michael Barton michael.barton at asu.edu
Mon Oct 6 17:25:08 EDT 2008


William,

I haven't had time to recompile GRASS for several weeks. But I've got  
a predoc researcher in my lab now who has compiled GRASS in the past  
and is trying to do it again.

She has a brand new MacBook Pro with OS X 10.5.5. She has installed  
your frameworks and ActiveStates TclTk 8.5 aqua. She just updated her  
XCode tools to the latest version (3.1.1). No 3rd party Python or  
wxPython installation.

Everything seemed to go fine through configuration. No configure  
errors. But one strange thing is that the platform.make and grass.make  
files are empty. Then, trying to run make causes an odd error.

macbook-pro-de-amm:GRASS6_SOURCE ANDREA$ make
test -d  || mkdir -p -m 755
tar cBf - demolocation | (cd / ; tar xBfo - ) 2>/dev/null
tar: demolocation: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors/bin/sh: -c: line 0: syntax
error near unexpected token `newline'/bin/sh: -c: line 0: `echo  
"GISDBASE: " > 'make: *** [builddemolocation] Error 2

Below, I list the configuration.

I'll try compiling too. But maybe this is meaningful to you or someone?

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

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

 >>First she did the following:

export CFLAGS="-arch i386 -Os -g"
export CXXFLAGS="-arch i386 -Os -g"
export LDFLAGS="-arch i386 -Os -g"

export NAD2BIN=/Library/Frameworks/PROJ.framework/Programs/nad2bin

 >>Here is the configuration and its output:

macbook-pro-de-amm:GRASS6_SOURCE ANDREA$ ./configure --with-freetype -- 
with-
freetype-includes="/Library/Frameworks/FreeType.framework/unix/include/ 
freetype2
/Library/Frameworks/FreeType.framework/unix/include" --with-freetype-
libs=/Library/Frameworks/FreeType.framework/unix/lib --with-
gdal=/Library/Frameworks/GDAL.framework/Programs/gdal-config --with- 
proj --with-
proj-includes=/Library/Frameworks/PROJ.framework/unix/include --with- 
proj-
libs=/Library/Frameworks/PROJ.framework/unix/lib --with-proj-
share=/Library/Frameworks/PROJ.framework/Resources/proj --with-jpeg-
includes=/Library/Frameworks/UnixImageIO.framework/unix/include --with- 
jpeg-
libs=/Library/Frameworks/UnixImageIO.framework/unix/lib --with-png-
includes=/Library/Frameworks/UnixImageIO.framework/unix/include --with- 
png-
libs=/Library/Frameworks/UnixImageIO.framework/unix/lib --with-tiff-
includes=/Library/Frameworks/UnixImageIO.framework/unix/include --with- 
tiff-
libs=/Library/Frameworks/UnixImageIO.framework/unix/lib --without- 
postgres --
without-mysql --with-odbc --with-sqlite --with-sqlite-
libs=/Library/Frameworks/SQLite3.framework/unix/lib --with-sqlite-
includes=/Library/Frameworks/SQLite3.framework/unix/include --with-fftw-
includes=/Library/Frameworks/FFTW3.framework/unix/include --with-fftw-
libs=/Library/Frameworks/FFTW3.framework/unix/lib --with-x --with-cxx  
--with-
opengl=aqua --without-readline --prefix=/Applications/GRASS --enable- 
macosx-app --
with-python --with-wxwidgets=/usr/bin/wx-config --with-tcltk-
includes="/Library/Frameworks/Tcl.framework/Headers
/Library/Frameworks/Tk.framework/Headers
/Library/Frameworks/Tk.framework/PrivateHeaders"
checking host system type... i386-apple-darwin9.5.0
checking for gcc... gcc
checking whether the C compiler (gcc -arch i386 -Os -g -arch i386 -Os - 
g) works... yes
checking whether the C compiler (gcc -arch i386 -Os -g -arch i386 -Os - 
g) is a cross-
compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for Cygwin environment... no
checking for mingw32 environment... no
checking for executable suffix... no
checking for full floating-point support... yes
checking for pwd... /bin/pwd
checking for source directory... /Users/ANDREA/GRASS6_SOURCE
checking for build directory... /Users/ANDREA/GRASS6_SOURCE
sed: include/VERSION: No such file or directory
sed: include/VERSION: No such file or directory
sed: include/VERSION: No such file or directory
sed: include/VERSION: No such file or directory
checking for MacOSX App... yes
checking how to build libraries... shared
checking for ranlib... ranlib
checking how to run the C preprocessor... gcc -E
checking if 64bit support is requested... no
checking if 64bit Sparc VIS support is requested... no
checking system version (for dynamic loading)... Darwin-9.5.0
checking for dlopen in -ldl... yes
checking for ar... ar
checking for additional include dirs...
checking for additional library dirs...
checking for a BSD compatible install... /usr/bin/install -c
checking for flex... flex
checking for yywrap in -lfl... yes
checking for bison... bison -y
checking for ranlib... ranlib
checking for ar... ar
checking for env... env
checking for perl... /usr/bin/perl
checking for ANSI C header files... yes
checking for limits.h... yes
checking for termio.h... no
checking for termios.h... yes
checking for unistd.h... yes
checking for values.h... no
checking for f2c.h... no
checking for g2c.h... no
checking for sys/ioctl.h... yes
checking for sys/mtio.h... yes
checking for sys/resource.h... yes
checking for sys/time.h... yes
checking for sys/timeb.h... yes
checking for sys/types.h... yes
checking for sys/utsname.h... yes
checking for libintl.h... no
checking for iconv.h... yes
checking for langinfo.h... yes
checking whether time.h and sys/time.h may both be included... yes
checking for off_t... yes
checking for uid_t in sys/types.h... yes
checking return type of signal handlers... void
checking for Cygwin environment... no
checking for ftime... yes
checking for gethostname... yes
checking for gettimeofday... yes
checking for lseek... yes
checking for nice... yes
checking for time... yes
checking for uname... yes
checking for seteuid... yes
checking for setpriority... yes
checking for setreuid... yes
checking for setruid... yes
checking for drand48... yes
checking for putenv... yes
checking for setenv... yes
checking for nanosleep... yes
checking whether setpgrp takes no argument... yes
checking for long long int... yes
checking for W11... no
checking for X... libraries /usr/X11/lib, headers /usr/X11/include
checking for dnet_ntoa in -ldnet... no
checking for dnet_ntoa in -ldnet_stub... no
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking whether to use Curses... yes
checking for curses.h... yes
checking curses.h WINDOW structure component... _maxy
checking for initscr in -lncurses... yes
checking for keypad in -lncurses... yes
checking for gtty in -lcompat... no
checking for gtty in -lbsd-compat... no
checking for gtty in -lbsd... no
checking for library containing cuserid... no
checking for xdrmem_create... yes
checking for asprintf... yes
checking for atan... yes
checking for dlsym... yes
checking for iconv... no
checking for iconv in -liconv... yes
checking for socket... yes
checking for location of zlib includes...
checking for zlib.h... yes
checking for location of zlib library...
checking for deflate in -lz... yes
checking for location of External PROJ.4 includes...
/Library/Frameworks/PROJ.framework/unix/include
checking for proj_api.h... yes
checking External PROJ.4 version... 461
checking for location of External PROJ.4 library...
/Library/Frameworks/PROJ.framework/unix/lib
checking for pj_get_def in -lproj... yes
checking for location of External PROJ.4 data files...
/Library/Frameworks/PROJ.framework/Resources/proj
checking for /Library/Frameworks/PROJ.framework/Resources/proj/epsg...  
yes
checking for nad2bin... /Library/Frameworks/PROJ.framework/Programs/ 
nad2bin
checking whether to use regex... yes
checking for location of regex includes...
checking for regex.h... yes
checking for location of regex library...
checking for regcomp... yes
checking whether to use Readline... no
checking whether to use JPEG... yes
checking for location of JPEG includes...
/Library/Frameworks/UnixImageIO.framework/unix/include
checking for jpeglib.h... yes
checking for location of JPEG library...
/Library/Frameworks/UnixImageIO.framework/unix/lib
checking for jpeg_start_compress in -ljpeg... yes
checking whether to use GDAL... yes
checking for gdal-config... /Library/Frameworks/GDAL.framework/ 
Programs/gdal-config
rm: conftest.dSYM: is a directory
checking whether to use TIFF... yes
checking for location of TIFF includes...
/Library/Frameworks/UnixImageIO.framework/unix/include
checking for tiffio.h... yes
checking for location of TIFF library... /Library/Frameworks/ 
UnixImageIO.framework/unix/lib
checking for TIFFOpen in -ltiff... yes
checking whether to use PNG... yes
checking for location of PNG includes...
/Library/Frameworks/UnixImageIO.framework/unix/include
checking for png.h... yes
checking for location of PNG library... /Library/Frameworks/ 
UnixImageIO.framework/unix/lib
checking for png_read_image in -lpng... yes
checking whether to use Tcl/Tk... yes
checking for location of Tcl/Tk includes... /Library/Frameworks/ 
Tcl.framework/Headers
/Library/Frameworks/Tk.framework/Headers
/Library/Frameworks/Tk.framework/PrivateHeaders
checking for tcl.h... yes
checking for tk.h... yes
checking Tcl version... 8.5
checking Tk version... 8.5
checking for location of Tcl/Tk library...
checking for Tcl_Init in -ltcl... yes
checking for Tk_MainWindow in -ltk... yes
checking whether to use PostgreSQL... no
checking whether to use MySQL... no
checking whether to use SQLite... yes
checking for location of SQLite includes...
/Library/Frameworks/SQLite3.framework/unix/include
checking for sqlite3.h... yes
checking for location of SQLite library... /Library/Frameworks/ 
SQLite3.framework/unix/lib
checking for sqlite3_open in -lsqlite3... yes
checking whether to use FFMPEG... no
checking whether to use OpenGL... aqua
checking for location of OpenGL includes...
/System/Library/Frameworks/OpenGL.framework/Headers
checking for OpenGL/gl.h... yes
checking for OpenGL/glu.h... yes
checking for glBegin... yes
checking for gluBeginCurve... yes
checking whether to use ODBC... yes
checking for location of ODBC includes...
checking for sql.h... yes
checking for location of ODBC library...
checking for SQLConnect in -lodbc... no
checking for SQLConnect in -liodbc... yes
checking whether to use FFTW... yes
checking for location of FFTW includes...
/Library/Frameworks/FFTW3.framework/unix/include
checking for fftw3.h... yes
checking for location of FFTW library... /Library/Frameworks/ 
FFTW3.framework/unix/lib
checking for fftw_execute in -lfftw3... yes
checking whether to use BLAS... no
checking whether to use LAPACK... no
checking whether to use Motif... no
checking whether to use Cairo... no
checking whether to use GLw... no
checking whether to use FreeType... yes
checking for location of FreeType includes...
/Library/Frameworks/FreeType.framework/unix/include/freetype2
/Library/Frameworks/FreeType.framework/unix/include
checking for ft2build.h... yes
checking for location of FreeType library...
/Library/Frameworks/FreeType.framework/unix/lib
checking for FT_Init_FreeType in -lfreetype... yes
checking whether to use NLS... no
checking whether to use C++... yes
checking for c++... c++
checking whether the C++ compiler (c++ -arch i386 -Os -g -arch i386 - 
Os -g -arch i386
-Os -g) works... yes
checking whether the C++ compiler (c++ -arch i386 -Os -g -arch i386 - 
Os -g -arch i386
-Os -g) is a cross-compiler... no
checking whether we are using GNU C++... yes
checking whether c++ accepts -g... yes
checking whether to use openDWG... no
checking if system supports Large Files at all... yes
checking whether to use Python... yes
checking for python-config... /usr/bin/python-config
checking for Python.h... yes
checking for swig... /usr/bin/swig
checking whether to use wxWidgets... yes
checking for wx-config... /usr/bin/wx-config
checking wxWidgets version... 2.8.4
checking for wx/wxprec.h... yes
checking for wx/wxPython/pseudodc.h... yes
creating ./config.status
creating include/Make/Grass.make
sed: ./include/Make/Grass.make.in: No such file or directory
creating include/Make/Platform.make
sed: ./include/Make/Platform.make.in: No such file or directory
creating include/version.h
sed: ./include/version.h.in: No such file or directory
creating include/winname.h
sed: ./include/winname.h.in: No such file or directory
mkdir: swig: No such file or directory
creating swig/perl/Makefile.PL
sed: ./swig/perl/Makefile.PL.in: No such file or directory
/config.status: line 279: swig/perl/Makefile.PL: No such file or  
directory
mkdir: swig: No such file or directory
creating swig/perl2/make.pl
/config.status: line 279: swig/perl2/make.pl: No such file or directory
sed: ./swig/perl2/make.pl.in: No such file or directory
mkdir: swig: No such file or directory
creating swig/python/Makefile
/config.status: line 279: swig/python/Makefile: No such file or  
directory
sed: ./swig/python/Makefile.in: No such file or directory
creating grass.pc
creating include/config.h
cat: ./include/config.h.in: No such file or directory
include/config.h is unchanged
Copying config.status to config.status.i386-apple-darwin9.5.0

GRASS is now configured for:  i386-apple-darwin9.5.0

  Source directory:            /Users/ANDREA/GRASS6_SOURCE
  Build directory:             /Users/ANDREA/GRASS6_SOURCE
  Installation directory:      ${prefix}/GRASS-..app/Contents/MacOS
  Startup script in directory: ${exec_prefix}/bin
  C compiler:                  gcc -arch i386 -Os -g
  C++ compiler:                c++ -arch i386 -Os -g
  Building shared libraries:   yes
  64bit support:               no
  OpenGL platform:             Aqua
  MacOSX application:         yes

  NVIZ:                       yes

  BLAS support:               no
  C++ support:                yes
  Cairo support:              no
  DWG support:                no
  FFMPEG support:             no
  FFTW support:               yes
  FreeType support:           yes
  GDAL support:               yes
  GLw support:                no
  JPEG support:               yes
  LAPACK support:             no
  Large File support (LFS):   yes
  Motif support:              no
  MySQL support:              no
  NLS support:                no
  ODBC support:               yes
  OGR support:                yes
  OpenGL support:             yes
  PNG support:                yes
  PostgreSQL support:         no
  Python support:             yes
  Readline support:           no
  SQLite support:             yes
  Tcl/Tk support:             yes
  wxWidgets support:          yes
  TIFF support:               yes
  X11 support:                yes






More information about the grass-dev mailing list