[GRASS5] r.in.gdal compile problem
Glynn Clements
glynn.clements at virgin.net
Sat Aug 9 04:47:57 EDT 2003
William K wrote:
> With GRASS 5.0.3 CVS (7-19 and a couple earlier versions) I can't get
> r.in.gdal to compile. I get an illegal indirect reference from libgis
> to libgrass:
>
> gcc
> -L/Users/williamk/Documents/src/unix/GRASS/grass50_exp_2003_06_28/src/
> libes/LIB.powerpc-apple-darwin6.6 -o
> /Users/williamk/Documents/src/unix/GRASS/grass50_exp_2003_06_28/
> dist.powerpc-apple-darwin6.6/etc/bin/cmd/r.in.gdal
> OBJ.powerpc-apple-darwin6.6/main.o
> OBJ.powerpc-apple-darwin6.6/gbgetsymbol.o
> OBJ.powerpc-apple-darwin6.6/gdalbridge.o
> OBJ.powerpc-apple-darwin6.6/make_loc.o \
> -L/usr/local/lib -lgdal.1.1 -lgeotiff -ltiff -lgproj
> -L/usr/local/lib -lproj -lgis -lintl -lI -lz
> ld:
> /Users/williamk/Documents/src/unix/GRASS/grass50_exp_2003_06_28/src/
> libes/LIB.powerpc-apple-darwin6.6/libgis.a(color_rule.o) illegal
> reference to symbol: _G__color_free_fp_lookup defined in indirectly
> referenced dynamic library /usr/local/lib/libgrass5.0.dylib
> ld: warning multiple definitions of symbol _CSVGetFileFieldId
> /usr/local/lib/libgdal.1.1.dylib(cpl_csv.o) definition of
> _CSVGetFileFieldId
> /usr/local/lib/libgeotiff.dylib(cpl_csv.o) definition of
> _CSVGetFileFieldId
> make[1]: ***
> [/Users/williamk/Documents/src/unix/GRASS/grass50_exp_2003_06_28/
> dist.powerpc-apple-darwin6.6/etc/bin/cmd/r.in.gdal] Error 1
> GISGEN failure at STEP: src/raster/r.in.gdal
>
> I've tried reordering the LIBES libs, and GDAL_LIBS & LIBES, in the
> GMakefile for r.in.gdal, but that just causes other indirect
> references. This is beyond my porting experience so far to know what
> it means and how to fix it.
Build GDAL *without* GRASS support, i.e. "configure --without-grass".
--
Glynn Clements <glynn.clements at virgin.net>
More information about the grass-dev
mailing list