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

2008-04-03 Thread Michael Barton
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

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

2008-04-03 Thread Maris Nartiss
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 [EMAIL PROTECTED]:
 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
 

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

2008-04-03 Thread William Kyngesburye

I just added a couple comments.  Summary - revert to previous shapelib.

On Apr 3, 2008, at 10:26 AM, Michael Barton wrote:


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



-
William Kyngesburye kyngchaos*at*kyngchaos*dot*com
http://www.kyngchaos.com/

Earth: Mostly harmless

- revised entry in the HitchHiker's Guide to the Galaxy


___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev