[GRASS-dev] Shapelib and dbf not compiling for Mac

Michael Barton michael.barton at asu.edu
Thu Apr 3 11:26:36 EDT 2008


I'll add my comments. But is there a workaround?

I don't really understand the problem. Is it related to the new version of
gdal?

Michael


On 4/3/08 8:22 AM, "Maris Nartiss" <maris.gis at gmail.com> wrote:

> It's a known issue. Please add Your comments about Mac to issue #110
> [1].

Maris.

1. http://trac.osgeo.org/grass/ticket/110

2008/4/3, Michael
> Barton <michael.barton at asu.edu>:
> I guess I¹ll try again to see if someone
> has some advice on this. The
> current SVN trunk won¹t compile on Mac OSX 10.4
> (or at least it won¹t
> compile for me with OSX 10.4).
>
> I updated again
> last night, did make distclean, configure, and compile.
> Configure ran fine.
> My configure string follows the error output below.
>
> I have errors in
> ./lib/external/shapelib and in ./db/drivers/dbf.
>
> Wiliam Kyngesburey thinks
> they may be related but isn¹t sure what is causing
> them. The full error
> output is  below. Any suggestions are helpful.
>
> Thanks.
> Michael
>
>
>
> Following modules are missing the 'description.html' file in src code:
>
> d.paint.labels
> p.out.vrml
> r.cats
>
> ----------------------------------------------------------------------
> GRASS
> GIS compilation log
> -------------------------
> Started compilation: Wed Apr
> 2 19:44:52 MST 2008
> --
> Errors in:
>
> /Users/cmbarton/grass_dev/grass_src/lib/external/shapelib
>
> /Users/cmbarton/grass_dev/grass_src/db/drivers/dbf
>
> /Users/cmbarton/grass_dev/grass_src/gui/wxpython/vdigit
> --
> In case of
> errors please change into the directory with error and run
> 'make'.
> If you
> get multiple errors, you need to deal with them in the order they
> appear in
> the error log. If you get an error building a library, you will
> also get
> errors from anything which uses the library.
> --
> Finished compilation: Wed
> Apr  2 19:57:28 MST 2008
> make: *** [default] Error 1
>
> cmb-MBP-2:~/grass_dev/grass_src cmbarton$ cd ./lib/external/shapelib
>
> cmb-MBP-2:~/grass_dev/grass_src/lib/external/shapelib cmbarton$ make
> make
> lib
> cc -dynamiclib -compatibility_version 6.3 -current_version 6.3
> -install_name
> 
> /Applications/Grass/GRASS-6.3.app/Contents/MacOS/lib/libgrass_shape.dylib -o
>
> /Users/cmbarton/grass_dev/grass_src/dist.i686-apple-darwin8.11.1/lib/libgras
>
> s_shape.6.3.svn.dylib
>
> -L/Users/cmbarton/grass_dev/grass_src/dist.i686-apple-darwin8.11.1/lib
>
> OBJ.i686-apple-darwin8.11.1/shpopen.o OBJ.i686-apple-darwin8.11.1/dbfopen.o
>
> && \
> (cd 
> /Users/cmbarton/grass_dev/grass_src/dist.i686-apple-darwin8.11.1/lib; ln
> -f
> -s libgrass_shape.6.3.svn.dylib
>
> /Users/cmbarton/grass_dev/grass_src/dist.i686-apple-darwin8.11.1/lib/libgras
>
> s_shape.dylib)
> ld: Undefined symbols:
> _SASetupDefaultHooks
>
> /usr/bin/libtool: internal link edit command failed
> make[1]: ***
>
> [/Users/cmbarton/grass_dev/grass_src/dist.i686-apple-darwin8.11.1/lib/libgra
>
> ss_shape.6.3.svn.dylib] Error 1
> make: *** [default] Error 2
>
> cmb-MBP-2:~/grass_dev/grass_src/lib/external/shapelib cmbarton$ cd
>
> ~/grass_dev/grass_src
> cmb-MBP-2:~/grass_dev/grass_src cmbarton$ cd
> ./db/drivers/dbf
> cmb-MBP-2:~/grass_dev/grass_src/db/drivers/dbf cmbarton$
> make
> gcc 
> -L/Users/cmbarton/grass_dev/grass_src/dist.i686-apple-darwin8.11.1/lib
> -o
>
> /Users/cmbarton/grass_dev/grass_src/dist.i686-apple-darwin8.11.1/driver/db/d
>
> bf OBJ.i686-apple-darwin8.11.1/column.o OBJ.i686-apple-darwin8.11.1/cursor.o
>
> OBJ.i686-apple-darwin8.11.1/db.o OBJ.i686-apple-darwin8.11.1/dbfexe.o
>
> OBJ.i686-apple-darwin8.11.1/describe.o OBJ.i686-apple-darwin8.11.1/driver.o
>
> OBJ.i686-apple-darwin8.11.1/error.o OBJ.i686-apple-darwin8.11.1/execute.o>
> OBJ.i686-apple-darwin8.11.1/fetch.o OBJ.i686-apple-darwin8.11.1/listtab.o>
> OBJ.i686-apple-darwin8.11.1/main.o OBJ.i686-apple-darwin8.11.1/select.o
>
> OBJ.i686-apple-darwin8.11.1/str.o OBJ.i686-apple-darwin8.11.1/table.o
>
> OBJ.i686-apple-darwin8.11.1/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
> -L/Library/Frameworks/GDAL.framework/Versions/1.5/unix/lib
> -lgdal  -lz
> /usr/bin/ld: can't locate file for: -lgrass_shape
> collect2: ld
> returned 1 exit status
> make: ***
>
> [/Users/cmbarton/grass_dev/grass_src/dist.i686-apple-darwin8.11.1/driver/db/
>
> dbf] Error 1
>
> ============ configure string ==============
>
> ./configure
> --with-freetype
>
> --with-freetype-includes="/Library/Frameworks/FreeType.framework/unix/includ
>
> e/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-cxx
>
> --with-tcltk-includes=/usr/local/tcltk/include
>
> --with-tcltk-libs=/usr/local/tcltk/lib --with-x --without-motif
>
> --without-glw --with-opengl=x11 --with-opengl-libs=/usr/X11R6/lib
>
> --without-readline --prefix=/Applications/Grass --enable-macosx-app
>
> --with-python
> 
> --with-wxwidgets=/usr/local/lib/wxPython-unicode-2.8.7.1/bin/wx-config
>
>
>
>
> __________________________________________
> Michael Barton, Professor of
> Anthropology
> Director of Graduate Studies
> School of Human Evolution &
> Social Change
> Center for Social Dynamics & Complexity
> Arizona State
> University
>
> phone: 480-965-6213
> fax: 480-965-7671
> www:
> http://www.public.asu.edu/~cmbarton
>
>
>


__________________________________________
Michael Barton, Professor of Anthropology
Director of Graduate Studies
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton




More information about the grass-dev mailing list