Menu

compiling error linknx

Help
kervy
2008-12-19
2012-12-14
  • kervy

    kervy - 2008-12-19

    I have this error,

    $ make
    make  all-recursive
    make[1]: Entering directory `/home/Kervy/linknx/linknx-0.0.1.25'
    Making all in ticpp
    make[2]: Entering directory `/home/Kervy/linknx/linknx-0.0.1.25/ticpp'
    source='ticpp.cpp' object='ticpp.o' libtool=no \         DEPDIR=.deps depmode=none /bin/sh ../depcomp \         g++ -DHAVE_CONFIG_H -I. -I. -I..  -I../ticpp  -DTIXML_USE_TICPP -DTIXML_
    USE_STL   -g -O2 -c -o ticpp.o ticpp.cpp
    source='tinystr.cpp' object='tinystr.o' libtool=no \         DEPDIR=.deps depmode=none /bin/sh ../depcomp \         g++ -DHAVE_CONFIG_H -I. -I. -I..  -I../ticpp  -DTIXML_USE_TICPP -DTIXML_
    USE_STL   -g -O2 -c -o tinystr.o tinystr.cpp
    source='tinyxml.cpp' object='tinyxml.o' libtool=no \         DEPDIR=.deps depmode=none /bin/sh ../depcomp \         g++ -DHAVE_CONFIG_H -I. -I. -I..  -I../ticpp  -DTIXML_USE_TICPP -DTIXML_
    USE_STL   -g -O2 -c -o tinyxml.o tinyxml.cpp
    source='tinyxmlerror.cpp' object='tinyxmlerror.o' libtool=no \         DEPDIR=.deps depmode=none /bin/sh ../depcomp \         g++ -DHAVE_CONFIG_H -I. -I. -I..  -I../ticpp  -DTIXML_USE_TICPP -DTIXML_
    USE_STL   -g -O2 -c -o tinyxmlerror.o tinyxmlerror.cpp
    source='tinyxmlparser.cpp' object='tinyxmlparser.o' libtool=no \         DEPDIR=.deps depmode=none /bin/sh ../depcomp \         g++ -DHAVE_CONFIG_H -I. -I. -I..  -I../ticpp  -DTIXML_USE_TICPP -DTIXML_
    USE_STL   -g -O2 -c -o tinyxmlparser.o tinyxmlparser.cpp
    rm -f libticpp.a
    ar cru libticpp.a ticpp.o tinystr.o tinyxml.o tinyxmlerror.o tinyxmlparser.o
    ranlib libticpp.a
    make[2]: Leaving directory `/home/Kervy/linknx/linknx-0.0.1.25/ticpp'
    Making all in src
    make[2]: Entering directory `/home/Kervy/linknx/linknx-0.0.1.25/src'
    source='linknx.cpp' object='linknx.o' libtool=no \         DEPDIR=.deps depmode=none /bin/sh ../depcomp \         g++ -DHAVE_CONFIG_H -I. -I. -I..  -I../include -I../ticpp -I/usr/local/i
    nclude    -g -O2 -c -o linknx.o linknx.cpp
    source='ruleserver.cpp' object='ruleserver.o' libtool=no \         DEPDIR=.deps depmode=none /bin/sh ../depcomp \         g++ -DHAVE_CONFIG_H -I. -I. -I..  -I../include -I../ticpp -I/usr/local/i
    nclude    -g -O2 -c -o ruleserver.o ruleserver.cpp
    source='objectcontroller.cpp' object='objectcontroller.o' libtool=no \         DEPDIR=.deps depmode=none /bin/sh ../depcomp \         g++ -DHAVE_CONFIG_H -I. -I. -I..  -I../include -I../ticpp -I/usr/local/i
    nclude    -g -O2 -c -o objectcontroller.o objectcontroller.cpp
    source='common.c' object='common.o' libtool=no \         DEPDIR=.deps depmode=none /bin/sh ../depcomp \         gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../include -I../ticpp -I/usr/local/i
    nclude    -g -O2 -c common.c
    source='eibclient.c' object='eibclient.o' libtool=no \         DEPDIR=.deps depmode=none /bin/sh ../depcomp \         gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../include -I../ticpp -I/usr/local/i
    nclude    -g -O2 -c eibclient.c
    source='threads.cpp' object='threads.o' libtool=no \         DEPDIR=.deps depmode=none /bin/sh ../depcomp \         g++ -DHAVE_CONFIG_H -I. -I. -I..  -I../include -I../ticpp -I/usr/local/i
    nclude    -g -O2 -c -o threads.o threads.cpp
    source='timermanager.cpp' object='timermanager.o' libtool=no \         DEPDIR=.deps depmode=none /bin/sh ../depcomp \         g++ -DHAVE_CONFIG_H -I. -I. -I..  -I../include -I../ticpp -I/usr/local/i
    nclude    -g -O2 -c -o timermanager.o timermanager.cpp
    timermanager.cpp: In member function `time_t PeriodicTask::findNext(time_t, Time
    Spec*)':
    timermanager.cpp:438: error: 'struct tm' has no member named 'tm_gmtoff'
    make[2]: *** [timermanager.o] Error 1
    make[2]: Leaving directory `/home/Kervy/linknx/linknx-0.0.1.25/src'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/home/Kervy/linknx/linknx-0.0.1.25'
    make: *** [all] Error 2

    What is a probleme???
    thanks

     
    • JensH

      JensH - 2008-12-21

      Hi kervy,
      do you use cygwin?
      Please see the following thread - the patches provided by Jean-François worked very well. (I had the same problem).

      https://sourceforge.net/forum/message.php?msg_id=5313652

      The reason is because tm_gmtoff is a GNU C-Lib extension, which is not available in strict ISO C libs.

      Best Regards, Jens

       
    • kervy

      kervy - 2008-12-21

      Yes I use cygwin.

      how to install this patch? what orders to put in shell of cygwin?

       
    • jef2000

      jef2000 - 2008-12-27

      Hi,

      Yes, there is a problem compiling version 0.0.1.25 with cygwin due to introduction of sunrise/sunset conditions.

      For those who do not have the skills required to follow the explanation from https://sourceforge.net/forum/message.php?msg_id=5313652 , you will have to choose between the following 2 solutions.
      1) wait for 0.0.1.26, but the problem is that I don't know when it will be ready
      2) use version 0.0.1.23

       
    • kervy

      kervy - 2008-12-31

      ok thanks
      it's good with 0.0.1.23
      bye

       

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.