[GRASSLIST:1630] Error to compile r.in.gdal on MacX for grass 5.3

Hy, I'm still trying to install r.in.gdal in GRASS 5.3 on MacX, even if I've done some progress.
I really need r.in.gdal in order to import quickly USGS SDTS DEMs.

Now I'm able to install gdal from cvs using the useful tutorial "Grass v.5.7 installation on Mac OS X" made by Fabrizio Zanotti (fabrizio.zanotti@ing.unitn.it).
I've downloaded the current version of Gdal-cvs package (gdal-cvs-YYMMDD.tar.gz ) from the gdal ftp site, ftp://ftp.remotesensing.org/gdal/daily, and used a configuration script like:

#!/bin/sh
# script to compile GDAL on Mac OSX
# Markus Neteler and Fabrizio Zanotti
# 10/2003
# what to do in case of user break:
function exitprocedure()
{
echo "User break!"
exit
}
# shell check for user break (signal list: trap -l)
#trap "exitprocedure" 2 3 15
#add for GRASS libgrass support:
export CPPFLAGS="-I/usr/local/pgsql/include/"
# libgrass support:
./configure --without-python \
--with-grass \
--with-libtiff=internal \
--with-geotiff=internal \
--with-libtool \
--with-pg-includes=/usr/local/pgsql/include

In this way is possible to install gdal.

If I configure grass with the option:
--with-gdal=/usr/local/bin/gdal-config

we have support gdal=yes,
but if I do make there is an error

GRASS GIS compilation log
-------------------------
Start of compilation: Fri Oct 31 14:42:35 PST 2003
Errors:
Compilation error in module: src/raster/r.in.gdal (ignored)

Also if I try to install only the gdal module with gmake5 i have the error:

bash-2.05a$ gmake5
   SRC = /sources/grass53_exp_2003_10_25/src
   CMD = /sources/grass53_exp_2003_10_25/src/CMD
   UNUSED = /sources/grass53_exp_2003_10_25/unused
   HEADER = head.unknown
   ARCH = unknown
   GISBASE = /sources/grass53_exp_2003_10_25/dist.unknown
   VERSION = 5.3-cvs 2003
#################################################################
/sources/grass53_exp_2003_10_25/src/raster/r.in.gdal
   make -f OBJ.unknown/make.rule
gcc -L/sources/grass53_exp_2003_10_25/src/libes/LIB.unknown -L/sw/lib -o /sources/grass53_exp_2003_10_25/dist.unknown/etc/bin/cmd/r.in.gdal OBJ.unknown/main.o OBJ.unknown/gbgetsymbol.o OBJ.unknown/gdalbridge.o \
         -L/usr/local/lib -lgdal -lgproj -lproj -lgis -lintl -lI -lz
ld: Undefined symbols:
_GBGetSymbol
make: *** [/sources/grass53_exp_2003_10_25/dist.unknown/etc/bin/cmd/r.in.gdal] Error 1

Somebody can help me?

Thanks, Giacomo

Giacomo Bertoldi
Ph.D. Student
University of Berkeley

Giacomo wrote:

Hy, I'm still trying to install r.in.gdal in GRASS 5.3 on MacX, even if
I've done some progress.
I really need r.in.gdal in order to import quickly USGS SDTS DEMs.

For MacOSX, use the --with-gdal configure switch; that forces
r.in.gdal to link directly against the GDAL library (without it,
r.in.gdal loads libgdal dynamically using dlopen(), like a plug-in;
that doesn't work on MacOSX).

--
Glynn Clements <glynn.clements@virgin.net>

On Fri, Oct 31, 2003 at 03:15:51PM -0800, Giacomo wrote:

Hy, I'm still trying to install r.in.gdal in GRASS 5.3 on MacX, even if
I've done some progress.
I really need r.in.gdal in order to import quickly USGS SDTS DEMs.

Now I'm able to install gdal from cvs using the useful tutorial "Grass
v.5.7 installation on Mac OS X" made by Fabrizio Zanotti
(fabrizio.zanotti@ing.unitn.it).
I've downloaded the current version of Gdal-cvs package
(gdal-cvs-YYMMDD.tar.gz ) from the gdal ftp site,
ftp://ftp.remotesensing.org/gdal/daily, and used a configuration script
like:

#!/bin/sh
# script to compile GDAL on Mac OSX
# Markus Neteler and Fabrizio Zanotti
# 10/2003
# what to do in case of user break:
function exitprocedure()
{
echo "User break!"
exit
}
# shell check for user break (signal list: trap -l)
#trap "exitprocedure" 2 3 15
#add for GRASS libgrass support:
export CPPFLAGS="-I/usr/local/pgsql/include/"
# libgrass support:
./configure --without-python \
--with-grass \

This should be
--with-grass=no
to avoid problems (otherwise you also need libgrass and gdal with libgrass
compiled into.

Markus