[GRASS-dev] [GRASS GIS] #2942: Startup after Novice Install

2016-02-28 Thread GRASS GIS
#2942: Startup after Novice Install
---+-
 Reporter:  pactriglo  |  Owner:  grass-dev@…
 Type:  defect | Status:  new
 Priority:  normal |  Milestone:  7.0.4
Component:  Startup|Version:  7.0.3
 Keywords: |CPU:  OSX/Intel
 Platform:  MacOSX |
---+-
 Last login: Sun Feb 28 19:57:43 on ttys000
 BenjamiillosMBP:~ benjaminpezzillo$
 '/Applications/GRASS-7.0.app/Contents/MacOS/grass.sh'; exit
 Rebuilding Addon HTML manual pages index...
 Rebuilding Addon menu...
 Python 2.7.10 found.
 Starting GRASS GIS...
 dyld: Library not loaded: /usr/local/lib/libintl.8.dylib
   Referenced from:
 /Applications/GRASS-7.0.app/Contents/MacOS/lib/libgrass_gis.7.0.3.dylib
   Reason: image not found
 Traceback (most recent call last):
   File
 "/Applications/GRASS-7.0.app/Contents/MacOS/gui/wxpython/gis_set.py", line
 31, in 
 from core import globalvar
   File
 "/Applications/GRASS-7.0.app/Contents/MacOS/gui/wxpython/core/globalvar.py",
 line 29, in 
 from core.debug import Debug
   File
 "/Applications/GRASS-7.0.app/Contents/MacOS/gui/wxpython/core/debug.py",
 line 66, in 
 Debug = DebugMsg()
   File
 "/Applications/GRASS-7.0.app/Contents/MacOS/gui/wxpython/core/debug.py",
 line 37, in __init__
 self.SetLevel()
   File
 "/Applications/GRASS-7.0.app/Contents/MacOS/gui/wxpython/core/debug.py",
 line 42, in SetLevel
 self.debuglevel = int(grass.gisenv().get('WX_DEBUG', 0))
   File
 "/Applications/GRASS-7.0.app/Contents/MacOS/etc/python/grass/script/core.py",
 line 934, in gisenv
 s = read_command("g.gisenv", flags='n')
   File
 "/Applications/GRASS-7.0.app/Contents/MacOS/etc/python/grass/script/core.py",
 line 442, in read_command
 process = pipe_command(*args, **kwargs)
   File
 "/Applications/GRASS-7.0.app/Contents/MacOS/etc/python/grass/script/core.py",
 line 417, in pipe_command
 return start_command(*args, **kwargs)
   File
 "/Applications/GRASS-7.0.app/Contents/MacOS/etc/python/grass/script/core.py",
 line 355, in start_command
 if debug_level() > 0:
   File
 "/Applications/GRASS-7.0.app/Contents/MacOS/etc/python/grass/script/core.py",
 line 1517, in debug_level
 _debug_level = int(gisenv().get('DEBUG', 0))
   File
 "/Applications/GRASS-7.0.app/Contents/MacOS/etc/python/grass/script/core.py",
 line 934, in gisenv
 s = read_command("g.gisenv", flags='n')
   File
 "/Applications/GRASS-7.0.app/Contents/MacOS/etc/python/grass/script/core.py",
 line 445, in read_command
 return handle_errors(returncode, stdout, args, kwargs)
   File
 "/Applications/GRASS-7.0.app/Contents/MacOS/etc/python/grass/script/core.py",
 line 312, in handle_errors
 returncode=returncode)
 grass.exceptions.CalledModuleError: Module run None ['g.gisenv', '-n']
 ended with error
 Process ended with non-zero return code -5. See errors in the (error)
 output.
 Error in GUI startup. If necessary, please report this error to the GRASS
 developers.
 Switching to text mode now.

 Hit RETURN to continue...

 Traceback (most recent call last):
   File "/Applications/GRASS-7.0.app/Contents/MacOS/grass70", line 1438, in
 
 set_data()
   File "/Applications/GRASS-7.0.app/Contents/MacOS/grass70", line 681, in
 set_data
 gui_startup(grass_gui == 'gtext')
   File "/Applications/GRASS-7.0.app/Contents/MacOS/grass70", line 703, in
 gui_startup
 os.execlp(cmd_name, "-text")
   File
 "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py",
 line 329, in execlp
 execvp(file, args)
   File
 "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py",
 line 346, in execvp
 _execvpe(file, args)
   File
 "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py",
 line 382, in _execvpe
 func(fullname, *argrest)
 OSError: [Errno 2] No such file or directory
 logout
 Saving session...
 ...copying shared history...
 ...saving history...truncating history files...
 ...completed.

 [Process completed]

--
Ticket URL: 
GRASS GIS 

___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] [GRASS GIS] #2940: Compiling Grass-7.0.3 under FreeBSD: tplot directory (with log)

2016-02-28 Thread GRASS GIS
#2940: Compiling Grass-7.0.3 under FreeBSD: tplot directory (with log)
--+-
  Reporter:  pieside  |  Owner:  grass-dev@…
  Type:  defect   | Status:  new
  Priority:  normal   |  Milestone:  7.0.4
 Component:  Default  |Version:  7.0.3
Resolution:   |   Keywords:  FreeBSD
   CPU:  x86-64   |   Platform:  Other Unix
--+-

Comment (by pieside):

 The problems seems to be an old friend:

 {{{
 /home/pierre/tmp/grass7/grass-7.0.3/dist.x86_64-unknown-
 freebsd10.2/lib/libgrass_gis.7.0.3.so: undefined reference to `libiconv'
 /home/pierre/tmp/grass7/grass-7.0.3/dist.x86_64-unknown-
 freebsd10.2/lib/libgrass_gis.7.0.3.so: undefined reference to
 `libiconv_open'
 /home/pierre/tmp/grass7/grass-7.0.3/dist.x86_64-unknown-
 freebsd10.2/lib/libgrass_gis.7.0.3.so: undefined reference to
 `libiconv_close'
 }}}

 As written in the Porter's Handbook ([https://www.freebsd.org/doc/en/books
 /porters-handbook/index.html]), there are two versions of libiconv in
 FreeBSD: "FreeBSD  10-CURRENT and newer versions have a native iconv in
 the operating system (in libc). On earlier versions, converters/libiconv
 was used as a dependency". So we have a System iconv and Libiconv iconv
 (/usr/local/include/iconv.h).

 One way to overcome this is to deinstall and remove
 /usr/local/include/iconv.h. But some really important softwares depend on
 it: "Despite the default implementation of iconv enabled by default in
 libc, a few ports (like [http://www.freshports.org/devel/glib20/)] depend
 on converters/libiconv again due to missing functionality in the base
 iconv implementation" (written in the /usr/ports/UPDATING file).

 Another solution is suggested in this post (http://osdir.com/ml/grass-
 development-gis/2014-12/msg00435.html). I did add "ICONVLIB = -liconv" in
 include/Make/Platform.make but it doesn't compile for me.

 What all this evoke to you?

--
Ticket URL: 
GRASS GIS 

___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] [GRASS GIS] #2940: Compiling Grass-7.0.3 under FreeBSD: tplot directory (with log)

2016-02-28 Thread GRASS GIS
#2940: Compiling Grass-7.0.3 under FreeBSD: tplot directory (with log)
--+-
  Reporter:  pieside  |  Owner:  grass-dev@…
  Type:  defect   | Status:  new
  Priority:  normal   |  Milestone:  7.0.4
 Component:  Default  |Version:  7.0.3
Resolution:   |   Keywords:  FreeBSD
   CPU:  x86-64   |   Platform:  Other Unix
--+-

Comment (by neteler):

 From the log I see that the first error came up in

 {{{
 /home/pierre/tmp/grass7/grass-7.0.3/lib/vector/diglib
 }}}

 Please run

 {{{
 cd /home/pierre/tmp/grass7/grass-7.0.3/lib/vector/diglib
 make
 }}}

 to see what's missing. Likewise for the others. Note that later errors may
 result from previous ones since some libraries such as above are a
 dependency for subsequent code.

--
Ticket URL: 
GRASS GIS 

___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

[GRASS-dev] [GRASS GIS] #2941: r.sun: wrong sign in equation of time

2016-02-28 Thread GRASS GIS
#2941: r.sun: wrong sign in equation of time
-+-
 Reporter:  tomhuld  |  Owner:  grass-dev@…
 Type:  defect   | Status:  new
 Priority:  normal   |  Milestone:  7.0.4
Component:  Default  |Version:  unspecified
 Keywords:   |CPU:  Unspecified
 Platform:  Unspecified  |
-+-
 Bug report ticket #2876 by fabriziosossan reported a problem with the
 equation of time in r.sun, whereby the calculation of the solar time from
 the clock (civil) time is wrong. The problem was fixed with a patch for
 GRASS 6, but as far as I know there the fix was not applied to GRASS 7.

 I would like to suggest the following patch for r.sun/main.c. Since this
 is my first patch for GRASS, apologies if I'm doing it worng.

 --- main.c  (revision 67790)
 +++ main.c  (working copy)
 @@ -1766,7 +1766,7 @@
  * "local clock time". */
 dayRad = 2. * M_PI * day / 365.25;
 locTimeOffset =
 -   -0.128 * sin(dayRad - 0.04887) - 0.165 * sin(2 * dayRad +
 +   +0.128 * sin(dayRad - 0.04887) + 0.165 * sin(2 * dayRad +
  0.34383);

 /* Time offset due to timezone as input by user */

--
Ticket URL: 
GRASS GIS 

___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] Compiling Grass-7.0.3 under FreeBSD: tplot directory

2016-02-28 Thread 694m
Dear Maris,

Thank you for your answer. Here is the ticket in trac:
https://trac.osgeo.org/grass/ticket/2940.

Pierre.



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Compiling-Grass-7-0-3-under-FreeBSD-tplot-directory-tp5253192p5253210.html
Sent from the Grass - Dev mailing list archive at Nabble.com.
___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

[GRASS-dev] [GRASS GIS] #2940: Compiling Grass-7.0.3 under FreeBSD: tplot directory (with log)

2016-02-28 Thread GRASS GIS
#2940: Compiling Grass-7.0.3 under FreeBSD: tplot directory (with log)
+-
 Reporter:  pieside |  Owner:  grass-dev@…
 Type:  defect  | Status:  new
 Priority:  normal  |  Milestone:  7.0.4
Component:  Default |Version:  7.0.3
 Keywords:  FreeBSD |CPU:  x86-64
 Platform:  Other Unix  |
+-
 Dear all,

 I'm trying to compile Grass-7.0.3 under FreeBSD (with Zsh) and the
 compilation stops in

 include/Make/GuiScript.make:37: recipe for target 'g.gui.tplot.tmp.html'
 failed
 include/Make/GuiScript.make:23: recipe for target 'guiscript' failed

 Here you can find the log created by running
 {{{
 cd grass-7.0.3/gui/wxpython/tplot &&
 make
 }}}


 {{{
 gmake /home/pierre/tmp/grass7/grass-7.0.3/dist.x86_64-unknown-
 freebsd10.2/docs/html/g.gui.tplot.html
 gmake[1]: Entering directory
 '/home/pierre/tmp/grass7/grass-7.0.3/gui/wxpython/tplot'
 GISRC=/home/pierre/tmp/grass7/grass-7.0.3/dist.x86_64-unknown-
 freebsd10.2/demolocation/.grassrc70
 GISBASE=/home/pierre/tmp/grass7/grass-7.0.3/dist.x86_64-unknown-
 freebsd10.2 PATH="/home/pierre/tmp/grass7/grass-7.0.3/dist.x86_64-unknown-
 freebsd10.2/bin:/home/pierre/tmp/grass7/grass-7.0.3/dist.x86_64-unknown-
 freebsd10.2/bin:/home/pierre/tmp/grass7/grass-7.0.3/dist.x86_64-unknown-
 freebsd10.2/scripts:$PATH"
 PYTHONPATH="/home/pierre/tmp/grass7/grass-7.0.3/dist.x86_64-unknown-
 freebsd10.2/etc/python:/home/pierre/tmp/grass7/grass-7.0.3/dist.x86_64
 -unknown-freebsd10.2/gui/wxpython:$PYTHONPATH"
 LD_LIBRARY_PATH="/home/pierre/tmp/grass7/grass-7.0.3/dist.x86_64-unknown-
 freebsd10.2/bin:/home/pierre/tmp/grass7/grass-7.0.3/dist.x86_64-unknown-
 freebsd10.2/bin:/home/pierre/tmp/grass7/grass-7.0.3/dist.x86_64-unknown-
 freebsd10.2/scripts:/home/pierre/tmp/grass7/grass-7.0.3/dist.x86_64
 -unknown-freebsd10.2/lib:/home/pierre/tmp/grass7/grass-7.0.3/dist.x86_64
 -unknown-freebsd10.2/lib:" LC_ALL=C
 /home/pierre/tmp/grass7/grass-7.0.3/dist.x86_64-unknown-
 freebsd10.2/scripts/g.gui.tplot --html-description < /dev/null | grep -v
 '\|' > g.gui.tplot.tmp.html
 Traceback (most recent call last):
   File "/home/pierre/tmp/grass7/grass-7.0.3/dist.x86_64-unknown-
 freebsd10.2/scripts/g.gui.tplot", line 131, in 
 main()
   File "/home/pierre/tmp/grass7/grass-7.0.3/dist.x86_64-unknown-
 freebsd10.2/scripts/g.gui.tplot", line 78, in main
 options, flags = gscript.parser()
   File "/home/pierre/tmp/grass7/grass-7.0.3/dist.x86_64-unknown-
 freebsd10.2/etc/python/grass/script/core.py", line 712, in parser
 p = subprocess.Popen([prog, '-n'] + argv, stdout=subprocess.PIPE)
   File "/usr/local/lib/python2.7/subprocess.py", line 710, in __init__
 errread, errwrite)
   File "/usr/local/lib/python2.7/subprocess.py", line 1335, in
 _execute_child
 raise child_exception
 OSError: [Errno 2] No such file or directory
 ../../../include/Make/GuiScript.make:37: recipe for target
 'g.gui.tplot.tmp.html' failed
 gmake[1]: *** [g.gui.tplot.tmp.html] Error 1
 rm g.gui.tplot.tmp.html
 gmake[1]: Leaving directory
 '/home/pierre/tmp/grass7/grass-7.0.3/gui/wxpython/tplot'
 ../../../include/Make/GuiScript.make:23: recipe for target 'guiscript'
 failed
 gmake: *** [guiscript] Error 2
 }}}




 What do you think about all that?

 Thank you,

 Pierre.

--
Ticket URL: 
GRASS GIS 

___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] [GRASS GIS] #2940: Compiling Grass-7.0.3 under FreeBSD: tplot directory (with log)

2016-02-28 Thread GRASS GIS
#2940: Compiling Grass-7.0.3 under FreeBSD: tplot directory (with log)
--+-
  Reporter:  pieside  |  Owner:  grass-dev@…
  Type:  defect   | Status:  new
  Priority:  normal   |  Milestone:  7.0.4
 Component:  Default  |Version:  7.0.3
Resolution:   |   Keywords:  FreeBSD
   CPU:  x86-64   |   Platform:  Other Unix
--+-
Changes (by pieside):

 * Attachment "error.log" added.

 Error log

--
Ticket URL: 
GRASS GIS 

___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev