[GRASSLIST:3564] build grass57

Hi all,

i had installed grass 5.0.3 and now try to install 5.7 on a suse linux 8.2. Now i have problems when running the make command:

nad2bin.c:8:22: projects.h: No such file or directory
...
make[2]: *** [nad2bin] Error 1
make[2]: Leaving directory `/data/gis/nfp48/nfp48/ipodlas0.1/grass/grass57_exp_2004_05_24/lib/proj'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/data/gis/nfp48/nfp48/ipodlas0.1/grass/grass57_exp_2004_05_24/lib'
make: *** [default] Error 1

a speciality in my system is, since I'm not root, i have to install everything locally, so my configure looks:
./configure --prefix=/data/gis/nfp48/nfp48/ipodlas0.1/grass/grass57_exp_2004_05_24 --with-bindir=/data/gis/nfp48/nfp48/ipodlas0.1/grass/grass57_exp_2004_05_24 --with-grass50=/data/gis/nfp48/nfp48/ipodlas0.1/grass/grass53_exp_2004_05_25 --with-proj-includes=/data/gis/nfp48/nfp48/ipodlas0.1/lib/proj-4.4.8/include/ --with-proj-libs=/data/gis/nfp48/nfp48/ipodlas0.1/lib/proj-4.4.8/lib/ --with-gdal=/data/gis/nfp48/nfp48/ipodlas0.1/lib/gdal-1.2.0/bin/gdal-config --with-postgres --with-postgres-includes=/data/gis/nfp48/nfp48/ipodlas0.1/lib/postgresql-7.4.1/include/ --with-postgres-libs=/data/gis/nfp48/nfp48/ipodlas0.1/lib/postgresql-7.4.1/lib/ --with-odbc --with-odbc-includes=/data/gis/nfp48/nfp48/ipodlas0.1/lib/unixODBC-2.2.7/include/ --with-odbc-libs=/data/gis/nfp48/nfp48/ipodlas0.1/lib/unixODBC-2.2.7/lib --without-fftw --enable-socket | & tee compileOutput.log

output:
GRASS is now configured for: i686-pc-linux-gnu

Source directory: /data/gis/nfp48/nfp48/ipodlas0.1/grass/grass57_exp_2004_05_24
Build directory: /home/gis/disen/links/ipodlas0.1/grass/grass57_exp_2004_05_24
Installation directory: /data/gis/nfp48/nfp48/ipodlas0.1/grass/grass57_exp_2004_05_24/grass57
Startup script in directory: ${exec_prefix}/bin
C compiler: gcc -g -Wall -LLIBDIR
C++ compiler:
FORTRAN compiler: g77
Building shared libraries: yes

  NVIZ: yes

  X11 support: yes
  JPEG support: yes
  TIFF support: yes
  PNG support: yes
  Tcl/Tk support: yes
  PostgreSQL support: yes
  MySQL support: no
  OpenGL(R) support: yes
  ODBC support: yes
  FFTW support: no
  BLAS support: no
  LAPACK support: no
  Motif support: no
  FreeType support: no
  GLw support: no
  NLS support: no
  Readline support: no
  C++ support: no
  openDWG support: no
  GDAL support: yes
  OGR support: yes

also the make mix seems to be ok.
The problem seems to me to be the PROJ. I've added the path to PROJ to LD_LIBRARAY_PATH, but ...

Any suggestions what might be the problem?

Thanks Dani

On Tue, 1 Jun 2004, Daniel Isenegger wrote:

Hi all,

i had installed grass 5.0.3 and now try to install 5.7 on a suse linux 8.2. Now i have problems when running the make command:

nad2bin.c:8:22: projects.h: No such file or directory
...

nad2bin.c should not be compiled. Can you include more of the make output up to that line that indicates how nad2bin.c came to be compiled. lib/proj/Makefile has
LIB_OBJS = get_proj.o do_proj.o convert.o datum.o ellipse.o
and include/Make/Lib.make has
ifndef LIB_OBJS
LIB_OBJS = $(subst .c,.o,$(wildcard *.c))
endif
so if the LIB_OBJS definition somehow got lost it is possible that it would try to compile nad2bin.c (which is sitting unused in that directory but may possibly be used again in the future).
But I can't see how that would happen.

You may be able to work around it by deleting nad2bin.c from lib/proj, but it would be good to try to find out the real cause of the error.

Paul