Menu

Release 1.25 - Compilation error

Ben
2008-08-06
2012-12-14
  • Ben

    Ben - 2008-08-06

    Hi,

    I've got the folowwing error compiling the new release 1.25 :

    timermanager.cpp:438: error: 'struct tm' has no member named 'tm_gmtoff'
    make[2]: ***[timermanager.o] Error 1

    Should I install a particular package ?
    Or is it a bug ?

    Thanks,

    Ben

     
    • jef2000

      jef2000 - 2008-08-06

      Hi,

      It's probably a portability problem. tm_gmtoff is a GNU extension to the tm struct. What compiler and C library are you using?

      Regards,

      Jean-François

       
    • Ben

      Ben - 2008-08-06

      Hi,

      I'm using cygwin with gcc-g++-3.4.4-3.

      Regards,
      Ben

       
    • Ben

      Ben - 2008-08-06

      I've found that it's a frequent problem using cygwin...
      I'll try with glib, i'll tell you !

      Bye,
      Ben

       
    • Ben

      Ben - 2008-09-17

      Sorry Jeff :-((

      I can't solve my compilation problem with tm_gmtoff...

      Do anybody have an idea ?

      Thanks for your help.

       
    • jef2000

      jef2000 - 2008-09-17

      Hi,

      I have tried to add a fix for this. It's already in CVS but not tested.
      The following files have been updated:
      http://linknx.cvs.sourceforge.net/\checkout*/linknx/linknx/linknx/src/suncalc.cpp?revision=1.3
      http://linknx.cvs.sourceforge.net/\
      checkout*/linknx/linknx/linknx/src/suncalc.h?revision=1.3
      http://linknx.cvs.sourceforge.net/\*checkout*/linknx/linknx/linknx/configure.ac?revision=1.13

      Regards,

      Jean-François

       
    • Ben

      Ben - 2008-09-18

      Hi,

      Thanks for your patch !

      But I still have this error :
      timermanager.cpp:438: error: 'struct tm' has no member named 'tm_gmtoff'

      An idea ?

      Ben

       
    • Ben

      Ben - 2008-09-23

      Hi Jean-François,

      Sorry to need you again.

      But could you upgrade your patch, please ?

      Thanks per advance.

      Ben

       
    • jef2000

      jef2000 - 2008-09-23

      Hi,

      Now I hope everything is OK
      The following files have been updated:
      http://linknx.cvs.sourceforge.net/\checkout*/linknx/linknx/linknx/src/suncalc.cpp?revision=1.4
      http://linknx.cvs.sourceforge.net/\
      checkout*/linknx/linknx/linknx/src/suncalc.h?revision=1.4
      http://linknx.cvs.sourceforge.net/\checkout*/linknx/linknx/linknx/src/timermanager.cpp?revision=1.7
      http://linknx.cvs.sourceforge.net/\
      checkout*/linknx/linknx/linknx/src/timermanager.h?revision=1.7
      http://linknx.cvs.sourceforge.net/\*checkout*/linknx/linknx/linknx/configure.ac?revision=1.13

      Regards,

      Jean-François

       
    • Ben

      Ben - 2008-09-26

      Hi Jef,

      Good job !
      It works fine now !
      I thank you so much !

      Regards,
      Ben

       

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.