[GRASS5] [patch] Compile errors on recent cvs, not linking to blas/lapack
libs
Buchan Milne
bgmilne at cae.co.za
Tue Jun 17 07:45:27 EDT 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I need some bits of grass51, so compiled it over the weekend from the
20030614 snapshot, using the configure options I had used for grass5:
%configure \
--with-dbm-includes=/usr/include/gdbm/ \
--with-postgres-includes='/usr/include/pgsql
/usr/include/pgsql/internal' \
--with-blas \
--with-lapack \
--with-freetype \
--with-freetype-includes=/usr/include/freetype2/ \
--with-motif \
--with-motif-includes=/usr/X11R6/include \
--with-dbm \
--with-glw \
--with-gdal \
--with-cxx \
--with-grass50=`pwd`/../grass50_exp_2003_06_14
A number of tools would not compile, since they didn't link to the
blas/lapack libs.
The attached patch fixed most of the issues, I don't know if this is the
right way to fix it, but it works for me ...
I still had problems building r.mapcalc, which I ignored, shown below:
gcc
-
-L/home/bgmilne/rpm/BUILD/grass51_exp_2003_06_14/dist.i586-mandrake-linux-gnu/lib
-o
/home/bgmilne/rpm/BUILD/grass51_exp_2003_06_14/dist.i586-mandrake-linux-gnu/etc/bin/cmd/r.mapcalc
OBJ.i586-mandrake-linux-gnu/check.o
OBJ.i586-mandrake-linux-gnu/evaluate.o
OBJ.i586-mandrake-linux-gnu/expression.o
OBJ.i586-mandrake-linux-gnu/function.o
OBJ.i586-mandrake-linux-gnu/main.o OBJ.i586-mandrake-linux-gnu/map.o
OBJ.i586-mandrake-linux-gnu/xabs.o OBJ.i586-mandrake-linux-gnu/xadd.o
OBJ.i586-mandrake-linux-gnu/xand.o OBJ.i586-mandrake-linux-gnu/xatan.o
OBJ.i586-mandrake-linux-gnu/xcoor.o OBJ.i586-mandrake-linux-gnu/xcos.o
OBJ.i586-mandrake-linux-gnu/xdiv.o OBJ.i586-mandrake-linux-gnu/xdouble.o
OBJ.i586-mandrake-linux-gnu/xeq.o OBJ.i586-mandrake-linux-gnu/xeval.o
OBJ.i586-mandrake-linux-gnu/xexp.o OBJ.i586-mandrake-linux-gnu/xfloat.o
OBJ.i586-mandrake-linux-gnu/xge.o OBJ.i586-mandrake-linux-gnu/xgt.o
OBJ.i586-mandrake-linux-gnu/xif.o OBJ.i586-mandrake-linux-gnu/xint.o
OBJ.i586-mandrake-linux-gnu/xisnull.o OBJ.i586-mandrake-linux-gnu/xle.o
OBJ.i586-mandrake-linux-gnu/xlog.o OBJ.i586-mandrake-linux-gnu/xlt.o
OBJ.i586-mandrake-linux-gnu/xmax.o OBJ.i586-mandrake-linux-gnu/xmedian.o
OBJ.i586-mandrake-linux-gnu/xmin.o OBJ.i586-mandrake-linux-gnu/xmod.o
OBJ.i586-mandrake-linux-gnu/xmode.o OBJ.i586-mandrake-linux-gnu/xmul.o
OBJ.i586-mandrake-linux-gnu/xne.o OBJ.i586-mandrake-linux-gnu/xneg.o
OBJ.i586-mandrake-linux-gnu/xnot.o OBJ.i586-mandrake-linux-gnu/xnull.o
OBJ.i586-mandrake-linux-gnu/xor.o OBJ.i586-mandrake-linux-gnu/xpow.o
OBJ.i586-mandrake-linux-gnu/xrand.o OBJ.i586-mandrake-linux-gnu/xres.o
OBJ.i586-mandrake-linux-gnu/xround.o
OBJ.i586-mandrake-linux-gnu/xrowcol.o OBJ.i586-mandrake-linux-gnu/xsin.o
OBJ.i586-mandrake-linux-gnu/xsqrt.o OBJ.i586-mandrake-linux-gnu/xsub.o
OBJ.i586-mandrake-linux-gnu/xtan.o -lgrass_gis -lgrass_datetime
- -lgrass_btree -lgrass_rowio -lm -lz
OBJ.i586-mandrake-linux-gnu/expression.o(.text+0x56e): In function
`variable':
: undefined reference to `syntax_error'
OBJ.i586-mandrake-linux-gnu/expression.o(.text+0x5fc): In function
`mapname':
: undefined reference to `syntax_error'
OBJ.i586-mandrake-linux-gnu/expression.o(.text+0x723): In function
`operator':
: undefined reference to `syntax_error'
OBJ.i586-mandrake-linux-gnu/expression.o(.text+0x807): In function
`operator':
: undefined reference to `syntax_error'
OBJ.i586-mandrake-linux-gnu/main.o(.text+0x207): In function `main':
: undefined reference to `parse_string'
OBJ.i586-mandrake-linux-gnu/main.o(.text+0x2ac): In function `main':
: undefined reference to `parse_stream'
collect2: ld returned 1 exit status
make[2]: ***
[/home/bgmilne/rpm/BUILD/grass51_exp_2003_06_14/dist.i586-mandrake-linux-gnu/etc/bin/cmd/r.mapcalc]
Error 1
make[2]: Leaving directory
`/home/bgmilne/rpm/BUILD/grass51_exp_2003_06_14/raster/r.mapcalc'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory
`/home/bgmilne/rpm/BUILD/grass51_exp_2003_06_14/raster'
make: *** [default] Error 1
I also note there is no install target ...
Regards,
Buchan
- --
|--------------Another happy Mandrake Club member--------------|
Buchan Milne Mechanical Engineer, Network Manager
Cellphone * Work +27 82 472 2231 * +27 21 8828820x202
Stellenbosch Automotive Engineering http://www.cae.co.za
GPG Key http://ranger.dnsalias.com/bgmilne.asc
1024D/60D204A7 2919 E232 5610 A038 87B1 72D6 AC92 BA50 60D2 04A7
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQE+7v9XrJK6UGDSBKcRAl1uAKCRHCuUFbTkfn5Z4sdGgXK4+BjqkACfZmKc
KOQuoEZRU6ygmcpzgkqbt8Q=
=YRky
-----END PGP SIGNATURE-----
******************************************************************
Please click on http://www.cae.co.za/disclaimer.htm to read our
e-mail disclaimer or send an e-mail to info at cae.co.za for a copy.
******************************************************************
-------------- next part --------------
--- imagery/i.cca/Makefile.orig 2003-05-24 06:15:04.000000000 +0200
+++ imagery/i.cca/Makefile 2003-06-16 01:50:12.000000000 +0200
@@ -2,7 +2,7 @@
PGM = i.cca
-LIBES = $(IMAGERYLIB) $(GMATHLIB) $(GISLIB) $(VASKLIB) $(CURSES) $(FFTWLIB)
+LIBES = $(IMAGERYLIB) $(GMATHLIB) $(GISLIB) $(VASKLIB) $(CURSES) $(FFTWLIB) $(BLASLIB) $(LAPACKLIB)
DEPENDENCIES= $(IMAGERYDEP) $(GMATHDEP) $(GISDEP) $(VASKDEP)
include $(MODULE_TOPDIR)/include/Make/Module.make
--- imagery/i.fft/Makefile.orig 2003-05-24 06:15:04.000000000 +0200
+++ imagery/i.fft/Makefile 2003-06-16 02:08:40.000000000 +0200
@@ -2,7 +2,7 @@
PGM = i.fft
-LIBES = $(IMAGERYLIB) $(GMATHLIB) $(GISLIB) $(VASKLIB) $(CURSES) $(FFTWLIB)
+LIBES = $(IMAGERYLIB) $(GMATHLIB) $(GISLIB) $(VASKLIB) $(CURSES) $(FFTWLIB) $(LAPACKLIB) $(BLASLIB)
DEPENDENCIES= $(IMAGERYDEP) $(GMATHDEP) $(GISDEP) $(VASKDEP)
include $(MODULE_TOPDIR)/include/Make/Module.make
--- imagery/i.ifft/Makefile.orig 2003-05-24 06:15:04.000000000 +0200
+++ imagery/i.ifft/Makefile 2003-06-16 02:40:57.000000000 +0200
@@ -2,7 +2,7 @@
PGM = i.ifft
-LIBES = $(IMAGERYLIB) $(GMATHLIB) $(GISLIB) $(VASKLIB) $(CURSES) $(FFTWLIB)
+LIBES = $(IMAGERYLIB) $(GMATHLIB) $(GISLIB) $(VASKLIB) $(CURSES) $(FFTWLIB) $(LAPACKLIB) $(BLASLIB)
DEPENDENCIES= $(IMAGERYDEP) $(GMATHDEP) $(GISDEP) $(VASKDEP)
include $(MODULE_TOPDIR)/include/Make/Module.make
--- imagery/i.pca/Makefile.orig 2003-05-24 06:15:04.000000000 +0200
+++ imagery/i.pca/Makefile 2003-06-16 02:53:31.000000000 +0200
@@ -2,7 +2,7 @@
PGM = i.pca
-LIBES = $(IMAGERYLIB) $(GMATHLIB) $(GISLIB) $(VASKLIB) $(CURSES) $(FFTWLIB)
+LIBES = $(IMAGERYLIB) $(GMATHLIB) $(GISLIB) $(VASKLIB) $(CURSES) $(FFTWLIB) $(LAPACKLIB) $(BLASLIB)
DEPENDENCIES= $(IMAGERYDEP) $(GMATHDEP) $(GISDEP) $(VASKDEP)
include $(MODULE_TOPDIR)/include/Make/Module.make
--- imagery/i.zc/Makefile.orig 2003-05-24 06:15:04.000000000 +0200
+++ imagery/i.zc/Makefile 2003-06-16 03:00:51.000000000 +0200
@@ -2,7 +2,7 @@
PGM = i.zc
-LIBES = $(IMAGERYLIB) $(GMATHLIB) $(GISLIB) $(VASKLIB) $(CURSES) $(FFTWLIB)
+LIBES = $(IMAGERYLIB) $(GMATHLIB) $(GISLIB) $(VASKLIB) $(CURSES) $(FFTWLIB) $(LAPACKLIB) $(BLASLIB)
DEPENDENCIES= $(IMAGERYDEP) $(GMATHDEP) $(GISDEP) $(GISDEP)
include $(MODULE_TOPDIR)/include/Make/Module.make
--- raster/r.surf.fractal/Makefile.orig 2003-05-06 17:56:40.000000000 +0200
+++ raster/r.surf.fractal/Makefile 2003-06-16 10:21:43.000000000 +0200
@@ -2,7 +2,7 @@
PGM = r.surf.fractal
-LIBES = $(GMATHLIB) $(GISLIB) $(FFTWLIB)
+LIBES = $(GMATHLIB) $(GISLIB) $(FFTWLIB) $(LAPACKLIB) $(BLASLIB)
DEPENDENCIES = $(GMATHDEP) $(GISDEP)
EXTRA_INC = $(FFTWINC)
--- raster/r.surf.gauss/Makefile.orig 2003-05-24 06:15:06.000000000 +0200
+++ raster/r.surf.gauss/Makefile 2003-06-16 10:33:02.000000000 +0200
@@ -2,7 +2,7 @@
PGM = r.surf.gauss
-LIBES = $(GMATHLIB) $(GISLIB) $(FFTWLIB)
+LIBES = $(GMATHLIB) $(GISLIB) $(FFTWLIB) $(LAPACKLIB) $(BLASLIB)
DEPENDENCIES = $(GMATHDEP) $(GISDEP)
include $(MODULE_TOPDIR)/include/Make/Module.make
--- raster/r.surf.random/Makefile.orig 2003-05-24 06:15:06.000000000 +0200
+++ raster/r.surf.random/Makefile 2003-06-16 10:45:37.000000000 +0200
@@ -2,7 +2,7 @@
PGM = r.surf.random
-LIBES = $(GMATHLIB) $(GISLIB) $(FFTWLIB)
+LIBES = $(GMATHLIB) $(GISLIB) $(FFTWLIB) $(LAPACKLIB) $(BLASLIB)
DEPENDENCIES = $(GMATHDEP) $(GISDEP)
include $(MODULE_TOPDIR)/include/Make/Module.make
More information about the grass-dev
mailing list