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'
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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'
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