[GRASS-dev] compile error?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all.
I'm getting an error during compilation (yet, I tried running make
distclean, but it doesn't help).
Any explanation?
Thanks.
pc

Installing with make install...

======================= Installation results =======================
echo /home/paolo/Desktop/buildpackage/grass6/bin.i686-pc-linux-gnu/grass63
/home/paolo/Desktop/buildpackage/grass6/bin.i686-pc-linux-gnu/grass63
/bin/sh: line 5: [: =: unary operator expected
make[1]: Entering directory `/home/paolo/Desktop/buildpackage/grass6'
test -d /usr/local/grass-6.3.cvs || mkdir -p -m 755 /usr/local/grass-6.3.cvs
test -d /usr/local/bin || mkdir -p -m 755 /usr/local/bin
sed -e "s#^GISBASE.*#GISBASE=/usr/local/grass-6.3.cvs#" /home/paolo/Desktop/
buildpackage/grass6/bin.i686-pc-linux-gnu/grass63 > /usr/local/bin/grass63
chmod a+x /usr/local/bin/grass63
sed -e "s#^WINGISBASE.*#WINGISBASE=/usr/local/grass-6.3.cvs#" /home/paolo/De
sktop/buildpackage/grass6/bin.i686-pc-linux-gnu/grass63.bat > /usr/local/bin
/grass63.bat
chmod a+x /usr/local/bin/grass63.bat
cd /home/paolo/Desktop/buildpackage/grass6/dist.i686-pc-linux-gnu ; tar cBf
- - bin | (cd /usr/local/grass-6.3.cvs ; tar xBf - ) 2>/dev/null
make[1]: [real-install] Error 2 (ignored)
cd /home/paolo/Desktop/buildpackage/grass6/dist.i686-pc-linux-gnu ; tar cBf
- - bwidget | (cd /usr/local/grass-6.3.cvs ; tar xBf - ) 2>/dev/null
cd /home/paolo/Desktop/buildpackage/grass6/dist.i686-pc-linux-gnu ; tar cBf
- - docs | (cd /usr/local/grass-6.3.cvs ; tar xBf - ) 2>/dev/null
make[1]: [real-install] Error 2 (ignored)
cd /home/paolo/Desktop/buildpackage/grass6/dist.i686-pc-linux-gnu ; tar cBf
- - driver | (cd /usr/local/grass-6.3.cvs ; tar xBf - ) 2>/dev/null
make[1]: [real-install] Error 2 (ignored)
cd /home/paolo/Desktop/buildpackage/grass6/dist.i686-pc-linux-gnu ; tar cBf
- - etc | (cd /usr/local/grass-6.3.cvs ; tar xBf - ) 2>/dev/null
make[1]: [real-install] Error 2 (ignored)
cd /home/paolo/Desktop/buildpackage/grass6/dist.i686-pc-linux-gnu ; tar cBf
- - fonts | (cd /usr/local/grass-6.3.cvs ; tar xBf - ) 2>/dev/null
cd /home/paolo/Desktop/buildpackage/grass6/dist.i686-pc-linux-gnu ; tar
cBf - man | (cd /usr/local/grass-6.3.cvs ; tar
xBf - ) 2>/dev/null
make[1]: [real-install] Error 2 (ignored)
cd /home/paolo/Desktop/buildpackage/grass6/dist.i686-pc-linux-gnu ; tar
cBf - scripts | (cd /usr/local/grass-6.3.cvs ;
tar xBf - ) 2>/dev/null
if [ 1 -eq 1 ] ; then cd
/home/paolo/Desktop/buildpackage/grass6/dist.i686-p
    c-linux-gnu ; tar cBf - locale | (cd /usr/local/grass-6.3.cvs ; tar
xBf - ) 2>/dev/null ; fi
make[1]: *** [real-install] Error 2
make[1]: Leaving directory `/home/paolo/Desktop/buildpackage/grass6'
make: *** [install] Error 2

**** Installation failed. Aborting package creation.

- --
Paolo Cavallini
http://www.faunalia.it/pc
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGENNg/NedwLUzIr4RAm/yAJ0TmttS7r9BglwnLioSGnE3zezj+ACgtgrO
T6ssS+kYLARdG/Xiwqnk0+o=
=gAU6
-----END PGP SIGNATURE-----

On Mon, Apr 02, 2007 at 11:56:49AM +0200, Paolo Cavallini wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all.
I'm getting an error during compilation (yet, I tried running make
distclean, but it doesn't help).
Any explanation?
Thanks.
pc

Installing with make install...

======================= Installation results =======================
echo /home/paolo/Desktop/buildpackage/grass6/bin.i686-pc-linux-gnu/grass63
/home/paolo/Desktop/buildpackage/grass6/bin.i686-pc-linux-gnu/grass63
/bin/sh: line 5: [: =: unary operator expected

...

Fixed in CVS. MACOSX_APP must be quoted in the Makefile.

Markus

Sorry about that.

Would this also affect when it's used in ifeq() ? ie:

ifeq ($(MACOSX_APP),1)

On Apr 2, 2007, at 9:35 AM, Markus Neteler wrote:

On Mon, Apr 02, 2007 at 11:56:49AM +0200, Paolo Cavallini wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all.
I'm getting an error during compilation (yet, I tried running make
distclean, but it doesn't help).
Any explanation?
Thanks.
pc

Installing with make install...

======================= Installation results =======================
echo /home/paolo/Desktop/buildpackage/grass6/bin.i686-pc-linux-gnu/grass63
/home/paolo/Desktop/buildpackage/grass6/bin.i686-pc-linux-gnu/grass63
/bin/sh: line 5: [: =: unary operator expected

...

Fixed in CVS. MACOSX_APP must be quoted in the Makefile.

Markus

_______________________________________________
grass-dev mailing list
grass-dev@grass.itc.it
http://grass.itc.it/mailman/listinfo/grass-dev

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

"Those people who most want to rule people are, ipso-facto, those least suited to do it."

- A rule of the universe, from the HitchHiker's Guide to the Galaxy

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thanks. However, it still fails:

Installing with make install...

========================= Installation results ======================
echo /home/paolo/Desktop/buildpackage/grass6/bin.i686-pc-linux-gnu/grass63
/home/paolo/Desktop/buildpackage/grass6/bin.i686-pc-linux-gnu/grass63
make[1]: Entering directory `/home/paolo/Desktop/buildpackage/grass6'
test -d /usr/local/grass-6.3.cvs || mkdir -p -m 755 /usr/local/grass-6.3.cvs
test -d /usr/local/bin || mkdir -p -m 755 /usr/local/bin
sed -e "s#^GISBASE.*#GISBASE=/usr/local/grass-6.3.cvs#"
/home/paolo/Desktop/buildpackage/grass6/bin.i686-pc-linux-gnu/grass63 >
/usr/local/bin/grass63
chmod a+x /usr/local/bin/grass63
sed -e "s#^WINGISBASE.*#WINGISBASE=/usr/local/grass-6.3.cvs#"
/home/paolo/Desktop/buildpackage/grass6/bin.i686-pc-linux-gnu/grass63.bat

/usr/local/bin/grass63.bat

chmod a+x /usr/local/bin/grass63.bat
cd /home/paolo/Desktop/buildpackage/grass6/dist.i686-pc-linux-gnu ; tar
cBf - bin | (cd /usr/local/grass-6.3.cvs ; tar xBf - ) 2>/dev/null
make[1]: [real-install] Error 2 (ignored)
cd /home/paolo/Desktop/buildpackage/grass6/dist.i686-pc-linux-gnu ; tar
cBf - bwidget | (cd /usr/local/grass-6.3.cvs ; tar xBf - ) 2>/dev/null
cd /home/paolo/Desktop/buildpackage/grass6/dist.i686-pc-linux-gnu ; tar
cBf - docs | (cd /usr/local/grass-6.3.cvs ; tar xBf - ) 2>/dev/null
make[1]: [real-install] Error 2 (ignored)
cd /home/paolo/Desktop/buildpackage/grass6/dist.i686-pc-linux-gnu ; tar
cBf - driver | (cd /usr/local/grass-6.3.cvs ; tar xBf - ) 2>/dev/null
make[1]: [real-install] Error 2 (ignored)
cd /home/paolo/Desktop/buildpackage/grass6/dist.i686-pc-linux-gnu ; tar
cBf - etc | (cd /usr/local/grass-6.3.cvs ; tar xBf - ) 2>/dev/null
make[1]: [real-install] Error 2 (ignored)
cd /home/paolo/Desktop/buildpackage/grass6/dist.i686-pc-linux-gnu ; tar
cBf - fonts | (cd /usr/local/grass-6.3.cvs ; tar xBf - ) 2>/dev/null
cd /home/paolo/Desktop/buildpackage/grass6/dist.i686-pc-linux-gnu ; tar
cBf - man | (cd /usr/local/grass-6.3.cvs ; tar xBf - ) 2>/dev/null
make[1]: [real-install] Error 2 (ignored)
cd /home/paolo/Desktop/buildpackage/grass6/dist.i686-pc-linux-gnu ; tar
cBf - scripts | (cd /usr/local/grass-6.3.cvs ; tar xBf - ) 2>/dev/null
if [ 1 -eq 1 ] ; then cd
/home/paolo/Desktop/buildpackage/grass6/dist.i686-pc-linux-gnu ; tar cBf
- - locale | (cd /usr/local/grass-6.3.cvs ; tar xBf - ) 2>/dev/null ; fi
make[1]: *** [real-install] Error 2
make[1]: Leaving directory `/home/paolo/Desktop/buildpackage/grass6'
make: *** [install] Error 2

Markus Neteler ha scritto:

On Mon, Apr 02, 2007 at 11:56:49AM +0200, Paolo Cavallini wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all.
I'm getting an error during compilation (yet, I tried running make
distclean, but it doesn't help).
Any explanation?
Thanks.
pc

Installing with make install...

======================= Installation results =======================
echo /home/paolo/Desktop/buildpackage/grass6/bin.i686-pc-linux-gnu/grass63
/home/paolo/Desktop/buildpackage/grass6/bin.i686-pc-linux-gnu/grass63
/bin/sh: line 5: [: =: unary operator expected

...

Fixed in CVS. MACOSX_APP must be quoted in the Makefile.

Markus

_______________________________________________
grass-dev mailing list
grass-dev@grass.itc.it
http://grass.itc.it/mailman/listinfo/grass-dev

- --
Paolo Cavallini
http://www.faunalia.it/pc
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGESBg/NedwLUzIr4RApg9AJ9fiv/VjmbUEvze9El5gCzHCRvvwQCfdeas
A9ulRamKHmjhCybQAvaF5lk=
=007o
-----END PGP SIGNATURE-----

William Kyngesburye wrote:

> Fixed in CVS. MACOSX_APP must be quoted in the Makefile.

Would this also affect when it's used in ifeq() ? ie:

ifeq ($(MACOSX_APP),1)

No, that's okay.

It's only in (some) shell commands where it needs to be quoted.

--
Glynn Clements <glynn@gclements.plus.com>

Paolo Cavallini wrote:

Thanks. However, it still fails:

Installing with make install...

========================= Installation results ======================
echo /home/paolo/Desktop/buildpackage/grass6/bin.i686-pc-linux-gnu/grass63
/home/paolo/Desktop/buildpackage/grass6/bin.i686-pc-linux-gnu/grass63
make[1]: Entering directory `/home/paolo/Desktop/buildpackage/grass6'
test -d /usr/local/grass-6.3.cvs || mkdir -p -m 755 /usr/local/grass-6.3.cvs
test -d /usr/local/bin || mkdir -p -m 755 /usr/local/bin
sed -e "s#^GISBASE.*#GISBASE=/usr/local/grass-6.3.cvs#"
/home/paolo/Desktop/buildpackage/grass6/bin.i686-pc-linux-gnu/grass63 >
/usr/local/bin/grass63
chmod a+x /usr/local/bin/grass63
sed -e "s#^WINGISBASE.*#WINGISBASE=/usr/local/grass-6.3.cvs#" /home/paolo/Desktop/buildpackage/grass6/bin.i686-pc-linux-gnu/grass63.bat > /usr/local/bin/grass63.bat
chmod a+x /usr/local/bin/grass63.bat
cd /home/paolo/Desktop/buildpackage/grass6/dist.i686-pc-linux-gnu ; tar cBf - bin | (cd /usr/local/grass-6.3.cvs ; tar xBf - ) 2>/dev/null
make[1]: [real-install] Error 2 (ignored)
cd /home/paolo/Desktop/buildpackage/grass6/dist.i686-pc-linux-gnu ; tar cBf - bwidget | (cd /usr/local/grass-6.3.cvs ; tar xBf - ) 2>/dev/null
cd /home/paolo/Desktop/buildpackage/grass6/dist.i686-pc-linux-gnu ; tar cBf - docs | (cd /usr/local/grass-6.3.cvs ; tar xBf - ) 2>/dev/null
make[1]: [real-install] Error 2 (ignored)
cd /home/paolo/Desktop/buildpackage/grass6/dist.i686-pc-linux-gnu ; tar cBf - driver | (cd /usr/local/grass-6.3.cvs ; tar xBf - ) 2>/dev/null
make[1]: [real-install] Error 2 (ignored)
cd /home/paolo/Desktop/buildpackage/grass6/dist.i686-pc-linux-gnu ; tar cBf - etc | (cd /usr/local/grass-6.3.cvs ; tar xBf - ) 2>/dev/null
make[1]: [real-install] Error 2 (ignored)
cd /home/paolo/Desktop/buildpackage/grass6/dist.i686-pc-linux-gnu ; tar cBf - fonts | (cd /usr/local/grass-6.3.cvs ; tar xBf - ) 2>/dev/null
cd /home/paolo/Desktop/buildpackage/grass6/dist.i686-pc-linux-gnu ; tar cBf - man | (cd /usr/local/grass-6.3.cvs ; tar xBf - ) 2>/dev/null
make[1]: [real-install] Error 2 (ignored)
cd /home/paolo/Desktop/buildpackage/grass6/dist.i686-pc-linux-gnu ; tar cBf - scripts | (cd /usr/local/grass-6.3.cvs ; tar xBf - ) 2>/dev/null
if [ 1 -eq 1 ] ; then cd /home/paolo/Desktop/buildpackage/grass6/dist.i686-pc-linux-gnu ; tar cBf - - locale | (cd /usr/local/grass-6.3.cvs ; tar xBf - ) 2>/dev/null ; fi

Can you try running the failing commands manually without the
"2>/dev/null", e.g.

  cd /home/paolo/Desktop/buildpackage/grass6/dist.i686-pc-linux-gnu
  tar cBf - bin | (cd /usr/local/grass-6.3.cvs ; tar xBf - )

--
Glynn Clements <glynn@gclements.plus.com>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Glynn.
Thanks for help. I removed the old directory (/usr/local/grass-6.3.cvs),
and make install went smoothly.
All the best.
pc

Glynn Clements ha scritto:

Paolo Cavallini wrote:

Thanks. However, it still fails:

...

Can you try running the failing commands manually without the
"2>/dev/null", e.g.

  cd /home/paolo/Desktop/buildpackage/grass6/dist.i686-pc-linux-gnu
  tar cBf - bin | (cd /usr/local/grass-6.3.cvs ; tar xBf - )

- --
Paolo Cavallini
http://www.faunalia.it/pc
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGEfIg/NedwLUzIr4RAqEZAJwPJfqkul9sJj4Gk3Cshqjh2UKXiACePRwz
pc3jKz8wOckp5NThCOn/c7E=
=kOr3
-----END PGP SIGNATURE-----