[GRASSLIST:142] Re: r.in.gdal not working

Glynn Clements glynn.clements at virgin.net
Thu May 22 15:42:19 EDT 2003


Edmund Blackadder wrote:

> one more problem for me..
> When I compiled 5.0.2 on OS X 10.2.6 compilation failed for r.in.gdal  
> and Nviz but it was ok for me then as I was needed at that time the the  
> functionality of them...But now I  need r.in.gdal. I downloaded the CVS  
> version of it and tried to compile it with gmake5.I have libgdal1.1  
> installed in usr/local/lib
> 
> The following error occured:
> 
> [Edmund-Blackadders-Computer:src/raster/r.in.gdal] edmund% gmake5
>    SRC     = /Users/edmund/grass5.0.2/src
>    CMD     = /Users/edmund/grass5.0.2/src/CMD
>    UNUSED  = /Users/edmund/grass5.0.2/unused
>    HEADER  = head.powerpc-apple-darwin6.6
>    ARCH    = powerpc-apple-darwin6.6
>    GISBASE = /Users/edmund/grass5.0.2/dist.powerpc-apple-darwin6.6
>    VERSION = 5.0.2 April 2003
> #################################################################
> /Users/edmund/grass5.0.2/src/raster/r.in.gdal
>    make -f OBJ.powerpc-apple-darwin6.6/make.rules
> 
> gcc -L/Users/edmund/grass5.0.2/src/libes/LIB.powerpc-apple-darwin6.6   
> -o  
> /Users/edmund/grass5.0.2/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 \
>          -ldl -lproj -lgis  -lintl -lI  -lz
> ld: Undefined symbols:
> _GBGetSymbol

Either:

1. In src/raster/r.in.gdal/Gmakefile, change:

	EXTRA_CFLAGS = $(GDAL_CFLAGS)
to:
	EXTRA_CFLAGS = $(GDAL_CFLAGS) -D__unix

and re-compile.

2. Run "make clean", "configure --with-gdal ...", "make".

> make: ***  
> [/Users/edmund/grass5.0.2/dist.powerpc-apple-darwin6.6/etc/bin/cmd/ 
> r.in.gdal] Error 1
> 
> 
> Then as I downloaded and installed the binaries but but r.in.gdal was  
> exiting with error:
> GRASS 5.0.2 > r.in.gdal
> dyld: r.in.gdal can't open library: /usr/local/lib/libdl.1.dylib  (No  
> such file or directory, errno = 2)
> Trace/BPT trap
> 
> I have the libdl.0 in usr/local/lib but not libdl.1.dylib

The source for this library is available from:

	http://www.opendarwin.org/projects/dlcompat/

See the thread entitled "GRASS 5.0.2 on Mac OSX and libdl.1.dylib" in
the list archives for more information on this subject.

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




More information about the grass-user mailing list