[GRASS-dev] ganim troubles in latest cvs

Anyone having trouble with gnanim? I just did a cvs update and rebuild today, and and getting the following error through the gui (OS X):

ERROR: <res=0.0> ** invalid input **
     while executing
"exec g.region res=$pnmres"
     (procedure "GmAnim::switch_res" line 38)
     invoked from within
"GmAnim::switch_res 1"
     (procedure "GmAnim::load_files" line 47)
     invoked from within
"GmAnim::load_files"
     (procedure "GmAnim::do_run" line 29)
     invoked from within
"GmAnim::do_run"
     (procedure "GmAnim::parse_viewmaps" line 79)
     invoked from within
"GmAnim::parse_viewmaps $viewlist"
     (procedure "GmAnim::create_viewlist" line 33)
     invoked from within
"GmAnim::create_viewlist 1"
     ("uplevel" body line 1)
     invoked from within
"uplevel \#0 $cmd"
     (procedure "Button::_release" line 18)
     invoked from within
"Button::_release .animmaps_win.buttons.a"
     (command bound to event)

Kirk

Kirk,

I haven't updated in a few days but don't have a problem. Have you run
g.region to see what your resolution is? The res=0.0 is the problem. It is
getting this value from running g.region previously in your mapset,
returning rows, columns, and res.

Michael

On 9/28/07 9:21 AM, "Kirk Wythers" <kwythers@umn.edu> wrote:

Anyone having trouble with gnanim? I just did a cvs update and
rebuild today, and and getting the following error through the gui
(OS X):

ERROR: <res=0.0> ** invalid input **
ERROR: <res=0.0> ** invalid input **
     while executing
"exec g.region res=$pnmres"
     (procedure "GmAnim::switch_res" line 38)
     invoked from within
"GmAnim::switch_res 1"
     (procedure "GmAnim::load_files" line 47)
     invoked from within
"GmAnim::load_files"
     (procedure "GmAnim::do_run" line 29)
     invoked from within
"GmAnim::do_run"
     (procedure "GmAnim::parse_viewmaps" line 79)
     invoked from within
"GmAnim::parse_viewmaps $viewlist"
     (procedure "GmAnim::create_viewlist" line 33)
     invoked from within
"GmAnim::create_viewlist 1"
     ("uplevel" body line 1)
     invoked from within
"uplevel \#0 $cmd"
     (procedure "Button::_release" line 18)
     invoked from within
"Button::_release .animmaps_win.buttons.a"
     (command bound to event)

Kirk

__________________________________________
Michael Barton, Professor of Anthropology
Director of Graduate Studies
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

Michael Barton wrote:

I haven't updated in a few days but don't have a problem. Have you run
g.region to see what your resolution is? The res=0.0 is the problem. It is
getting this value from running g.region previously in your mapset,
returning rows, columns, and res.

GmAnim::main has:

    regexp {nsres= *([0-9]+)} $region dummy oldres1
    regexp {ewres= *([0-9]+)} $region dummy oldres2

This isn't going to work if your resolution is less than one unit,
e.g. lat/lon regions.

The regexp needs to allow for a decimal point.

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

On Sep 30, 2007, at 11:53 AM, Glynn Clements wrote:

Michael Barton wrote:

I haven't updated in a few days but don't have a problem. Have you run
g.region to see what your resolution is? The res=0.0 is the problem. It is
getting this value from running g.region previously in your mapset,
returning rows, columns, and res.

GmAnim::main has:

    regexp {nsres= *([0-9]+)} $region dummy oldres1
    regexp {ewres= *([0-9]+)} $region dummy oldres2

This isn't going to work if your resolution is less than one unit,
e.g. lat/lon regions.

The regexp needs to allow for a decimal point.

It is odd because on my G5, grass63 (but last updated a month or two ago), gmanim runs fine with the mapset in question. However, on my macbook pro (intel) and newly updated, the same mapset throws the error.

The output from g.region is:

GRASS 6.3.cvs (global_30s):~ > g.region -p
projection: 3 (Latitude-Longitude)
zone: 0
datum: ** unknown (default: WGS84) **
ellipsoid: sphere
north: 90N
south: 90S
west: 180W
east: 180E
nsres: 0:05
ewres: 0:05
rows: 2160
cols: 4320
cells: 9331200

So I think Glynn is right (looks like the resolution is less than one unit. But.. why would it work on my G5?

Kirk

Glynn,

I am really bad at regexp. Can you suggest how to redo this so as to permit
decimals? I'm pretty sure that it would fix a problem reported by Hamish a
few weeks back that was baffling. I'm currently on the road and cannot
commit to the CVS, but could do so when I get back if need be.

Michael

On 9/30/07 9:53 AM, "Glynn Clements" <glynn@gclements.plus.com> wrote:

Michael Barton wrote:

I haven't updated in a few days but don't have a problem. Have you run
g.region to see what your resolution is? The res=0.0 is the problem. It is
getting this value from running g.region previously in your mapset,
returning rows, columns, and res.

GmAnim::main has:

    regexp {nsres= *([0-9]+)} $region dummy oldres1
    regexp {ewres= *([0-9]+)} $region dummy oldres2

This isn't going to work if your resolution is less than one unit,
e.g. lat/lon regions.

The regexp needs to allow for a decimal point.

__________________________________________
Michael Barton, Professor of Anthropology
Director of Graduate Studies
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

Well, after asking for help, I figured out how to this without the dread
regexp ;-). This might even be a bit better routine.

Anyway, I can't commit this because I'm out of town, but if anyone wants to
try it, you need to change lines in procedure GmAnim::main (module
animate.tcl). Replace the commented lines with the uncommented lines below.

    foreach line $reglist {
        set line [string trim $line]
        set key [lindex [split $line "="] 0]
        switch $key {
            nsres {set oldres1 [lindex [split $line "="] 1]}
            ewres {set oldres2 [lindex [split $line "="] 1]}
            rows {set vrows [lindex [split $line "="] 1]}
            cols {set vcols [lindex [split $line "="] 1]}
        }
    
    }
    
# regexp {nsres= *([0-9]+)} $region dummy oldres1
# regexp {ewres= *([0-9]+)} $region dummy oldres2
# regexp {rows= *([0-9]+)} $region dummy vrows
# regexp {cols= *([0-9]+)} $region dummy vcols
    
Michael

On 9/30/07 9:53 AM, "Glynn Clements" <glynn@gclements.plus.com> wrote:

Michael Barton wrote:

I haven't updated in a few days but don't have a problem. Have you run
g.region to see what your resolution is? The res=0.0 is the problem. It is
getting this value from running g.region previously in your mapset,
returning rows, columns, and res.

GmAnim::main has:

    regexp {nsres= *([0-9]+)} $region dummy oldres1
    regexp {ewres= *([0-9]+)} $region dummy oldres2

This isn't going to work if your resolution is less than one unit,
e.g. lat/lon regions.

The regexp needs to allow for a decimal point.

__________________________________________
Michael Barton, Professor of Anthropology
Director of Graduate Studies
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

On Sep 30, 2007, at 11:23 PM, Michael Barton wrote:

Well, after asking for help, I figured out how to this without the dread
regexp ;-). This might even be a bit better routine.

Anyway, I can't commit this because I'm out of town, but if anyone wants to
try it, you need to change lines in procedure GmAnim::main (module
animate.tcl). Replace the commented lines with the uncommented lines below.

    foreach line $reglist {
        set line [string trim $line]
        set key [lindex [split $line "="] 0]
        switch $key {
            nsres {set oldres1 [lindex [split $line "="] 1]}
            ewres {set oldres2 [lindex [split $line "="] 1]}
            rows {set vrows [lindex [split $line "="] 1]}
            cols {set vcols [lindex [split $line "="] 1]}
        }

    }

# regexp {nsres= *([0-9]+)} $region dummy oldres1
# regexp {ewres= *([0-9]+)} $region dummy oldres2
# regexp {rows= *([0-9]+)} $region dummy vrows
# regexp {cols= *([0-9]+)} $region dummy vcols

Michael,

Thanks for the email. I made the following changes but ended up with a new error. I might have altered the wrong file. Here is what I tried.

From the file ~/src_intel/grass-6.3.cvs/gui/tcltk/gis.m/animate.tcl

     # set initial canvas geometry to match region
     if {[catch {set region [exec g.region -ugp]} error]} {
         Gm::errmsg $error
     }

    # regexp {nsres= *([0-9]+)} $region dummy oldres1
    # regexp {ewres= *([0-9]+)} $region dummy oldres2
    # regexp {rows= *([0-9]+)} $region dummy vrows
    # regexp {cols= *([0-9]+)} $region dummy vcols

     foreach line $reglist {
         set line [string trim $line]
         set key [lindex [split $line "="] 0]
         switch $key {
             nsres {set oldres1 [lindex [split $line "="] 1]}
             ewres {set oldres2 [lindex [split $line "="] 1]}
             rows {set vrows [lindex [split $line "="] 1]}
             cols {set vcols [lindex [split $line "="] 1]}
         }

     }

New error when startring up GmAnim.

can't read "reglist": no such variable
     while executing
"foreach line $reglist {
         set line [string trim $line]
         set key [lindex [split $line "="] 0]
         switch $key {
             nsres {..."
     (procedure "GmAnim::main" line 28)
     invoked from within
"GmAnim::main"
     ("uplevel" body line 1)
     invoked from within
"uplevel \#0 $cmd"
     (procedure "Button::_release" line 18)
     invoked from within
"Button::_release .mainframe.topf.tb1.bbox4.b0"
     (command bound to event)

Perhaps this is not what you intended?

Kirk

Kirk Wythers wrote:

On Sep 30, 2007, at 11:23 PM, Michael Barton wrote:

> Well, after asking for help, I figured out how to this without the
> dread
> regexp ;-). This might even be a bit better routine.
>
> Anyway, I can't commit this because I'm out of town, but if anyone
> wants to
> try it, you need to change lines in procedure GmAnim::main (module
> animate.tcl). Replace the commented lines with the uncommented
> lines below.
>
> foreach line $reglist {
> set line [string trim $line]
> set key [lindex [split $line "="] 0]
> switch $key {
> nsres {set oldres1 [lindex [split $line "="] 1]}
> ewres {set oldres2 [lindex [split $line "="] 1]}
> rows {set vrows [lindex [split $line "="] 1]}
> cols {set vcols [lindex [split $line "="] 1]}
> }
>
> }
>
> # regexp {nsres= *([0-9]+)} $region dummy oldres1
> # regexp {ewres= *([0-9]+)} $region dummy oldres2
> # regexp {rows= *([0-9]+)} $region dummy vrows
> # regexp {cols= *([0-9]+)} $region dummy vcols
>
>

Michael,

Thanks for the email. I made the following changes but ended up with
a new error.

Add:
  set reglist [split $region "\n"]

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

d.m.html not found, but no problem when make is done in /Users/Shared/grasssource/grass6/gui/tcltk/d.m
Model Name: iMac
Model Identifier: iMac5,1
Processor Name: Intel Core 2 Duo
Processor Speed: 2 GHz
Number Of Processors: 1
Total Number Of Cores: 2
L2 Cache (per processor): 4 MB
Memory: 2 GB
Bus Speed: 667 MHz
Boot ROM Version: IM51.0090.B09
SMC Version: 1.8f2

/usr/bin/install -c $tcl /Users/Shared/grasssource/grass6/dist.i686-apple-darwin8.10.1/etc/dm/ ;
done
chmod 755 /Users/Shared/grasssource/grass6/dist.i686-apple-darwin8.10.1/etc/dm/tksys.tcl
/usr/bin/install -c -m 755 d.m.tcl /Users/Shared/grasssource/grass6/dist.i686-apple-darwin8.10.1/etc/dm/d.m.tcl
mkdir -p /Users/Shared/grasssource/grass6/dist.i686-apple-darwin8.10.1/etc/dm/script
/usr/bin/install -c -m 755 script/. /Users/Shared/grasssource/grass6/dist.i686-apple-darwin8.10.1/etc/dm/script
make[3]: *** No rule to make target /Users/Shared/grasssource/grass6/dist.i686-apple-darwin8.10.1/docs/html/d.m.html', needed by html’. Stop.

On Oct 1, 2007, at 11:15 AM, Glynn Clements wrote:

Kirk Wythers wrote:

On Sep 30, 2007, at 11:23 PM, Michael Barton wrote:

Well, after asking for help, I figured out how to this without the
dread
regexp ;-). This might even be a bit better routine.

Anyway, I can't commit this because I'm out of town, but if anyone
wants to
try it, you need to change lines in procedure GmAnim::main (module
animate.tcl). Replace the commented lines with the uncommented
lines below.

    foreach line $reglist {
        set line [string trim $line]
        set key [lindex [split $line "="] 0]
        switch $key {
            nsres {set oldres1 [lindex [split $line "="] 1]}
            ewres {set oldres2 [lindex [split $line "="] 1]}
            rows {set vrows [lindex [split $line "="] 1]}
            cols {set vcols [lindex [split $line "="] 1]}
        }

    }

# regexp {nsres= *([0-9]+)} $region dummy oldres1
# regexp {ewres= *([0-9]+)} $region dummy oldres2
# regexp {rows= *([0-9]+)} $region dummy vrows
# regexp {cols= *([0-9]+)} $region dummy vcols

Add:
  set reglist [split $region "\n"]

In the foreach loop, like this?

foreach line $reglist {
  set reglist [split $region "\n"]
         set line [string trim $line]
         set key [lindex [split $line "="] 0]
         switch $key {
             nsres {set oldres1 [lindex [split $line "="] 1]}
             ewres {set oldres2 [lindex [split $line "="] 1]}
             rows {set vrows [lindex [split $line "="] 1]}
             cols {set vcols [lindex [split $line "="] 1]}
         }

     }

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

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

Kirk Wythers wrote:

>>> Well, after asking for help, I figured out how to this without the
>>> dread
>>> regexp ;-). This might even be a bit better routine.
>>>
>>> Anyway, I can't commit this because I'm out of town, but if anyone
>>> wants to
>>> try it, you need to change lines in procedure GmAnim::main (module
>>> animate.tcl). Replace the commented lines with the uncommented
>>> lines below.
>>>
>>> foreach line $reglist {
>>> set line [string trim $line]
>>> set key [lindex [split $line "="] 0]
>>> switch $key {
>>> nsres {set oldres1 [lindex [split $line "="] 1]}
>>> ewres {set oldres2 [lindex [split $line "="] 1]}
>>> rows {set vrows [lindex [split $line "="] 1]}
>>> cols {set vcols [lindex [split $line "="] 1]}
>>> }
>>>
>>> }
>>>
>>> # regexp {nsres= *([0-9]+)} $region dummy oldres1
>>> # regexp {ewres= *([0-9]+)} $region dummy oldres2
>>> # regexp {rows= *([0-9]+)} $region dummy vrows
>>> # regexp {cols= *([0-9]+)} $region dummy vcols

>
> Add:
> set reglist [split $region "\n"]

In the foreach loop, like this?

foreach line $reglist {
  set reglist [split $region "\n"]

No, before it:

  set reglist [split $region "\n"]
  foreach line $reglist {
    ...

Or just omit the variable altogether:

  foreach line [split $region "\n"] {
    ...

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

Agustin Diez Castillo wrote:

d.m.html not found, but no problem when make is done in
/Users/Shared/grasssource/grass6/gui/tcltk/d.m

Can you please try the following:

1. Delete the files:

  dist.i686-apple-darwin8.10.1/docs/html/d.m.html
  dist.i686-apple-darwin8.10.1/scripts/d.m
  gui/tcltk/d.m/d.m.tmp.html

2. Run "make -C gui/tcltk/d.m"

3. Report any errors, and whether any of the files mentioned in #1
above exist.

4. Repeat steps 2 and 3.

This problem only occurs on certain systems (possibly depending upon
the version of "make"). I can't reproduce it here. Also, it has only
been reported with regard to d.m and gis.m, although exactly the same
rules are used for other scripts.

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

On Oct 1, 2007, at 8:38 PM, Glynn Clements wrote:

Can you please try the following:

  1. Delete the files:

dist.i686-apple-darwin8.10.1/docs/html/d.m.html

it does exist

dist.i686-apple-darwin8.10.1/scripts/d.m

it does exist

gui/tcltk/d.m/d.m.tmp.html

it doesn’t exist

  1. Run “make -C gui/tcltk/d.m”
  1. Report any errors, and whether any of the files mentioned in #1

above exist.

No errors
make -C gui/tcltk/d.m
if [ ! -d /Users/Shared/grasssource/grass6/dist.i686-apple-darwin8.10.1/scripts ]; then mkdir -p /Users/Shared/grasssource/grass6/dist.i686-apple-darwin8.10.1/scripts; fi
/usr/bin/install -c d.m /Users/Shared/grasssource/grass6/dist.i686-apple-darwin8.10.1/scripts/d.m
GISRC=/Users/Shared/grasssource/grass6/dist.i686-apple-darwin8.10.1/demolocation/.grassrc63 GISBASE=/Users/Shared/grasssource/grass6/dist.i686-apple-darwin8.10.1 PATH=“/Users/Shared/grasssource/grass6/dist.i686-apple-darwin8.10.1/bin:$PATH” DYLD_LIBRARY_PATH=“/Users/Shared/grasssource/grass6/dist.i686-apple-darwin8.10.1/bin:/Users/Shared/grasssource/grass6/dist.i686-apple-darwin8.10.1/lib:” LC_ALL=C /Users/Shared/grasssource/grass6/dist.i686-apple-darwin8.10.1/scripts/d.m --html-description < /dev/null | grep -v ‘|’ > d.m.tmp.html ; true
…/…/…/tools/mkhtml.sh d.m ; mkdir -p /Users/Shared/grasssource/grass6/dist.i686-apple-darwin8.10.1/docs/html ; /usr/bin/install -c -m 644 d.m.tmp.html /Users/Shared/grasssource/grass6/dist.i686-apple-darwin8.10.1/docs/html/d.m.html ; for file in *.png *.jpg ; do head -n 1 $file | grep ‘^#!’ > /dev/null ; if [ $? -ne 0 ] ; then /usr/bin/install -c -m 644 $file /Users/Shared/grasssource/grass6/dist.i686-apple-darwin8.10.1/docs/html ; fi done 2> /dev/null ; true
rm d.m.tmp.html

  1. Repeat steps 2 and 3.

No problem the second time

This problem only occurs on certain systems (possibly depending upon

the version of “make”). I can’t reproduce it here. Also, it has only

been reported with regard to d.m and gis.m, although exactly the same

rules are used for other scripts.

This has been the first and only time it occurs. I did “make distclean” before ./configure

Same problem here. After distclean, I get the no target error. dist/scripts/d.m is created, but not dist/docs/html/d.m.html. Immediately running make -C gui/tcltk/d.m again succeeds and installs d.m.html.

make clean, then make - back to the error.

PS. Augustin, I found and fixed a macosx build problem (a couple hours ago) from Glynn's parallel build updates. You should do a cvs update or you won't get a OSX app.

On Oct 1, 2007, at 2:07 PM, Agustin Diez Castillo wrote:

On Oct 1, 2007, at 8:38 PM, Glynn Clements wrote:

Can you please try the following:

1. Delete the files:

  dist.i686-apple-darwin8.10.1/docs/html/d.m.html

it does exist

  dist.i686-apple-darwin8.10.1/scripts/d.m

it does exist

  gui/tcltk/d.m/d.m.tmp.html

it doesn't exist

2. Run "make -C gui/tcltk/d.m"

3. Report any errors, and whether any of the files mentioned in #1
above exist.

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

Theory of the Universe

There is a theory which states that if ever anyone discovers exactly what the universe is for and why it is here, it will instantly disappear and be replaced by something even more bizarrely inexplicable. There is another theory which states that this has already happened.

-Hitchhiker's Guide to the Galaxy 2nd season intro

Kirk,

You seem to be missing a line (maybe my fault). Note the line defining
reglist.

Michael

    set reglist [split $region "\n"]
    
    foreach line $reglist {
        set line [string trim $line]
        set key [lindex [split $line "="] 0]
        switch $key {
            nsres {set oldres1 [lindex [split $line "="] 1]}
            ewres {set oldres2 [lindex [split $line "="] 1]}
            rows {set vrows [lindex [split $line "="] 1]}
            cols {set vcols [lindex [split $line "="] 1]}
        }
    
    }

On 10/1/07 6:36 AM, "Kirk Wythers" <kwythers@umn.edu> wrote:

On Sep 30, 2007, at 11:23 PM, Michael Barton wrote:

Well, after asking for help, I figured out how to this without the
dread
regexp ;-). This might even be a bit better routine.

Anyway, I can't commit this because I'm out of town, but if anyone
wants to
try it, you need to change lines in procedure GmAnim::main (module
animate.tcl). Replace the commented lines with the uncommented
lines below.

    foreach line $reglist {
        set line [string trim $line]
        set key [lindex [split $line "="] 0]
        switch $key {
            nsres {set oldres1 [lindex [split $line "="] 1]}
            ewres {set oldres2 [lindex [split $line "="] 1]}
            rows {set vrows [lindex [split $line "="] 1]}
            cols {set vcols [lindex [split $line "="] 1]}
        }

    }

# regexp {nsres= *([0-9]+)} $region dummy oldres1
# regexp {ewres= *([0-9]+)} $region dummy oldres2
# regexp {rows= *([0-9]+)} $region dummy vrows
# regexp {cols= *([0-9]+)} $region dummy vcols

Michael,

Thanks for the email. I made the following changes but ended up with
a new error. I might have altered the wrong file. Here is what I tried.

From the file ~/src_intel/grass-6.3.cvs/gui/tcltk/gis.m/animate.tcl

     # set initial canvas geometry to match region
     if {[catch {set region [exec g.region -ugp]} error]} {
         Gm::errmsg $error
     }

    # regexp {nsres= *([0-9]+)} $region dummy oldres1
    # regexp {ewres= *([0-9]+)} $region dummy oldres2
    # regexp {rows= *([0-9]+)} $region dummy vrows
    # regexp {cols= *([0-9]+)} $region dummy vcols

     foreach line $reglist {
         set line [string trim $line]
         set key [lindex [split $line "="] 0]
         switch $key {
             nsres {set oldres1 [lindex [split $line "="] 1]}
             ewres {set oldres2 [lindex [split $line "="] 1]}
             rows {set vrows [lindex [split $line "="] 1]}
             cols {set vcols [lindex [split $line "="] 1]}
         }

     }

New error when startring up GmAnim.

can't read "reglist": no such variable
can't read "reglist": no such variable
     while executing
"foreach line $reglist {
         set line [string trim $line]
         set key [lindex [split $line "="] 0]
         switch $key {
             nsres {..."
     (procedure "GmAnim::main" line 28)
     invoked from within
"GmAnim::main"
     ("uplevel" body line 1)
     invoked from within
"uplevel \#0 $cmd"
     (procedure "Button::_release" line 18)
     invoked from within
"Button::_release .mainframe.topf.tb1.bbox4.b0"
     (command bound to event)

Perhaps this is not what you intended?

Kirk

__________________________________________
Michael Barton, Professor of Anthropology
Director of Graduate Studies
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

I've had this problem for ages. I just cd to the d.m directory and type
make. Then all is well. A bit annoying, but not a problem. I probably
shouldn't even bother with this.

Michael

On 10/1/07 1:53 PM, "William Kyngesburye" <woklist@kyngchaos.com> wrote:

Same problem here. After distclean, I get the no target error. dist/
scripts/d.m is created, but not dist/docs/html/d.m.html. Immediately
running make -C gui/tcltk/d.m again succeeds and installs d.m.html.

make clean, then make - back to the error.

PS. Augustin, I found and fixed a macosx build problem (a couple
hours ago) from Glynn's parallel build updates. You should do a cvs
update or you won't get a OSX app.

On Oct 1, 2007, at 2:07 PM, Agustin Diez Castillo wrote:

On Oct 1, 2007, at 8:38 PM, Glynn Clements wrote:

Can you please try the following:

1. Delete the files:

dist.i686-apple-darwin8.10.1/docs/html/d.m.html

it does exist

dist.i686-apple-darwin8.10.1/scripts/d.m

it does exist

gui/tcltk/d.m/d.m.tmp.html

it doesn't exist

2. Run "make -C gui/tcltk/d.m"

3. Report any errors, and whether any of the files mentioned in #1
above exist.

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

Theory of the Universe

There is a theory which states that if ever anyone discovers exactly
what the universe is for and why it is here, it will instantly
disappear and be replaced by something even more bizarrely
inexplicable. There is another theory which states that this has
already happened.

-Hitchhiker's Guide to the Galaxy 2nd season intro

__________________________________________
Michael Barton, Professor of Anthropology
Director of Graduate Studies
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

Michael Barton wrote:

I've had this problem for ages. I just cd to the d.m directory and type
make. Then all is well. A bit annoying, but not a problem. I probably
shouldn't even bother with this.

Are you saying that the problem with d.m.html existed before this
weekend?

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

Agustin Diez Castillo wrote:

> Can you please try the following:
>
> 1. Delete the files:
>
> dist.i686-apple-darwin8.10.1/docs/html/d.m.html
it does exist
> dist.i686-apple-darwin8.10.1/scripts/d.m
it does exist
> gui/tcltk/d.m/d.m.tmp.html
it doesn't exist
>
> 2. Run "make -C gui/tcltk/d.m"
>
> 3. Report any errors, and whether any of the files mentioned in #1
> above exist.
No errors
make -C gui/tcltk/d.m
if [ ! -d /Users/Shared/grasssource/grass6/dist.i686-apple-
darwin8.10.1/scripts ]; then mkdir -p /Users/Shared/grasssource/
grass6/dist.i686-apple-darwin8.10.1/scripts; fi
/usr/bin/install -c d.m /Users/Shared/grasssource/grass6/dist.i686-
apple-darwin8.10.1/scripts/d.m
GISRC=/Users/Shared/grasssource/grass6/dist.i686-apple-darwin8.10.1/
demolocation/.grassrc63 GISBASE=/Users/Shared/grasssource/grass6/
dist.i686-apple-darwin8.10.1 PATH="/Users/Shared/grasssource/grass6/
dist.i686-apple-darwin8.10.1/bin:$PATH" DYLD_LIBRARY_PATH="/Users/
Shared/grasssource/grass6/dist.i686-apple-darwin8.10.1/bin:/Users/
Shared/grasssource/grass6/dist.i686-apple-darwin8.10.1/lib:"
LC_ALL=C /Users/Shared/grasssource/grass6/dist.i686-apple-
darwin8.10.1/scripts/d.m --html-description < /dev/null | grep -v '</
body>\|</html>' > d.m.tmp.html ; true
../../../tools/mkhtml.sh d.m ; mkdir -p /Users/Shared/grasssource/
grass6/dist.i686-apple-darwin8.10.1/docs/html ; /usr/bin/install -c -
m 644 d.m.tmp.html /Users/Shared/grasssource/grass6/dist.i686-apple-
darwin8.10.1/docs/html/d.m.html ; for file in *.png *.jpg ; do head -
n 1 $file | grep '^#!' > /dev/null ; if [ $? -ne 0 ] ; then /usr/bin/
install -c -m 644 $file /Users/Shared/grasssource/grass6/dist.i686-
apple-darwin8.10.1/docs/html ; fi done 2> /dev/null ; true
rm d.m.tmp.html

>
> 4. Repeat steps 2 and 3.
No problem the second time
>
> This problem only occurs on certain systems (possibly depending upon
> the version of "make"). I can't reproduce it here. Also, it has only
> been reported with regard to d.m and gis.m, although exactly the same
> rules are used for other scripts.

This has been the first and only time it occurs. I did "make
distclean" before ./configure

Can you clarify? Are you saying that even after "make distclean" and
"configure", the problem with d.m.html doesn't always occur?

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

I guess to be honest, I don't remember if it was d.m.html or another piece.
But I always get an error compiling d.m. I have to go to the d.m directory
and do a make there. It didn't seem worth bothering anyone about since we're
phasing out d.m anyway.

Michael

On 10/2/07 1:52 AM, "Glynn Clements" <glynn@gclements.plus.com> wrote:

Michael Barton wrote:

I've had this problem for ages. I just cd to the d.m directory and type
make. Then all is well. A bit annoying, but not a problem. I probably
shouldn't even bother with this.

Are you saying that the problem with d.m.html existed before this
weekend?

__________________________________________
Michael Barton, Professor of Anthropology
Director of Graduate Studies
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

On Oct 2, 2007, at 6:04 AM, Michael Barton wrote:

I guess to be honest, I don't remember if it was d.m.html or another piece.
But I always get an error compiling d.m. I have to go to the d.m directory
and do a make there. It didn't seem worth bothering anyone about since we're
phasing out d.m anyway.

Michael

I can confirm that the d.m error has been there for 7-10 days at least. .

Kirk

On 10/2/07 1:52 AM, "Glynn Clements" <glynn@gclements.plus.com> wrote:

Michael Barton wrote:

I've had this problem for ages. I just cd to the d.m directory and type
make. Then all is well. A bit annoying, but not a problem. I probably
shouldn't even bother with this.

Are you saying that the problem with d.m.html existed before this
weekend?

__________________________________________
Michael Barton, Professor of Anthropology
Director of Graduate Studies
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

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