Details Ticket 2389


Comment | Reply | Take | Open


Serial Number 2389
Subject cannot find -lgdal.1.2.0
Area bug
Queue grass
Requestors gwurman@asu.edu
Owner none
Status resolved
Last User Contact Tue Apr 27 19:00:56 2004 (4 yr ago)
Current Priority 30
Final Priority 70
Due No date assigned
Last Action Wed Aug 11 16:32:32 2004 (4 yr ago)
Created Thu Apr 22 20:28:06 2004 (4 yr ago)

Transaction History Ticket 2389


Thu, Apr 22 2004 20:28:06    Request created by guest  
Subject: cannot find -lgdal.1.2.0

Platform: Solaris2.X/Sparc
grass obtained from: CVS
grass binary for platform: Compiled from Sources
GRASS Version: 53_cvs_4_22_04

I updated my sources from CVS today and now when I try to make the binaries it
chokes in r.in.gdal:

#################################################################
/export/home/gwurman/Codes/grass53/src/raster/r.in.gdal
  mkdir OBJ.sparc-sun-solaris2.8
  make -f OBJ.sparc-sun-solaris2.8/make.rules 

make[1]: Entering directory `/export/home/gwurman/Codes/grass53/src/raster/r.in.gdal'
gcc -I/export/home/gwurman/Codes/grass53/src/include -w -g -Wall   -I/export/home/gwurman/include
-DUSE_GDAL_H   -c main.c -o OBJ.sparc-sun-solaris2.8/main.o
gcc -I/export/home/gwurman/Codes/grass53/src/include -w -g -Wall   -I/export/home/gwurman/include
-DUSE_GDAL_H   -c gbgetsymbol.c -o OBJ.sparc-sun-solaris2.8/gbgetsymbol.o
gcc -I/export/home/gwurman/Codes/grass53/src/include -w -g -Wall   -I/export/home/gwurman/include
-DUSE_GDAL_H   -c gdalbridge.c -o OBJ.sparc-sun-solaris2.8/gdalbridge.o
gcc -L/export/home/gwurman/Codes/grass53/src/libes/LIB.sparc-sun-solaris2.8 
-o /export/home/gwurman/Codes/grass53/dist.sparc-sun-solaris2.8/etc/bin/cmd/r.in.gdal
OBJ.sparc-sun-solaris2.8/main.o OBJ.sparc-sun-solaris2.8/gbgetsymbol.o OBJ.sparc-sun-solaris2.8/gdal
bridge.o
\
	-L/export/home/gwurman/lib -lgdal.1.2.0 -lgproj  -lgis -lsocket  -lI -lgmath
-lm  -lnsl    -lz 
/usr/local/sparc-sun-solaris2.8/bin/ld: cannot find -lgdal.1.2.0
collect2: ld returned 1 exit status
make[1]: *** [/export/home/gwurman/Codes/grass53/dist.sparc-sun-solaris2.8/etc/bin/cmd/r.in.gdal]
Error 1
make[1]: Leaving directory `/export/home/gwurman/Codes/grass53/src/raster/r.in.gdal'
GISGEN failure at STEP: src/raster/r.in.gdal

This is not fatal when compiling grass53, but the same error also comes up when
trying to compile grass57 (in lib/proj/) and there it is fatal.  I have absolutely
no idea what to do with libraries.  Can anyone help?

Thanks,
Gilead Wurman
ASU Active Tectonics
Tue, Apr 27 2004 19:00:56    Mail sent by pkelly  
guest wrote (Thu, Apr 22 2004 20:28:06):

> Subject: cannot find -lgdal.1.2.0
> 
> Platform: Solaris2.X/Sparc
> grass obtained from: CVS
> grass binary for platform: Compiled from Sources
> GRASS Version: 53_cvs_4_22_04
> 
> I updated my sources from CVS today and now when I try to make the binaries
it chokes in r.in.gdal:
> 
> #################################################################
> /export/home/gwurman/Codes/grass53/src/raster/r.in.gdal
>   mkdir OBJ.sparc-sun-solaris2.8
>   make -f OBJ.sparc-sun-solaris2.8/make.rules 
> 
> make[1]: Entering directory 
`/export/home/gwurman/Codes/grass53/src/raster/r.in.gdal'
> gcc -I/export/home/gwurman/Codes/grass53/src/include -w -g -Wall   
-I/export/home/gwurman/include -DUSE_GDAL_H   -c main.c -o 
OBJ.sparc-sun-solaris2.8/main.o
> gcc -I/export/home/gwurman/Codes/grass53/src/include -w -g -Wall   
-I/export/home/gwurman/include -DUSE_GDAL_H   -c gbgetsymbol.c -o 
OBJ.sparc-sun-solaris2.8/gbgetsymbol.o
> gcc -I/export/home/gwurman/Codes/grass53/src/include -w -g -Wall   
-I/export/home/gwurman/include -DUSE_GDAL_H   -c gdalbridge.c -o 
OBJ.sparc-sun-solaris2.8/gdalbridge.o
> gcc -L/export/home/gwurman/Codes/grass53/src/libes/LIB.sparc-sun-solaris2.8
-o 
/export/home/gwurman/Codes/grass53/dist.sparc-sun-solaris2.8/etc/bin/cmd/r.in.
gdal OBJ.sparc-sun-solaris2.8/main.o OBJ.sparc-sun-solaris2.8/gbgetsymbol.o 
OBJ.sparc-sun-solaris2.8/gdalbridge.o \
> 	-L/export/home/gwurman/lib -lgdal.1.2.0 -lgproj  -lgis -lsocket  -lI 
-lgmath -lm  -lnsl    -lz 
> /usr/local/sparc-sun-solaris2.8/bin/ld: cannot find -lgdal.1.2.0

Sounds more like a GDAL problem than a GRASS problem. Is GDAL installed 
properly on your system? Do the command-line utilities (e.g. gdalinfo) work?
Where is libgdal1.2.0.so (or similar filename) located and is it in your 
LD_LIBRARY_PATH environment variable?
Wed, Aug 11 2004 16:32:32    Status changed to resolved by mneteler  
Comment | Reply | Take | Open

You are currently authenticated as guest.
[Show Configuration] [Login as another user]

Users Guide - Mail Commands - Homepage of RequestTracker 1.0.7 - list any request