Menu

Ubuntu 11.04 make check error

Help
Thomas
2011-06-25
2012-12-14
  • Thomas

    Thomas - 2011-06-25

    Hi,
    I'm trying to move my linknx to a new server (Ubuntu 11.04). After make install I get a make check error.

    XmlServerTest.cpp: In member function ‘int XmlServerTest::createMsgFd(const char*)’:
    XmlServerTest.cpp:37:57: error: ‘creat’ was not declared in this scope
    XmlServerTest.cpp:40:49: error: ‘O_RDONLY’ was not declared in this scope
    XmlServerTest.cpp:40:57: error: ‘open’ was not declared in this scope
    XmlServerTest.cpp: In member function ‘virtual void XmlServerTest::setUp()’:
    XmlServerTest.cpp:26:51: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result
    XmlServerTest.cpp: In member function ‘int XmlServerTest::createMsgFd(const char*)’:
    XmlServerTest.cpp:38:36: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’, declared with attribute warn_unused_result
    make: ***  Fehler 1
    make: Verlasse Verzeichnis '/home/airmax/linknx-0.0.1.28/test'
    make: ***  Fehler 2
    make: Verlasse Verzeichnis '/home/airmax/linknx-0.0.1.28/test'
    make: ***  Fehler 1

    also when starting linkx I get the error:

    2011-06-25 11:34:02  main: Error in config: Action type not supported: 'script'

     
  • jef2000

    jef2000 - 2011-07-21

    Hi,

    To fix the "make check" error, you can add the 3 lines following << #include "common.h" >> in XmlServerTest.cpp:
    extern "C"
    {
    #include "common.h"
    #include <sys/types.h>
    #include <sys/stat.h>
    #include <fcntl.h>
    }

    The error "Action type not supported: 'script' " mean that you compiled linknx without scripting support. That's probably because LUA was not installed on the system.
    You can try to install LUA (ubuntu package liblua5.1-0-dev or something similar). Then re-compile linknx and look in the output of ./configure command to see if LUA is correctly detected.

    Jean-François

     

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.