[GRASS-user] d.histogram in 6.3?

Any changes to d.histogram in 6.3 cvs?
just updated and now I can't get a histogram. always got an error msg:

<bgcolor> is not valid

cheers

carlos

--
+-----------------------------------------------------------+
              Carlos Henrique Grohmann - Guano
  Visiting Researcher at Kingston University London - UK
  Geologist M.Sc - Doctorate Student at IGc-USP - Brazil
Linux User #89721 - carlos dot grohmann at gmail dot com
+-----------------------------------------------------------+
_________________
"Good morning, doctors. I have taken the liberty of removing Windows
95 from my hard drive."
--The winning entry in a "What were HAL's first words" contest judged
by 2001: A SPACE ODYSSEY creator Arthur C. Clarke

Can't stop the signal.

Ciao,

`make distclean` evergreen?

Martin

2007/10/9, Carlos Guâno Grohmann <carlos.grohmann@gmail.com>:

Any changes to d.histogram in 6.3 cvs?
just updated and now I can't get a histogram. always got an error msg:

<bgcolor> is not valid

cheers

carlos

--
+-----------------------------------------------------------+
              Carlos Henrique Grohmann - Guano
  Visiting Researcher at Kingston University London - UK
  Geologist M.Sc - Doctorate Student at IGc-USP - Brazil
Linux User #89721 - carlos dot grohmann at gmail dot com
+-----------------------------------------------------------+
_________________
"Good morning, doctors. I have taken the liberty of removing Windows
95 from my hard drive."
--The winning entry in a "What were HAL's first words" contest judged
by 2001: A SPACE ODYSSEY creator Arthur C. Clarke

Can't stop the signal.

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

--
Martin Landa <landa.martin@gmail.com> * http://gama.fsv.cvut.cz/~landa *

Carlos wrote:

Any changes to d.histogram in 6.3 cvs?
just updated and now I can't get a histogram. always got an error msg:

<bgcolor> is not valid

after a full 'cvs update' you have to do 'make distclean' before recompile.

Hamish

____________________________________________________________________________________
Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos & more.
http://mobile.yahoo.com/go?refer=1GNXIC

Yes, what I meant is that this wasn't a "major upgrade" was a clean
system, fresh OS install, first time I downloaded from CVS in this
machine.

carlos

On 10/9/07, Hamish <hamish_nospam@yahoo.com> wrote:

Carlos wrote:

> Any changes to d.histogram in 6.3 cvs?
> just updated and now I can't get a histogram. always got an error msg:
>
> <bgcolor> is not valid

after a full 'cvs update' you have to do 'make distclean' before recompile.

Hamish

____________________________________________________________________________________
Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos & more.
http://mobile.yahoo.com/go?refer=1GNXIC

--
+-----------------------------------------------------------+
              Carlos Henrique Grohmann - Guano
  Visiting Researcher at Kingston University London - UK
  Geologist M.Sc - Doctorate Student at IGc-USP - Brazil
Linux User #89721 - carlos dot grohmann at gmail dot com
+-----------------------------------------------------------+
_________________
"Good morning, doctors. I have taken the liberty of removing Windows
95 from my hard drive."
--The winning entry in a "What were HAL's first words" contest judged
by 2001: A SPACE ODYSSEY creator Arthur C. Clarke

Can't stop the signal.

> Carlos wrote:
> > Any changes to d.histogram in 6.3 cvs?
> > just updated and now I can't get a histogram. always got an error msg:
> >
> > <bgcolor> is not valid

..

Yes, what I meant is that this wasn't a "major upgrade" was a clean
system, fresh OS install, first time I downloaded from CVS in this
machine.

what were the command line parameters you used?

Hamish

      ____________________________________________________________________________________
Check out the hottest 2008 models today at Yahoo! Autos.
http://autos.yahoo.com/new_cars.html

for d.histogram?

d.histogram --q map=a17_25@drumlims style=bar color=0:0:0
bgcolor=255:255:255 nsteps=255

straight from gis.m, just picked the map and got this:

Sorry, <bgcolor> is not a valid parameter

if I try in the CLI, without the bgcolor option, I get this:
ERROR: [|]: No such color

It works fine in 6.2.2..

cheers

Carlos

On 10/9/07, Hamish <hamish_nospam@yahoo.com> wrote:

> > Carlos wrote:
> > > Any changes to d.histogram in 6.3 cvs?
> > > just updated and now I can't get a histogram. always got an error msg:
> > >
> > > <bgcolor> is not valid
..
> Yes, what I meant is that this wasn't a "major upgrade" was a clean
> system, fresh OS install, first time I downloaded from CVS in this
> machine.

what were the command line parameters you used?

Hamish

      ____________________________________________________________________________________
Check out the hottest 2008 models today at Yahoo! Autos.
http://autos.yahoo.com/new_cars.html

--
+-----------------------------------------------------------+
              Carlos Henrique Grohmann - Guano
  Visiting Researcher at Kingston University London - UK
  Geologist M.Sc - Doctorate Student at IGc-USP - Brazil
Linux User #89721 - carlos dot grohmann at gmail dot com
+-----------------------------------------------------------+
_________________
"Good morning, doctors. I have taken the liberty of removing Windows
95 from my hard drive."
--The winning entry in a "What were HAL's first words" contest judged
by 2001: A SPACE ODYSSEY creator Arthur C. Clarke

Can't stop the signal.

"Carlos \"Guâno\" Grohmann" wrote:

> > > > Any changes to d.histogram in 6.3 cvs?
> > > > just updated and now I can't get a histogram. always got an error msg:
> > > >
> > > > <bgcolor> is not valid
> ..
> > Yes, what I meant is that this wasn't a "major upgrade" was a clean
> > system, fresh OS install, first time I downloaded from CVS in this
> > machine.
>
> what were the command line parameters you used?

for d.histogram?

d.histogram --q map=a17_25@drumlims style=bar color=0:0:0
bgcolor=255:255:255 nsteps=255

straight from gis.m, just picked the map and got this:

Sorry, <bgcolor> is not a valid parameter

if I try in the CLI, without the bgcolor option, I get this:
ERROR: [|]: No such color

It works fine in 6.2.2..

This is *definitely* caused by using a version of libgis which is
incompatible with the d.histogram executable, e.g. using 6.2.2 libgis
with 6.3-cvs d.histogram or vice-versa.

Check your $PATH and $LD_LIBRARY_PATH settings; also, try running "ldd
$GISBASE/bin/d.histogram".

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

Interesting, I use both version on my machine for a while and never
had any problem. 6.2 is from ubuntu packages and 6.3 from cvs.

Check your $PATH and $LD_LIBRARY_PATH settings; also, try running "ldd
$GISBASE/bin/d.histogram".

GRASS 6.3.cvs (kingston):~ > $PATH
bash: /usr/local/grass-6.3.cvs/bin:/usr/local/grass-6.3.cvs/scripts:/usr/local/gmt42/GMT4.2.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:
No such file or directory

GRASS 6.3.cvs (kingston):~ > $LD_LIBRARY_PATH
bash: /usr/local/grass-6.3.cvs/lib:/usr/lib: No such file or directory

GRASS 6.3.cvs (kingston):~ > ldd $GISBASE/bin/d.histogram
        linux-gate.so.1 => (0xffffe000)
        libgrass_display.so =>
/usr/local/grass-6.3.cvs/lib/libgrass_display.so (0xb7fd2000)
        libgrass_gis.so =>
/usr/local/grass-6.3.cvs/lib/libgrass_gis.so (0xb7f82000)
        libgrass_datetime.so =>
/usr/local/grass-6.3.cvs/lib/libgrass_datetime.so (0xb7f79000)
        libz.so.1 => /usr/lib/libz.so.1 (0xb7f64000)
        libgrass_raster.so =>
/usr/local/grass-6.3.cvs/lib/libgrass_raster.so (0xb7f5a000)
        libgrass_pngdriver.so =>
/usr/local/grass-6.3.cvs/lib/libgrass_pngdriver.so (0xb7f53000)
        libgrass_driver.so =>
/usr/local/grass-6.3.cvs/lib/libgrass_driver.so (0xb7f47000)
        libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb7ed6000)
        libpng12.so.0 => /usr/lib/libpng12.so.0 (0xb7eb3000)
        libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7e75000)
        libgrass_psdriver.so =>
/usr/local/grass-6.3.cvs/lib/libgrass_psdriver.so (0xb7e71000)
        libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7d27000)
        /lib/ld-linux.so.2 (0xb7fde000)
GRASS 6.3.cvs (kingston):~ >

Seems to me they all point to 6.3?

cheers

carlos

On 10/10/07, Glynn Clements <glynn@gclements.plus.com> wrote:

"Carlos \"Guâno\" Grohmann" wrote:

> > > > > Any changes to d.histogram in 6.3 cvs?
> > > > > just updated and now I can't get a histogram. always got an error msg:
> > > > >
> > > > > <bgcolor> is not valid
> > ..
> > > Yes, what I meant is that this wasn't a "major upgrade" was a clean
> > > system, fresh OS install, first time I downloaded from CVS in this
> > > machine.
> >
> > what were the command line parameters you used?
>
> for d.histogram?
>
> d.histogram --q map=a17_25@drumlims style=bar color=0:0:0
> bgcolor=255:255:255 nsteps=255
>
> straight from gis.m, just picked the map and got this:
>
>
> Sorry, <bgcolor> is not a valid parameter
>
>
> if I try in the CLI, without the bgcolor option, I get this:
> ERROR: [|]: No such color
>
>
> It works fine in 6.2.2..

This is *definitely* caused by using a version of libgis which is
incompatible with the d.histogram executable, e.g. using 6.2.2 libgis
with 6.3-cvs d.histogram or vice-versa.

Check your $PATH and $LD_LIBRARY_PATH settings; also, try running "ldd
$GISBASE/bin/d.histogram".

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

--
+-----------------------------------------------------------+
              Carlos Henrique Grohmann - Guano
  Visiting Researcher at Kingston University London - UK
  Geologist M.Sc - Doctorate Student at IGc-USP - Brazil
Linux User #89721 - carlos dot grohmann at gmail dot com
+-----------------------------------------------------------+
_________________
"Good morning, doctors. I have taken the liberty of removing Windows
95 from my hard drive."
--The winning entry in a "What were HAL's first words" contest judged
by 2001: A SPACE ODYSSEY creator Arthur C. Clarke

Can't stop the signal.

"Carlos \"Guâno\" Grohmann" wrote:

Interesting, I use both version on my machine for a while and never
had any problem. 6.2 is from ubuntu packages and 6.3 from cvs.

> Check your $PATH and $LD_LIBRARY_PATH settings; also, try running "ldd
> $GISBASE/bin/d.histogram".

GRASS 6.3.cvs (kingston):~ > $PATH
bash: /usr/local/grass-6.3.cvs/bin:/usr/local/grass-6.3.cvs/scripts:/usr/local/gmt42/GMT4.2.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:
No such file or directory

GRASS 6.3.cvs (kingston):~ > $LD_LIBRARY_PATH
bash: /usr/local/grass-6.3.cvs/lib:/usr/lib: No such file or directory

GRASS 6.3.cvs (kingston):~ > ldd $GISBASE/bin/d.histogram
        linux-gate.so.1 => (0xffffe000)
        libgrass_display.so => /usr/local/grass-6.3.cvs/lib/libgrass_display.so (0xb7fd2000)
        libgrass_gis.so => /usr/local/grass-6.3.cvs/lib/libgrass_gis.so (0xb7f82000)
        libgrass_datetime.so => /usr/local/grass-6.3.cvs/lib/libgrass_datetime.so (0xb7f79000)
        libz.so.1 => /usr/lib/libz.so.1 (0xb7f64000)
        libgrass_raster.so => /usr/local/grass-6.3.cvs/lib/libgrass_raster.so (0xb7f5a000)
        libgrass_pngdriver.so => /usr/local/grass-6.3.cvs/lib/libgrass_pngdriver.so (0xb7f53000)
        libgrass_driver.so => /usr/local/grass-6.3.cvs/lib/libgrass_driver.so (0xb7f47000)
        libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb7ed6000)
        libpng12.so.0 => /usr/lib/libpng12.so.0 (0xb7eb3000)
        libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7e75000)
        libgrass_psdriver.so => /usr/local/grass-6.3.cvs/lib/libgrass_psdriver.so (0xb7e71000)
        libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7d27000)
        /lib/ld-linux.so.2 (0xb7fde000)
GRASS 6.3.cvs (kingston):~ >

Seems to me they all point to 6.3?

Which suggests that d.histogram and libgis were compiled with
different versions of gis.h.

Either the code was updated from CVS and only partially re-compiled,
or some parts of GRASS are compiling against an installed version of
<grass/gis.h> rather than the copy in the source tree. Check the make
output to see which -I switches are being used for compiling
lib/gis/parser.c and display/d.histogram/main.c.

d.histogram has:

  bg_opt = G_define_standard_option(G_OPT_C_BG);

But it's behaviour (the "ERROR: [|]: No such color" message) is what
would occur if it had:

  bg_opt = G_define_standard_option(G_OPT_F_SEP);

(the default value for that option is "|").

If you run "d.histogram help", you will see something like:

  Usage:
   d.histogram [-nqC] map=name ... [fs=character]
  
   ...
  Parameters:
   ...
         fs Field separator
              default: |

in spite of the fact that d.histogram isn't supposed to have a fs=
option.

The cause is that different versions of gis.h will have different
values for G_OPT_C_BG. E.g. if d.histogram was compiled with revision
1.51 of gis.h and libgis with revision 1.52, then d.histogram will
have G_OPT_C_BG == 29 while libgis will have G_OPT_F_SEP == 29.

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

Blimey!
the good'ol trick of "make distclean"..
I guess I was really the lucky one that made a cvs update right at the
same time someone was updating something..

all working now

thanks all!

Carlos

On 10/10/07, Hamish <hamish_nospam@yahoo.com> wrote:

Carlos \ wrote:
> for d.histogram?
>
> d.histogram --q map=a17_25@drumlims style=bar color=0:0:0
> bgcolor=255:255:255 nsteps=255
>
> straight from gis.m, just picked the map and got this:
>
>
> Sorry, <bgcolor> is not a valid parameter
>
>
> if I try in the CLI, without the bgcolor option, I get this:
> ERROR: [|]: No such color
>
>
> It works fine in 6.2.2..

please try again with a full 'make distclean' and 'cvs update'.

Maybe you were unlucky and checked out the CVS at the exact moment when
someone else was half way making a change?

shrug,
Hamish

--
+-----------------------------------------------------------+
              Carlos Henrique Grohmann - Guano
  Visiting Researcher at Kingston University London - UK
  Geologist M.Sc - Doctorate Student at IGc-USP - Brazil
Linux User #89721 - carlos dot grohmann at gmail dot com
+-----------------------------------------------------------+
_________________
"Good morning, doctors. I have taken the liberty of removing Windows
95 from my hard drive."
--The winning entry in a "What were HAL's first words" contest judged
by 2001: A SPACE ODYSSEY creator Arthur C. Clarke

Can't stop the signal.