[GRASSLIST:383] compile grass51_exp_2003_06_07

hello list,

I try to compile grass51_exp_2003_06_07 on debian testing. I followed
the instructions posted at:

http://op.gfz-potsdam.de/GRASS-List/Archive/msg07262.html

for compiling first grass50_exp_2003_06_07 with tcltk8.3 everithing
works fine. (With tcltk8.4 I am not able to run nviz.)

When I try to compile grass5.1 I get following errors:

CFLAGS="-g -Wall" ./configure \
  --with-grass50=/home/babak/src/grass/grass50_exp_2003_06_07 \
  --with-proj --with-tcltk-includes=/usr/include/tcl8.3/ \
  --with-postgres-includes=/usr/include/postgresql/ \
  --with-motif \
  --with-motif-includes=/usr/X11R6/include \
  --with-freetype \
  --with-freetype-includes=/usr/include/freetype2/ \
  --with-blas \
  --with-blas-libs=/usr/lib/gcc-lib/i386-linux/3.0.4/ \
  --with-lapack 2>&1 | tee config_log.txt \

make mix
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

Thanks for help,

babak
--
Babak Toloue Tehrani <babak.tehrani@geosysnet.de>

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

On Sat, 14 Jun 2003, Martin Pokorny wrote:

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.

I think that looks right so I have fixed it in CVS.