[GRASSLIST:3181] gmake53 problem

Hello, I have a problem compiling new commands.
When I try to run "gmake53 -i" i get the following error:

[root@maxi Interception]# /usr/local/bin/gmake53 -i
  SRC = /home/mcannata/grass53_exp_2004_03_27/src
  CMD = /home/mcannata/grass53_exp_2004_03_27/src/CMD
  UNUSED = /home/mcannata/grass53_exp_2004_03_27/unused
  HEADER = head.i686-pc-linux-gnu
  ARCH = i686-pc-linux-gnu
  GISBASE = /home/mcannata/grass53_exp_2004_03_27/dist.i686-pc-linux-gnu
  VERSION = 5.3-cvs 2004
#################################################################
/home/mcannata/grass53_exp_2004_03_27/ModelloIST/Interception
  make -f OBJ.i686-pc-linux-gnu/make.rules
make: `/home/mcannata/grass53_exp_2004_03_27/dist.i686-pc-linux-gnu/etc/bin/cmd/r.interception' is up to date. make -f OBJ.i686-pc-linux-gnu/make2.rules
gcc -L/home/mcannata/grass53_exp_2004_03_27/src/libes/LIB.i686-pc-linux-gnu -Wl,--export-dynamic -o /etc/bin/cmd/r.interception OBJ.i686-pc-linux-gnu/main.o OBJ.i686-pc-linux-gnu/functions.o -lgis -lm -lz
/usr/bin/ld: cannot open output file /etc/bin/cmd/r.interception: No such file or directory
collect2: ld returned 1 exit status
make: *** [/etc/bin/cmd/r.interception] Error 1

Why does it try to make it in /etc/bin/cmd/r.interception ? The new code are in the current directory:
home/mcannata/grass53_exp_2004_03_27/ModelloIST/Interception

I have installed grass53 with the options --prefix=/home/grass and --bindir=/home

Suggestions???

Thanks again.

--
-------------
note: change my e-mail reference to massimiliano.cannata@supsi.ch
      because the old one will be deleted soon.
-------------
Ing. Massimiliano Cannata
Istituto di Scienze della Terra - SUPSI
C.P. 72 - CH-6952 Canobbio (Ticino, Switzerland)
Tel +41 91 /935 12 25 - Fax +41 91 /935 12 09
eMail: massimiliano.cannata@supsi.ch
Internet: http://www.ist.supsi.ch

On Thu, 15 Apr 2004, Massimiliano Cannata wrote:

Hello, I have a problem compiling new commands.
When I try to run "gmake53 -i" i get the following error:

[root@maxi Interception]# /usr/local/bin/gmake53 -i

                            ^^^^^^^^^^^^^^^^^^^^^^
[...]

I have installed grass53 with the options --prefix=/home/grass and
--bindir=/home

           ^^^^^

Suggestions???

Just one idea but if bindir is /home should you not be running
/home/gmake53 rather than /usr/local/bin/gmake53?

Have you run make through to its completion (or the gmake53 script won't
have been created properly)?

You also could try using the alternate build mechanism (./configure
--enable-gmake=no) which might be better.

Paul.

sorry, i run
ln -s /home/bin/gmake53 /usr/local/bin/gmake53
but also using /home/bin/gmake53 the output is always the same......

running:
- cd to my code directory
- gmake53
- gmakelinks53
- cd to my root_of_grass_source
- make install
Now i can have my new command in grass, but it is not really smart.....

other suggestion?

Paul Kelly wrote:

On Thu, 15 Apr 2004, Massimiliano Cannata wrote:

Hello, I have a problem compiling new commands.
When I try to run "gmake53 -i" i get the following error:

[root@maxi Interception]# /usr/local/bin/gmake53 -i
   

                           ^^^^^^^^^^^^^^^^^^^^^^
[...]

I have installed grass53 with the options --prefix=/home/grass and
--bindir=/home
   

          ^^^^^

Suggestions???
   
Just one idea but if bindir is /home should you not be running
/home/gmake53 rather than /usr/local/bin/gmake53?

Have you run make through to its completion (or the gmake53 script won't
have been created properly)?

You also could try using the alternate build mechanism (./configure
--enable-gmake=no) which might be better.

Paul.

--
-------------
note: change my e-mail reference to massimiliano.cannata@supsi.ch
      because the old one will be deleted soon.
-------------
Ing. Massimiliano Cannata
Istituto di Scienze della Terra - SUPSI
C.P. 72 - CH-6952 Canobbio (Ticino, Switzerland)
Tel +41 91 /935 12 25 - Fax +41 91 /935 12 09
eMail: massimiliano.cannata@supsi.ch
Internet: http://www.ist.supsi.ch

On Thu, 15 Apr 2004, Massimiliano Cannata wrote:

sorry, i run
ln -s /home/bin/gmake53 /usr/local/bin/gmake53
but also using /home/bin/gmake53 the output is always the same......

Well yes because you are still running the wrong gmake53 (assuming the
configure line you gave in your last message is correct). You said
--bindir=/home so the correct version is /home/gmake53.
If you did --bindir=/home/bin then it would be /home/bin/gmake53

What does
find / -name gmake53
show... are there several copies of gmake53 on your system?

The way I see it the gmake53 in /usr/local/bin (and perhaps /home/bin also)
seems to be old and out of date and doesn't have the line
INST_DIR=xxxx
that should be there since 25th March when I made some improvements to the
gmake script.

Let me know how you get on.

Paul

I have tryed to recompile everything, so here is my runs:

    * make distclean
    * find / -name gmake53
    * i remove all the gmake53, gmakelinks53 and grass53
    * configure with:
      CFLAGS="-O3 -mcpu=pentium -Wall" ./configure --prefix=/home/grass
      --with-postgres-includes=/usr/include/pgsql/server/ --with-motif
      --with-motif-includes=/usr/X11R6/LessTif/Motif1.2/include/
      --with-motif-libs=/usr/X11R6/LessTif/Motif1.2/lib/ --with-blas
      --with-lapack --with-glw --with-dbm
      --with-dbm-includes=/usr/include/gdbm --with-freetype
      --with-freetype-includes=/usr/include/freetype2/
      --without-readline --with-fftw --with-proj
      --with-proj-libs=/usr/local/lib --with-cxx

    * make
    * make install

Now I get a my grass running correctly with all the commands, i also have a new /home/grass/bin directory with gmake53, gmakelinks53 and grass53 files just created (those shold be the rigth ones).
Unfortunately when i try to compile my new code it continues to give the same error:

/usr/bin/ld: cannot open output file /etc/bin/cmd/r.interception: No such file or directory
collect2: ld returned 1 exit status
make: *** [/etc/bin/cmd/r.interception] Error 1

I see that my gmake53 contain the line INST_DIR=/home/grass/grass53

It compile correctly the code but the installation that fails....
I suppose that instead of /etc/bin/cmd/r.interception it should be $INST_DIR/bin

In fact I can find it in /home/mcannata/grass53_exp_2004_03_27/dist.i686-pc-linux-gnu/etc/bin/cmd/r.evapo.PM, the problem is just in copying it in the /home/grass/grass53/bin directory?

Paul Kelly wrote:

On Thu, 15 Apr 2004, Massimiliano Cannata wrote:

sorry, i run
ln -s /home/bin/gmake53 /usr/local/bin/gmake53
but also using /home/bin/gmake53 the output is always the same......
   
Well yes because you are still running the wrong gmake53 (assuming the
configure line you gave in your last message is correct). You said
--bindir=/home so the correct version is /home/gmake53.
If you did --bindir=/home/bin then it would be /home/bin/gmake53

What does
find / -name gmake53
show... are there several copies of gmake53 on your system?

The way I see it the gmake53 in /usr/local/bin (and perhaps /home/bin also)
seems to be old and out of date and doesn't have the line
INST_DIR=xxxx
that should be there since 25th March when I made some improvements to the
gmake script.

Let me know how you get on.

Paul

--
-------------
note: change my e-mail reference to massimiliano.cannata@supsi.ch
      because the old one will be deleted soon.
-------------
Ing. Massimiliano Cannata
Istituto di Scienze della Terra - SUPSI
C.P. 72 - CH-6952 Canobbio (Ticino, Switzerland)
Tel +41 91 /935 12 25 - Fax +41 91 /935 12 09
eMail: massimiliano.cannata@supsi.ch
Internet: http://www.ist.supsi.ch

Massimiliano Cannata wrote:

Unfortunately when i try to compile my new code it continues to give the
same error:

/usr/bin/ld: cannot open output file /etc/bin/cmd/r.interception: No
such file or directory
collect2: ld returned 1 exit status
make: *** [/etc/bin/cmd/r.interception] Error 1

What does r.interception's Gmakefile look like?

--
Glynn Clements <glynn.clements@virgin.net>