[GRASSLIST:7210] Re: Compile Errors

Thomas Colson tom_colson at ncsu.edu
Fri Jun 17 10:40:00 EDT 2005


Yeah, I kinda figured that a great deal of stuff wasn't being built as it
should. So how do you correct the error on the stuff that should be built,
but isn't being built? How can an "out of box" install of Grass6 on a new
install of Fedora have so many library problems? I'd like to think I spent
a  great deal of time making sure all the correct versions of the
dependancies were installed prior to the grass build, but it seems like
there are some undocumented secret dependancies....



some libraries did't build, so anything that needs them will fail.

cd lib/gmath
make
gcc -shared -o
/grass6/dist.x86_64-unknown-linux-gnu/lib/libgrass_gmath.6.1.cvs.so
-Wl,--export-dynamic -L/grass6/dist.x86_64-unknown-linux-gnu/lib
-Wl,-rpath-link,/grass6/dist.x86_64-unknown-linux-gnu/lib   
OBJ.x86_64-unknown-linux-gnu/brent.o OBJ.x86_64-unknown-linux-gnu/dalloc.o
OBJ.x86_64-unknown-linux-gnu/del2g.o OBJ.x86_64-unknown-linux-gnu/eigen.o
OBJ.x86_64-unknown-linux-gnu/eigen_tools.o
OBJ.x86_64-unknown-linux-gnu/fft.o OBJ.x86_64-unknown-linux-gnu/gauss.o
OBJ.x86_64-unknown-linux-gnu/getg.o OBJ.x86_64-unknown-linux-gnu/ialloc.o
OBJ.x86_64-unknown-linux-gnu/jacobi.o OBJ.x86_64-unknown-linux-gnu/la.o
OBJ.x86_64-unknown-linux-gnu/lu.o OBJ.x86_64-unknown-linux-gnu/max_pow2.o
OBJ.x86_64-unknown-linux-gnu/mult.o OBJ.x86_64-unknown-linux-gnu/rand1.o
OBJ.x86_64-unknown-linux-gnu/svd.o -lgrass_gis -lgrass_datetime -lz   
-lfftw -lm   && ln -sf libgrass_gmath.6.1.cvs.so
/grass6/dist.x86_64-unknown-linux-gnu/lib/libgrass_gmath.so
/usr/bin/ld: /usr/local/lib/libfftw.a(fftwnd.o): relocation R_X86_64_32
against `a local symbol' can not be used when making a shared object;
recompile with -fPIC
/usr/local/lib/libfftw.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: ***
[/grass6/dist.x86_64-unknown-linux-gnu/lib/libgrass_gmath.6.1.cvs.so]
Error 1



make distclean
?


Hamish




> Any idea what could be causing this plethora of compile errors? Platform
> is FC4 64 Bit, gdal version is 1.2.5, fftw is 2.1.5...
>
>  ./configure --with-proj-includes=/usr/local/lib
> --with-tcltk-includes=/usr/local/lib --without-postgres --with-freetype
> --with-gdal --with-x --enable-largefile --enable-64bit --enable-w11
> --with-opengl-libs=/usr/X11R6/lib64
> --with-freetype-includes=/usr/include/freetype2 --with-blas --with-cxx
>
> then make results in:
>
>
>
> Following modules are missing the 'description.html' file in src code:
> v.parallel
> v.split
> ----------------------------------------------------------------------
> GRASS GIS compilation log
> -------------------------
> Started compilation: Fri Jun 17 09:32:05 EDT 2005
> Errors in:
> /grass6/lib/gmath
> /grass6/lib/imagery
> /grass6/lib/rst/interp_float
> /grass6/display/drivers/XDRIVER/XDRIVER24
> /grass6/display/d.mon/pgms
> /grass6/imagery/i.class
> /grass6/imagery/i.cluster
> /grass6/imagery/i.gensig
> /grass6/imagery/i.gensigset
> /grass6/imagery/i.group
> /grass6/imagery/i.his.rgb
> /grass6/imagery/i.maxlik
> /grass6/imagery/i.ortho.photo/libes
> /grass6/imagery/i.ortho.photo/menu
> /grass6/imagery/i.ortho.photo/photo.2image
> /grass6/imagery/i.ortho.photo/photo.2target
> /grass6/imagery/i.ortho.photo/photo.camera
> /grass6/imagery/i.ortho.photo/photo.elev
> /grass6/imagery/i.ortho.photo/photo.init
> /grass6/imagery/i.ortho.photo/photo.rectify
> /grass6/imagery/i.ortho.photo/photo.target
> /grass6/imagery/i.points
> /grass6/imagery/i.rectify
> /grass6/imagery/i.rgb.his
> /grass6/imagery/i.smap/shapiro
> /grass6/imagery/i.target
> /grass6/imagery/i.vpoints
> /grass6/imagery/i.cca
> /grass6/imagery/i.fft
> /grass6/imagery/i.ifft
> /grass6/imagery/i.pca
> /grass6/imagery/i.zc
> /grass6/ps/ps.map
> /grass6/raster/r.param.scale
> /grass6/raster/r.resamp.rst
> /grass6/raster/r.in.gdal
> /grass6/raster/r.surf.fractal
> /grass6/raster/r.surf.gauss
> /grass6/raster/r.surf.random
> /grass6/raster/r.terraflow
> /grass6/vector/v.kernel
> /grass6/vector/v.surf.rst
> Finished compilation: Fri Jun 17 09:32:34 EDT 2005
> (In case of errors please change into the directory with error and run
> 'make')
>
>
> cd lib
> make
> /usr/bin/ld: cannot find -lgrass_gmath
> collect2: ld returned 1 exit status
>
> cd rst
> make
> /usr/bin/ld: cannot find -lgrass_gmath
> collect2: ld returned 1 exit status
> make[1]: *** [/grass6/dist./lib/libgrass_interpfl.6.1.cvs.so] Error 1
> make[1]: Leaving directory `/grass6/lib/rst/interp_float'
>
> cd raster
> make
> /usr/bin/ld: cannot find -lgrass_gmath
> collect2: ld returned 1 exit status
>
>
> cd ps
> make
> /usr/bin/ld: cannot find -lgrass_I
> collect2: ld returned 1 exit status
> make[1]: *** [/grass6/dist./bin/ps.map] Error 1
> make[1]: Leaving directory `/grass6/ps/ps.map'
>
>
> ...and so forth.
>
> What's frustrating...is I blew away the OS last night and
> reformatted...thinking that I had a trashed OS install 'cuz I was getting
> the same errors.....
>
> grass source is latest from CVS.
>
>
>
>
>
>
>


-- 
Thomas Colson
Center For Earth Observation
North Carolina State University
Raleigh, NC
(919)515 3434
(919)673 8023
tom_colson at ncsu.edu




More information about the grass-user mailing list