Menu

suncalc with negative (Western) longitude

Help
Ben08
2008-07-05
2012-12-14
  • Ben08

    Ben08 - 2008-07-05

    I compiled the latest CVS for my WRT. To make use of the new suncalc features I added my Western longitude as a negative value to my config.xml as explained in suncalc.cpp. 

    When linknx starts it throws the following exception:

    Could not convert "-1.67" to target type <ticpp.h@126>
    initialisation failed: Interrupted system call

    config.xml entry:     <location lon="-1.67" lat="MY.LAT"/>

    What am I missing?

    Regards,
    Bernhard

     
    • jef2000

      jef2000 - 2008-07-05

      Hi,

      There is a bug in uclibc++ and the negative values stream parsing.
      I submitted the following patch to uClibc++ author:
      http://ouaye.net/linknx/other/uClibc++-istream-negative.patch

      This patch is already included in the packages at:
      http://www.ouaye.net/linknx/OpenWRT-...../uclibc++_0.2.2-1_mipsel.ipk

      Regards,

      Jean-François

       
    • Ben08

      Ben08 - 2008-07-06

      Thanks Jean-François,

      I recompiled uclibc++ with your patch and now it works like a dream.

      Cheers,
      Bernhard

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.