Problem kompilera Core-2.1.2

Moderator: Telldus

Post Reply
Fredriks
Posts: 17
Joined: Fri Mar 17, 2023 9:45 am

Problem kompilera Core-2.1.2

Post by Fredriks »

Har kört 2.1.1 sedan 2012 på min Qnap TS-219P+ och det har funkat bra men nu fick jag för mig att jag skulle uppgradera till 2.1.2.
Att köra cmake . gick utan fel men när jag kör make så stötte jag på patrull är det någon som har något tips på var jag kan felsöka?

Code: Select all

[/share/MD0_DATA/Download/telldus-core-2.1.2] # make
Scanning dependencies of target TelldusCommon
[  1%] Building CXX object common/CMakeFiles/TelldusCommon.dir/Event.cpp.o
[  3%] Building CXX object common/CMakeFiles/TelldusCommon.dir/Message.cpp.o
[  5%] Building CXX object common/CMakeFiles/TelldusCommon.dir/Mutex.cpp.o
[  7%] Building CXX object common/CMakeFiles/TelldusCommon.dir/Strings.cpp.o
[  9%] Building CXX object common/CMakeFiles/TelldusCommon.dir/Thread.cpp.o
[ 11%] Building CXX object common/CMakeFiles/TelldusCommon.dir/Event_unix.cpp.o
[ 13%] Building CXX object common/CMakeFiles/TelldusCommon.dir/EventHandler_unix.cpp.o
/share/MD0_DATA/Download/telldus-core-2.1.2/common/EventHandler_unix.cpp:82: error: integer constant is too large for 'long' type
make[2]: *** [common/CMakeFiles/TelldusCommon.dir/EventHandler_unix.cpp.o] Error 1
make[1]: *** [common/CMakeFiles/TelldusCommon.dir/all] Error 2
make: *** [all] Error 2
Last edited by Fredriks on Sat Dec 06, 2014 1:50 pm, edited 1 time in total.
Fredriks
Posts: 17
Joined: Fri Mar 17, 2023 9:45 am

Re: Problem kompilera Core-2.1.2

Post by Fredriks »

Svag respons på detta men jag gör en minneslista till mig själv om hur man kompilerar Telldus Core på en Qnamp.

I filen EventHandler_unix.cpp ändra till.
uint64_t abstime_ns_large = now.tv_usec*1000 + 600000000; // add 60 seconds wait (5 seconds before)?
timespec abstime = { now.tv_sec + (abstime_ns_large / 10000000), abstime_ns_large % 10000000 };

I filen common/Socket_unix.cpp
// #if defined(_MACOSX) && !defined(SOCK_CLOEXEC)
#define SOCK_CLOEXEC 0
// #endif

I service/ConnectionListener_unix.cpp
// #if defined(_MACOSX) && !defined(SOCK_CLOEXEC)
#define SOCK_CLOEXEC 0
// #endif

Sen gick den igenom.
Post Reply