[GRASSLIST:389] Re: compile grass51_exp_2003_06_07

Martin Pokorny martin at truffulatree.org
Sat Jun 14 23:56:57 EDT 2003


On 14 Jun 2003, Babak Toloue Tehrani wrote:
> When I try to compile grass5.1 I get following errors:
> make
> 
> /home/babak/src/grass/grass51_exp_2003_06_07/include/gis.h:36:
> warning: `GRASS_copyright' defined but not used gcc -g -Wall -Wall
> -I/home/babak/src/grass/grass51_exp_2003_06_07/include
> -I/home/babak/src/grass/grass51_exp_2003_06_07/dist.i68
> 6-pc-linux-gnu/include
> -I/home/babak/src/grass/grass51_exp_2003_06_07/include
> -I/home/babak/src/grass/grass51_exp_2003_06_07/dis
> t.i686-pc-linux-gnu/include \ -o OBJ.i686-pc-linux-gnu/transform.o
> -c transform.c
> /home/babak/src/grass/grass51_exp_2003_06_07/include/gis.h:36:
> warning: `GRASS_copyright' defined but not used gcc
> -L/home/babak/src/grass/grass51_exp_2003_06_07/dist.i686-pc-linux-gnu/lib
> -o /home/babak/src/grass/grass51_exp_2003_06_07/d
> ist.i686-pc-linux-gnu/etc/bin/cmd/i.cca OBJ.i686-pc-linux-gnu/main.o
> OBJ.i686-pc-linux-gnu/matrix.o OBJ.i686-pc-linux-gnu/stats.o O
> BJ.i686-pc-linux-gnu/transform.o -lgrass_I -lgrass_gmath -lgrass_gis
> -lgrass_datetime -lgrass_vask -lncurses -lbsd-compat -lfftw -lm -lm
> -lz
> /home/babak/src/grass/grass51_exp_2003_06_07/dist.i686-pc-linux-gnu/lib/libgrass_gmath.so:
> undefined reference to `dgesv_'
> /home/babak/src/grass/grass51_exp_2003_06_07/dist.i686-pc-linux-gnu/lib/libgrass_gmath.so:
> undefined reference to `dgemm_'
> /home/babak/src/grass/grass51_exp_2003_06_07/dist.i686-pc-linux-gnu/lib/libgrass_gmath.so:
> undefined reference to `dnrm2_' collect2: ld returned 1 exit status
> make[2]: ***
> [/home/babak/src/grass/grass51_exp_2003_06_07/dist.i686-pc-linux-gnu/etc/bin/cmd/i.cca]
> Error 1 make[2]: Leaving directory
> `/home/babak/src/grass/grass51_exp_2003_06_07/imagery/i.cca'
> make[1]: *** [subdirs] Error 1 make[1]: Leaving directory
> `/home/babak/src/grass/grass51_exp_2003_06_07/imagery' make: ***
> [default] Error 1

I encountered the same problem, which I corrected with the following
modification to a makefile.
 
include/Make/Grass.make: l.193
    added $(LAPACKLIB) and $(BLASLIB) to def of GMATHLIB, i.e,
    GMATHLIB    = -l$(GMATH_LIBNAME) $(LAPACKLIB) $(BLASLIB)

The problem occurs because the missing functions are from the lapack
and/or blas libraries, which are required by GMATH_LIBNAME when you
configure with lapack and/or blas.

Cheers,
  Martin

-- 
Martin Pokorny
Tucson, AZ, USA




More information about the grass-user mailing list