Menu

can't compile linknx on DS508

dalongman
2009-12-13
2012-12-14
  • dalongman

    dalongman - 2009-12-13

    Hi,

    I run linknx on a DS508 (PPC architecture, Linux 2.6.24 Kernel). I am quite new to linknx and encountered the problem described in .
    The problem is that the current built (version 0.23) has a bug when casting float values. Basically, it's not a bug with linknx, but a compiler optimizer issue.

    A solution would be to compile the latest verion in SVN as described in the quoted thread. However, I am not able to compile successfully. While the "./configure" seems to work fine, the complile fails with the following error:

    DS508> make
    if g++ -DHAVE_CONFIG_H -I. -I. -I..  -I../include -I../ticpp -I/opt/include  .    -g -O2 -MT linknx.o -MD -MP -MF ".deps/linknx.Tpo" -c -o linknx.o linknx.cpp; \
            then mv -f ".deps/linknx.Tpo" ".deps/linknx.Po"; else rm -f ".deps/linknx.Tpo"; exit 1; fi
    g++: .: linker input file unused because linking not done
    cc1plus: .: No such file or directory
    make: ***  Error 1

    Any idea on what I could do?

    Thanks!

      : http://knx-user-forum.de/knx-eib-forum/4820-linknx-und-4byte.html

     
  • jef2000

    jef2000 - 2009-12-13

    Hi,

    Can you describe a little bit more how you compile linknx. What parameters for the ./configure and make commands? do you define env variables like CFLAGS, CXXFLAGS or CPPFLAGS?
    Or give the complete output of ./configure.
    In the log you give, I see that there is a dot just before the "-g -O2" parameters and that's causing the error, but I have no idea why this dot is there.

    Regards,

    Jean-François

     
  • dalongman

    dalongman - 2009-12-14

    Hello,

    I used: ./configure -without-log4cpp -without-pth-test -without-lua
    I did not set CFLAGS, CXXFLAGS, CPPFLAGS.

    The log is available at .

    Once I figure out, how to include it here without having it being messed with its format.

    Thanks,

    Dalongman

      : http://dalongman.homeip.net/config.log

     
  • dalongman

    dalongman - 2009-12-14

    Hi (again),

    I added libpthsem.so to the $LD_LIBRARY_PATH, changed the configure command line to ./configure -without-log4cpp -without-lua and now it compiles like a charm.

    Your hint got me looking into the right direction.

    Regards,

    Dalongman

     
  • jef2000

    jef2000 - 2009-12-14

    Hi,

    In your log, I see:
    LOG4CPP_CFLAGS='.'
    LOG4CPP_CONFIG=''
    LOG4CPP_LIBS='.'

    So the dot causing the problem comes probably from LOG4CPP

    And:
    ## ----------- ##
    ## Cache variables. ##
    ## ----------- ##
    ….
    ac_cv_env_LOG4CPP_CFLAGS_set='set'
    ac_cv_env_LOG4CPP_CFLAGS_value='.'
    ac_cv_env_LOG4CPP_LIBS_set='set'
    ac_cv_env_LOG4CPP_LIBS_value='.'

    This makes me think that a wrong value was stored in autoconf cache.

    Regards,

    Jean-François

     
  • dalongman

    dalongman - 2009-12-14

    Hello,

    thanks again for having time to look at this. I will check my settings and correct them.

    Regards,

    Dalongman

     

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.