knightonline/server/LogInServer/latest_build.log

1205 lines
97 KiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

[2025-08-29 22:14:46] Knight Online Login Server Build Script
[2025-08-29 22:14:46] Build command: build
[2025-08-29 22:14:46] Parallel jobs: 12
[2025-08-29 22:14:46] Checking build dependencies...
[2025-08-29 22:14:46] SUCCESS: Dependencies check completed
[2025-08-29 22:14:46] Starting build process...
[2025-08-29 22:14:46] Configuring project with CMake...
-- The C compiler identification is GNU 13.3.0
-- The CXX compiler identification is GNU 13.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done (5.7s)
-- Generating done (0.0s)
-- Build files have been written to: /home/monsterubuntu/knightonline/server/LogInServer/build
[2025-08-29 22:14:52] Building project with 12 parallel jobs...
[ 3%] Building CXX object CMakeFiles/LoginServer.dir/main.cpp.o
[ 6%] Building CXX object CMakeFiles/LoginServer.dir/LoginServer.cpp.o
[ 10%] Building CXX object CMakeFiles/LoginServer.dir/stdafx.cpp.o
[ 16%] Building CXX object CMakeFiles/LoginServer.dir/home/monsterubuntu/knightonline/server/shared/Thread.cpp.o
[ 16%] Building CXX object CMakeFiles/LoginServer.dir/DBProcess.cpp.o
[ 26%] Building CXX object CMakeFiles/LoginServer.dir/LoginSession.cpp.o
[ 26%] Building CXX object CMakeFiles/LoginServer.dir/home/monsterubuntu/knightonline/server/shared/tstring.cpp.o
[ 30%] Building CXX object CMakeFiles/LoginServer.dir/home/monsterubuntu/knightonline/server/shared/Socket.cpp.o
[ 26%] Building CXX object CMakeFiles/LoginServer.dir/home/monsterubuntu/knightonline/server/shared/globals.cpp.o
[ 33%] Building CXX object CMakeFiles/LoginServer.dir/home/monsterubuntu/knightonline/server/shared/TimeThread.cpp.o
[ 36%] Building CXX object CMakeFiles/LoginServer.dir/home/monsterubuntu/knightonline/server/shared/SocketMgr.cpp.o
[ 40%] Building CXX object CMakeFiles/LoginServer.dir/home/monsterubuntu/knightonline/server/shared/Condition.cpp.o
In file included from /home/monsterubuntu/knightonline/server/LogInServer/../shared/globals.h:3,
from /home/monsterubuntu/knightonline/server/LogInServer/../shared/stdafx.h:164,
from /home/monsterubuntu/knightonline/server/LogInServer/stdafx.h:3,
from /home/monsterubuntu/knightonline/server/LogInServer/LoginServer.cpp:1:
/home/monsterubuntu/knightonline/server/LogInServer/../shared/version.h:3: warning: "__VERSION" redefined
3 | #define __VERSION 2170
|
<command-line>: note: this is the location of the previous definition
In file included from /home/monsterubuntu/knightonline/server/shared/globals.h:3,
from /home/monsterubuntu/knightonline/server/shared/stdafx.h:164,
from /home/monsterubuntu/knightonline/server/shared/globals.cpp:1:
/home/monsterubuntu/knightonline/server/shared/version.h:3: warning: "__VERSION" redefined
3 | #define __VERSION 2170
|
<command-line>: note: this is the location of the previous definition
In file included from /home/monsterubuntu/knightonline/server/LogInServer/../shared/stdafx.h:165:
/home/monsterubuntu/knightonline/server/LogInServer/../shared/Atomic.h:22: warning: ignoring #pragma warning [-Wunknown-pragmas]
22 | #pragma warning(push)
|
/home/monsterubuntu/knightonline/server/LogInServer/../shared/Atomic.h:23: warning: ignoring #pragma warning [-Wunknown-pragmas]
23 | #pragma warning(disable: 4018)
|
/home/monsterubuntu/knightonline/server/LogInServer/../shared/Atomic.h:32: warning: ignoring #pragma warning [-Wunknown-pragmas]
32 | #pragma warning(pop)
|
In file included from /home/monsterubuntu/knightonline/server/shared/stdafx.h:165:
/home/monsterubuntu/knightonline/server/shared/Atomic.h:22: warning: ignoring #pragma warning [-Wunknown-pragmas]
22 | #pragma warning(push)
|
/home/monsterubuntu/knightonline/server/shared/Atomic.h:23: warning: ignoring #pragma warning [-Wunknown-pragmas]
23 | #pragma warning(disable: 4018)
|
/home/monsterubuntu/knightonline/server/shared/Atomic.h:32: warning: ignoring #pragma warning [-Wunknown-pragmas]
32 | #pragma warning(pop)
|
In file included from /home/monsterubuntu/knightonline/server/LogInServer/../shared/KOSocket.h:9,
from /home/monsterubuntu/knightonline/server/LogInServer/../shared/Network.h:16,
from /home/monsterubuntu/knightonline/server/LogInServer/../shared/stdafx.h:167:
/home/monsterubuntu/knightonline/server/LogInServer/../shared/lzf.h:121:6: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
121 | #if !STRICT_ALIGN
| ^~~~~~~~~~~~
/home/monsterubuntu/knightonline/server/LogInServer/../shared/lzf.h:121:6: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
In file included from /home/monsterubuntu/knightonline/server/LogInServer/DBProcess.h:3,
from /home/monsterubuntu/knightonline/server/LogInServer/stdafx.h:6:
/home/monsterubuntu/knightonline/server/LogInServer/../shared/database/OdbcConnection.h:3: warning: ignoring #pragma comment [-Wunknown-pragmas]
3 | #pragma comment(lib, "odbc32.lib")
|
In file included from /home/monsterubuntu/knightonline/server/shared/KOSocket.h:9,
from /home/monsterubuntu/knightonline/server/shared/Network.h:16,
from /home/monsterubuntu/knightonline/server/shared/stdafx.h:167:
/home/monsterubuntu/knightonline/server/shared/lzf.h:121:6: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
121 | #if !STRICT_ALIGN
| ^~~~~~~~~~~~
/home/monsterubuntu/knightonline/server/shared/lzf.h:121:6: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
In file included from /home/monsterubuntu/knightonline/server/LogInServer/../shared/globals.h:3,
from /home/monsterubuntu/knightonline/server/LogInServer/../shared/stdafx.h:164,
from /home/monsterubuntu/knightonline/server/LogInServer/stdafx.h:3,
from /home/monsterubuntu/knightonline/server/LogInServer/main.cpp:1:
/home/monsterubuntu/knightonline/server/LogInServer/../shared/version.h:3: warning: "__VERSION" redefined
3 | #define __VERSION 2170
|
In file included from /home/monsterubuntu/knightonline/server/LogInServer/../shared/globals.h:3,
from /home/monsterubuntu/knightonline/server/LogInServer/../shared/stdafx.h:164,
from /home/monsterubuntu/knightonline/server/LogInServer/stdafx.h:3,
from /home/monsterubuntu/knightonline/server/LogInServer/LoginSession.cpp:1:
/home/monsterubuntu/knightonline/server/LogInServer/../shared/version.h:3: warning: "__VERSION" redefined
3 | #define __VERSION 2170
|
<command-line>: note: this is the location of the previous definition
<command-line>: note: this is the location of the previous definition
In file included from /home/monsterubuntu/knightonline/server/LogInServer/../shared/stdafx.h:165:
/home/monsterubuntu/knightonline/server/LogInServer/../shared/Atomic.h:22: warning: ignoring #pragma warning [-Wunknown-pragmas]
22 | #pragma warning(push)
|
/home/monsterubuntu/knightonline/server/LogInServer/../shared/Atomic.h:23: warning: ignoring #pragma warning [-Wunknown-pragmas]
23 | #pragma warning(disable: 4018)
|
/home/monsterubuntu/knightonline/server/LogInServer/../shared/Atomic.h:32: warning: ignoring #pragma warning [-Wunknown-pragmas]
32 | #pragma warning(pop)
|
In file included from /home/monsterubuntu/knightonline/server/LogInServer/../shared/stdafx.h:165:
/home/monsterubuntu/knightonline/server/LogInServer/../shared/Atomic.h:22: warning: ignoring #pragma warning [-Wunknown-pragmas]
22 | #pragma warning(push)
|
/home/monsterubuntu/knightonline/server/LogInServer/../shared/Atomic.h:23: warning: ignoring #pragma warning [-Wunknown-pragmas]
23 | #pragma warning(disable: 4018)
|
/home/monsterubuntu/knightonline/server/LogInServer/../shared/Atomic.h:32: warning: ignoring #pragma warning [-Wunknown-pragmas]
32 | #pragma warning(pop)
|
In file included from /home/monsterubuntu/knightonline/server/LogInServer/../shared/globals.h:3,
from /home/monsterubuntu/knightonline/server/LogInServer/../shared/stdafx.h:164,
from /home/monsterubuntu/knightonline/server/LogInServer/stdafx.h:3,
from /home/monsterubuntu/knightonline/server/LogInServer/DBProcess.cpp:1:
/home/monsterubuntu/knightonline/server/LogInServer/../shared/version.h:3: warning: "__VERSION" redefined
3 | #define __VERSION 2170
|
<command-line>: note: this is the location of the previous definition
In file included from /home/monsterubuntu/knightonline/server/LogInServer/../shared/KOSocket.h:9,
from /home/monsterubuntu/knightonline/server/LogInServer/../shared/Network.h:16,
from /home/monsterubuntu/knightonline/server/LogInServer/../shared/stdafx.h:167:
/home/monsterubuntu/knightonline/server/LogInServer/../shared/lzf.h:121:6: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
121 | #if !STRICT_ALIGN
| ^~~~~~~~~~~~
/home/monsterubuntu/knightonline/server/LogInServer/../shared/lzf.h:121:6: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
In file included from /home/monsterubuntu/knightonline/server/LogInServer/../shared/stdafx.h:165:
/home/monsterubuntu/knightonline/server/LogInServer/../shared/Atomic.h:22: warning: ignoring #pragma warning [-Wunknown-pragmas]
22 | #pragma warning(push)
|
In file included from /home/monsterubuntu/knightonline/server/LogInServer/../shared/KOSocket.h:9,
from /home/monsterubuntu/knightonline/server/LogInServer/../shared/Network.h:16,
from /home/monsterubuntu/knightonline/server/LogInServer/../shared/stdafx.h:167:
/home/monsterubuntu/knightonline/server/LogInServer/../shared/lzf.h:121:6: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
121 | #if !STRICT_ALIGN
| ^~~~~~~~~~~~
/home/monsterubuntu/knightonline/server/LogInServer/../shared/lzf.h:121:6: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
/home/monsterubuntu/knightonline/server/LogInServer/../shared/Atomic.h:23: warning: ignoring #pragma warning [-Wunknown-pragmas]
23 | #pragma warning(disable: 4018)
|
/home/monsterubuntu/knightonline/server/LogInServer/../shared/Atomic.h:32: warning: ignoring #pragma warning [-Wunknown-pragmas]
32 | #pragma warning(pop)
|
In file included from /home/monsterubuntu/knightonline/server/LogInServer/DBProcess.h:3,
from /home/monsterubuntu/knightonline/server/LogInServer/stdafx.h:6:
/home/monsterubuntu/knightonline/server/LogInServer/../shared/database/OdbcConnection.h:3: warning: ignoring #pragma comment [-Wunknown-pragmas]
3 | #pragma comment(lib, "odbc32.lib")
|
In file included from /home/monsterubuntu/knightonline/server/LogInServer/../shared/globals.h:3,
from /home/monsterubuntu/knightonline/server/LogInServer/../shared/stdafx.h:164,
from /home/monsterubuntu/knightonline/server/LogInServer/stdafx.h:3,
from /home/monsterubuntu/knightonline/server/LogInServer/stdafx.cpp:1:
/home/monsterubuntu/knightonline/server/LogInServer/../shared/version.h:3: warning: "__VERSION" redefined
3 | #define __VERSION 2170
|
<command-line>: note: this is the location of the previous definition
In file included from /home/monsterubuntu/knightonline/server/LogInServer/DBProcess.h:3,
from /home/monsterubuntu/knightonline/server/LogInServer/stdafx.h:6:
/home/monsterubuntu/knightonline/server/LogInServer/../shared/database/OdbcConnection.h:3: warning: ignoring #pragma comment [-Wunknown-pragmas]
3 | #pragma comment(lib, "odbc32.lib")
|
In file included from /home/monsterubuntu/knightonline/server/shared/globals.h:3,
from /home/monsterubuntu/knightonline/server/shared/stdafx.h:164,
from /home/monsterubuntu/knightonline/server/shared/Thread.cpp:1:
/home/monsterubuntu/knightonline/server/shared/version.h:3: warning: "__VERSION" redefined
3 | #define __VERSION 2170
|
<command-line>: note: this is the location of the previous definition
In file included from /home/monsterubuntu/knightonline/server/LogInServer/../shared/KOSocket.h:9,
from /home/monsterubuntu/knightonline/server/LogInServer/../shared/Network.h:16,
from /home/monsterubuntu/knightonline/server/LogInServer/../shared/stdafx.h:167:
/home/monsterubuntu/knightonline/server/LogInServer/../shared/lzf.h:121:6: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
121 | #if !STRICT_ALIGN
| ^~~~~~~~~~~~
/home/monsterubuntu/knightonline/server/LogInServer/../shared/lzf.h:121:6: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
In file included from /home/monsterubuntu/knightonline/server/LogInServer/DBProcess.h:3,
from /home/monsterubuntu/knightonline/server/LogInServer/stdafx.h:6:
/home/monsterubuntu/knightonline/server/LogInServer/../shared/database/OdbcConnection.h:3: warning: ignoring #pragma comment [-Wunknown-pragmas]
3 | #pragma comment(lib, "odbc32.lib")
|
In file included from /home/monsterubuntu/knightonline/server/shared/stdafx.h:165:
/home/monsterubuntu/knightonline/server/shared/Atomic.h:22: warning: ignoring #pragma warning [-Wunknown-pragmas]
22 | #pragma warning(push)
|
/home/monsterubuntu/knightonline/server/shared/Atomic.h:23: warning: ignoring #pragma warning [-Wunknown-pragmas]
23 | #pragma warning(disable: 4018)
|
/home/monsterubuntu/knightonline/server/shared/Atomic.h:32: warning: ignoring #pragma warning [-Wunknown-pragmas]
32 | #pragma warning(pop)
|
In file included from /home/monsterubuntu/knightonline/server/LogInServer/../shared/stdafx.h:165:
/home/monsterubuntu/knightonline/server/LogInServer/../shared/Atomic.h:22: warning: ignoring #pragma warning [-Wunknown-pragmas]
22 | #pragma warning(push)
|
/home/monsterubuntu/knightonline/server/LogInServer/../shared/Atomic.h:23: warning: ignoring #pragma warning [-Wunknown-pragmas]
23 | #pragma warning(disable: 4018)
|
/home/monsterubuntu/knightonline/server/LogInServer/../shared/Atomic.h:32: warning: ignoring #pragma warning [-Wunknown-pragmas]
32 | #pragma warning(pop)
|
In file included from /home/monsterubuntu/knightonline/server/shared/globals.h:3,
from /home/monsterubuntu/knightonline/server/shared/stdafx.h:164,
from /home/monsterubuntu/knightonline/server/shared/Condition.cpp:1:
/home/monsterubuntu/knightonline/server/shared/version.h:3: warning: "__VERSION" redefined
3 | #define __VERSION 2170
|
<command-line>: note: this is the location of the previous definition
In file included from /home/monsterubuntu/knightonline/server/LogInServer/../shared/KOSocket.h:9,
from /home/monsterubuntu/knightonline/server/LogInServer/../shared/Network.h:16,
from /home/monsterubuntu/knightonline/server/LogInServer/../shared/stdafx.h:167:
/home/monsterubuntu/knightonline/server/LogInServer/../shared/lzf.h:121:6: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
121 | #if !STRICT_ALIGN
| ^~~~~~~~~~~~
/home/monsterubuntu/knightonline/server/LogInServer/../shared/lzf.h:121:6: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
In file included from /home/monsterubuntu/knightonline/server/shared/KOSocket.h:9,
from /home/monsterubuntu/knightonline/server/shared/Network.h:16,
from /home/monsterubuntu/knightonline/server/shared/stdafx.h:167:
/home/monsterubuntu/knightonline/server/shared/lzf.h:121:6: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
121 | #if !STRICT_ALIGN
| ^~~~~~~~~~~~
/home/monsterubuntu/knightonline/server/shared/lzf.h:121:6: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
In file included from /home/monsterubuntu/knightonline/server/shared/stdafx.h:165:
/home/monsterubuntu/knightonline/server/shared/Atomic.h:22: warning: ignoring #pragma warning [-Wunknown-pragmas]
22 | #pragma warning(push)
|
/home/monsterubuntu/knightonline/server/shared/Atomic.h:23: warning: ignoring #pragma warning [-Wunknown-pragmas]
23 | #pragma warning(disable: 4018)
|
In file included from /home/monsterubuntu/knightonline/server/LogInServer/DBProcess.h:3,
from /home/monsterubuntu/knightonline/server/LogInServer/stdafx.h:6:
/home/monsterubuntu/knightonline/server/LogInServer/../shared/database/OdbcConnection.h:3: warning: ignoring #pragma comment [-Wunknown-pragmas]
3 | #pragma comment(lib, "odbc32.lib")
|
/home/monsterubuntu/knightonline/server/shared/Atomic.h:32: warning: ignoring #pragma warning [-Wunknown-pragmas]
32 | #pragma warning(pop)
|
In file included from /home/monsterubuntu/knightonline/server/shared/KOSocket.h:9,
from /home/monsterubuntu/knightonline/server/shared/Network.h:16,
from /home/monsterubuntu/knightonline/server/shared/stdafx.h:167:
/home/monsterubuntu/knightonline/server/shared/lzf.h:121:6: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
121 | #if !STRICT_ALIGN
| ^~~~~~~~~~~~
/home/monsterubuntu/knightonline/server/shared/lzf.h:121:6: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
In file included from /home/monsterubuntu/knightonline/server/shared/globals.h:3,
from /home/monsterubuntu/knightonline/server/shared/stdafx.h:164,
from /home/monsterubuntu/knightonline/server/shared/Socket.cpp:1:
/home/monsterubuntu/knightonline/server/shared/version.h:3: warning: "__VERSION" redefined
3 | #define __VERSION 2170
|
<command-line>: note: this is the location of the previous definition
In file included from /home/monsterubuntu/knightonline/server/shared/stdafx.h:165:
/home/monsterubuntu/knightonline/server/shared/Atomic.h:22: warning: ignoring #pragma warning [-Wunknown-pragmas]
22 | #pragma warning(push)
|
/home/monsterubuntu/knightonline/server/shared/Atomic.h:23: warning: ignoring #pragma warning [-Wunknown-pragmas]
23 | #pragma warning(disable: 4018)
|
/home/monsterubuntu/knightonline/server/shared/Atomic.h:32: warning: ignoring #pragma warning [-Wunknown-pragmas]
32 | #pragma warning(pop)
|
In file included from /home/monsterubuntu/knightonline/server/shared/globals.h:3,
from /home/monsterubuntu/knightonline/server/shared/stdafx.h:164,
from /home/monsterubuntu/knightonline/server/shared/TimeThread.cpp:1:
/home/monsterubuntu/knightonline/server/shared/version.h:3: warning: "__VERSION" redefined
3 | #define __VERSION 2170
|
<command-line>: note: this is the location of the previous definition
In file included from /home/monsterubuntu/knightonline/server/shared/KOSocket.h:9,
from /home/monsterubuntu/knightonline/server/shared/Network.h:16,
from /home/monsterubuntu/knightonline/server/shared/stdafx.h:167:
/home/monsterubuntu/knightonline/server/shared/lzf.h:121:6: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
121 | #if !STRICT_ALIGN
| ^~~~~~~~~~~~
/home/monsterubuntu/knightonline/server/shared/lzf.h:121:6: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
In file included from /home/monsterubuntu/knightonline/server/shared/stdafx.h:165:
/home/monsterubuntu/knightonline/server/shared/Atomic.h:22: warning: ignoring #pragma warning [-Wunknown-pragmas]
22 | #pragma warning(push)
|
/home/monsterubuntu/knightonline/server/shared/Atomic.h:23: warning: ignoring #pragma warning [-Wunknown-pragmas]
23 | #pragma warning(disable: 4018)
|
/home/monsterubuntu/knightonline/server/shared/Atomic.h:32: warning: ignoring #pragma warning [-Wunknown-pragmas]
32 | #pragma warning(pop)
|
/home/monsterubuntu/knightonline/server/shared/Socket.cpp:3: warning: ignoring #pragma warning [-Wunknown-pragmas]
3 | #pragma warning(disable:4996)
|
In file included from /home/monsterubuntu/knightonline/server/shared/KOSocket.h:9,
from /home/monsterubuntu/knightonline/server/shared/Network.h:16,
from /home/monsterubuntu/knightonline/server/shared/stdafx.h:167:
/home/monsterubuntu/knightonline/server/shared/lzf.h:121:6: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
121 | #if !STRICT_ALIGN
| ^~~~~~~~~~~~
/home/monsterubuntu/knightonline/server/shared/lzf.h:121:6: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
In file included from /home/monsterubuntu/knightonline/server/shared/globals.h:3,
from /home/monsterubuntu/knightonline/server/shared/stdafx.h:164,
from /home/monsterubuntu/knightonline/server/shared/SocketMgr.cpp:1:
/home/monsterubuntu/knightonline/server/shared/version.h:3: warning: "__VERSION" redefined
3 | #define __VERSION 2170
|
<command-line>: note: this is the location of the previous definition
In file included from /home/monsterubuntu/knightonline/server/shared/stdafx.h:165:
/home/monsterubuntu/knightonline/server/shared/Atomic.h:22: warning: ignoring #pragma warning [-Wunknown-pragmas]
22 | #pragma warning(push)
|
/home/monsterubuntu/knightonline/server/shared/Atomic.h:23: warning: ignoring #pragma warning [-Wunknown-pragmas]
23 | #pragma warning(disable: 4018)
|
/home/monsterubuntu/knightonline/server/shared/Atomic.h:32: warning: ignoring #pragma warning [-Wunknown-pragmas]
32 | #pragma warning(pop)
|
In file included from /home/monsterubuntu/knightonline/server/shared/KOSocket.h:9,
from /home/monsterubuntu/knightonline/server/shared/Network.h:16,
from /home/monsterubuntu/knightonline/server/shared/stdafx.h:167:
/home/monsterubuntu/knightonline/server/shared/lzf.h:121:6: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
121 | #if !STRICT_ALIGN
| ^~~~~~~~~~~~
/home/monsterubuntu/knightonline/server/shared/lzf.h:121:6: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
/home/monsterubuntu/knightonline/server/shared/tstring.cpp: In function std::string& rtrim(std::string&):
/home/monsterubuntu/knightonline/server/shared/tstring.cpp:32:84: warning: std::pointer_to_unary_function<_Arg, _Result> std::ptr_fun(_Result (*)(_Arg)) [with _Arg = int; _Result = int] is deprecated: use 'std::function' instead [-Wdeprecated-declarations]
32 | s.erase(std::find_if(s.rbegin(), s.rend(), std::not1(std::ptr_fun<int, int>(safe_isspace))).base(), s.end());
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
In file included from /usr/include/c++/13/string:49,
from /home/monsterubuntu/knightonline/server/shared/tstring.h:4,
from /home/monsterubuntu/knightonline/server/shared/tstring.cpp:1:
/usr/include/c++/13/bits/stl_function.h:1126:5: note: declared here
1126 | ptr_fun(_Result (*__x)(_Arg))
| ^~~~~~~
/home/monsterubuntu/knightonline/server/shared/tstring.cpp: In function std::string& ltrim(std::string&):
/home/monsterubuntu/knightonline/server/shared/tstring.cpp:39:93: warning: std::pointer_to_unary_function<_Arg, _Result> std::ptr_fun(_Result (*)(_Arg)) [with _Arg = int; _Result = int] is deprecated: use 'std::function' instead [-Wdeprecated-declarations]
39 | s.erase(s.begin(), std::find_if(s.begin(), s.end(), std::not1(std::ptr_fun<int, int>(safe_isspace))));
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
/usr/include/c++/13/bits/stl_function.h:1126:5: note: declared here
1126 | ptr_fun(_Result (*__x)(_Arg))
| ^~~~~~~
[ 43%] Building CXX object CMakeFiles/LoginServer.dir/home/monsterubuntu/knightonline/server/shared/RWLock.cpp.o
In file included from /home/monsterubuntu/knightonline/server/shared/globals.h:3,
from /home/monsterubuntu/knightonline/server/shared/stdafx.h:164,
from /home/monsterubuntu/knightonline/server/shared/RWLock.cpp:1:
/home/monsterubuntu/knightonline/server/shared/version.h:3: warning: "__VERSION" redefined
3 | #define __VERSION 2170
|
<command-line>: note: this is the location of the previous definition
In file included from /home/monsterubuntu/knightonline/server/shared/stdafx.h:165:
/home/monsterubuntu/knightonline/server/shared/Atomic.h:22: warning: ignoring #pragma warning [-Wunknown-pragmas]
22 | #pragma warning(push)
|
/home/monsterubuntu/knightonline/server/shared/Atomic.h:23: warning: ignoring #pragma warning [-Wunknown-pragmas]
23 | #pragma warning(disable: 4018)
|
/home/monsterubuntu/knightonline/server/shared/Atomic.h:32: warning: ignoring #pragma warning [-Wunknown-pragmas]
32 | #pragma warning(pop)
|
In file included from /home/monsterubuntu/knightonline/server/shared/KOSocket.h:9,
from /home/monsterubuntu/knightonline/server/shared/Network.h:16,
from /home/monsterubuntu/knightonline/server/shared/stdafx.h:167:
/home/monsterubuntu/knightonline/server/shared/lzf.h:121:6: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
121 | #if !STRICT_ALIGN
| ^~~~~~~~~~~~
/home/monsterubuntu/knightonline/server/shared/lzf.h:121:6: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
In file included from /home/monsterubuntu/knightonline/server/shared/Packet.h:3,
from /home/monsterubuntu/knightonline/server/shared/globals.h:5:
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h: In constructor ByteBuffer::ByteBuffer():
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h:173:23: warning: ByteBuffer::_wpos will be initialized after [-Wreorder]
173 | size_t _rpos, _wpos;
| ^~~~~
In file included from /home/monsterubuntu/knightonline/server/LogInServer/../shared/Packet.h:3,
from /home/monsterubuntu/knightonline/server/LogInServer/../shared/globals.h:5:
/home/monsterubuntu/knightonline/server/LogInServer/../shared/ByteBuffer.h: In constructor ByteBuffer::ByteBuffer():
/home/monsterubuntu/knightonline/server/LogInServer/../shared/ByteBuffer.h:173:23: warning: ByteBuffer::_wpos will be initialized after [-Wreorder]
173 | size_t _rpos, _wpos;
| ^~~~~
/home/monsterubuntu/knightonline/server/LogInServer/../shared/ByteBuffer.h:9:14: warning: bool ByteBuffer::m_doubleByte [-Wreorder]
9 | bool m_doubleByte;
| ^~~~~~~~~~~~
/home/monsterubuntu/knightonline/server/LogInServer/../shared/ByteBuffer.h:11:9: warning: when initialized here [-Wreorder]
11 | ByteBuffer(): _rpos(0), _wpos(0), m_doubleByte(true) { _storage.reserve(DEFAULT_SIZE); }
| ^~~~~~~~~~
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h:9:14: warning: bool ByteBuffer::m_doubleByte [-Wreorder]
9 | bool m_doubleByte;
| ^~~~~~~~~~~~
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h:11:9: warning: when initialized here [-Wreorder]
11 | ByteBuffer(): _rpos(0), _wpos(0), m_doubleByte(true) { _storage.reserve(DEFAULT_SIZE); }
| ^~~~~~~~~~
/home/monsterubuntu/knightonline/server/LogInServer/../shared/ByteBuffer.h: In constructor ByteBuffer::ByteBuffer(size_t):
/home/monsterubuntu/knightonline/server/LogInServer/../shared/ByteBuffer.h:173:23: warning: ByteBuffer::_wpos will be initialized after [-Wreorder]
173 | size_t _rpos, _wpos;
| ^~~~~
/home/monsterubuntu/knightonline/server/LogInServer/../shared/ByteBuffer.h:9:14: warning: bool ByteBuffer::m_doubleByte [-Wreorder]
9 | bool m_doubleByte;
| ^~~~~~~~~~~~
/home/monsterubuntu/knightonline/server/LogInServer/../shared/ByteBuffer.h:12:9: warning: when initialized here [-Wreorder]
12 | ByteBuffer(size_t res): _rpos(0), _wpos(0), m_doubleByte(true) { _storage.reserve(res <= 0 ? DEFAULT_SIZE : res); }
| ^~~~~~~~~~
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h: In constructor ByteBuffer::ByteBuffer(size_t):
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h:173:23: warning: ByteBuffer::_wpos will be initialized after [-Wreorder]
173 | size_t _rpos, _wpos;
| ^~~~~
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h:9:14: warning: bool ByteBuffer::m_doubleByte [-Wreorder]
9 | bool m_doubleByte;
| ^~~~~~~~~~~~
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h:12:9: warning: when initialized here [-Wreorder]
12 | ByteBuffer(size_t res): _rpos(0), _wpos(0), m_doubleByte(true) { _storage.reserve(res <= 0 ? DEFAULT_SIZE : res); }
| ^~~~~~~~~~
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h: In member function void ByteBuffer::append(const void*, size_t):
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h:149:31: warning: value computed is not used [-Wunused-value]
149 | ASSERT(size() < 10000000);
| ~~~~~~~~^~~~~~~~~~~
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h: In member function void ByteBuffer::append(const ByteBuffer&, size_t):
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h:161:43: warning: value computed is not used [-Wunused-value]
161 | ASSERT(buffer._rpos + len <= buffer.size());
| ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h: In member function void ByteBuffer::put(size_t, const void*, size_t):
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h:167:34: warning: value computed is not used [-Wunused-value]
167 | ASSERT(pos + cnt <= size());
| ~~~~~~~~~~~^~~~~~~~~~
/home/monsterubuntu/knightonline/server/LogInServer/../shared/ByteBuffer.h: In member function void ByteBuffer::append(const void*, size_t):
/home/monsterubuntu/knightonline/server/LogInServer/../shared/ByteBuffer.h:149:31: warning: value computed is not used [-Wunused-value]
149 | ASSERT(size() < 10000000);
| ~~~~~~~~^~~~~~~~~~~
/home/monsterubuntu/knightonline/server/LogInServer/../shared/ByteBuffer.h: In member function void ByteBuffer::append(const ByteBuffer&, size_t):
/home/monsterubuntu/knightonline/server/LogInServer/../shared/ByteBuffer.h:161:43: warning: value computed is not used [-Wunused-value]
161 | ASSERT(buffer._rpos + len <= buffer.size());
| ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
/home/monsterubuntu/knightonline/server/LogInServer/../shared/ByteBuffer.h: In member function void ByteBuffer::put(size_t, const void*, size_t):
/home/monsterubuntu/knightonline/server/LogInServer/../shared/ByteBuffer.h:167:34: warning: value computed is not used [-Wunused-value]
167 | ASSERT(pos + cnt <= size());
| ~~~~~~~~~~~^~~~~~~~~~
In file included from /home/monsterubuntu/knightonline/server/LogInServer/../shared/Packet.h:3,
from /home/monsterubuntu/knightonline/server/LogInServer/../shared/globals.h:5:
/home/monsterubuntu/knightonline/server/LogInServer/../shared/ByteBuffer.h: In constructor ByteBuffer::ByteBuffer():
/home/monsterubuntu/knightonline/server/LogInServer/../shared/ByteBuffer.h:173:23: warning: ByteBuffer::_wpos will be initialized after [-Wreorder]
173 | size_t _rpos, _wpos;
| ^~~~~
In file included from /home/monsterubuntu/knightonline/server/shared/Packet.h:3,
from /home/monsterubuntu/knightonline/server/shared/globals.h:5:
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h: In constructor ByteBuffer::ByteBuffer():
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h:173:23: warning: ByteBuffer::_wpos will be initialized after [-Wreorder]
173 | size_t _rpos, _wpos;
| ^~~~~
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h:9:14: warning: bool ByteBuffer::m_doubleByte [-Wreorder]
9 | bool m_doubleByte;
| ^~~~~~~~~~~~
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h:11:9: warning: when initialized here [-Wreorder]
11 | ByteBuffer(): _rpos(0), _wpos(0), m_doubleByte(true) { _storage.reserve(DEFAULT_SIZE); }
| ^~~~~~~~~~
/home/monsterubuntu/knightonline/server/LogInServer/../shared/ByteBuffer.h:9:14: warning: bool ByteBuffer::m_doubleByte [-Wreorder]
9 | bool m_doubleByte;
| ^~~~~~~~~~~~
/home/monsterubuntu/knightonline/server/LogInServer/../shared/ByteBuffer.h:11:9: warning: when initialized here [-Wreorder]
11 | ByteBuffer(): _rpos(0), _wpos(0), m_doubleByte(true) { _storage.reserve(DEFAULT_SIZE); }
| ^~~~~~~~~~
/home/monsterubuntu/knightonline/server/LogInServer/../shared/ByteBuffer.h: In constructor ByteBuffer::ByteBuffer(size_t):
/home/monsterubuntu/knightonline/server/LogInServer/../shared/ByteBuffer.h:173:23: warning: ByteBuffer::_wpos will be initialized after [-Wreorder]
173 | size_t _rpos, _wpos;
| ^~~~~
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h: In constructor ByteBuffer::ByteBuffer(size_t):
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h:173:23: warning: ByteBuffer::_wpos will be initialized after [-Wreorder]
173 | size_t _rpos, _wpos;
| ^~~~~
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h:9:14: warning: bool ByteBuffer::m_doubleByte [-Wreorder]
9 | bool m_doubleByte;
| ^~~~~~~~~~~~
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h:12:9: warning: when initialized here [-Wreorder]
12 | ByteBuffer(size_t res): _rpos(0), _wpos(0), m_doubleByte(true) { _storage.reserve(res <= 0 ? DEFAULT_SIZE : res); }
| ^~~~~~~~~~
/home/monsterubuntu/knightonline/server/LogInServer/../shared/ByteBuffer.h:9:14: warning: bool ByteBuffer::m_doubleByte [-Wreorder]
9 | bool m_doubleByte;
| ^~~~~~~~~~~~
/home/monsterubuntu/knightonline/server/LogInServer/../shared/ByteBuffer.h:12:9: warning: when initialized here [-Wreorder]
12 | ByteBuffer(size_t res): _rpos(0), _wpos(0), m_doubleByte(true) { _storage.reserve(res <= 0 ? DEFAULT_SIZE : res); }
| ^~~~~~~~~~
/home/monsterubuntu/knightonline/server/shared/globals.h: In function time_t getMSTime():
/home/monsterubuntu/knightonline/server/shared/globals.h:562:9: error: gettimeofday was not declared in this scope
562 | gettimeofday(&tv, nullptr);
| ^~~~~~~~~~~~
/home/monsterubuntu/knightonline/server/LogInServer/../shared/globals.h: In function time_t getMSTime():
/home/monsterubuntu/knightonline/server/LogInServer/../shared/globals.h:562:9: error: gettimeofday was not declared in this scope
562 | gettimeofday(&tv, nullptr);
| ^~~~~~~~~~~~
/home/monsterubuntu/knightonline/server/LogInServer/../shared/ByteBuffer.h: In member function void ByteBuffer::append(const void*, size_t):
/home/monsterubuntu/knightonline/server/LogInServer/../shared/ByteBuffer.h:149:31: warning: value computed is not used [-Wunused-value]
149 | ASSERT(size() < 10000000);
| ~~~~~~~~^~~~~~~~~~~
/home/monsterubuntu/knightonline/server/LogInServer/../shared/ByteBuffer.h: In member function void ByteBuffer::append(const ByteBuffer&, size_t):
/home/monsterubuntu/knightonline/server/LogInServer/../shared/ByteBuffer.h:161:43: warning: value computed is not used [-Wunused-value]
161 | ASSERT(buffer._rpos + len <= buffer.size());
| ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
/home/monsterubuntu/knightonline/server/LogInServer/../shared/ByteBuffer.h: In member function void ByteBuffer::put(size_t, const void*, size_t):
/home/monsterubuntu/knightonline/server/LogInServer/../shared/ByteBuffer.h:167:34: warning: value computed is not used [-Wunused-value]
167 | ASSERT(pos + cnt <= size());
| ~~~~~~~~~~~^~~~~~~~~~
In file included from /home/monsterubuntu/knightonline/server/shared/Network.h:4:
/home/monsterubuntu/knightonline/server/shared/SocketDefines.h: In member function void OverlappedStruct::Mark():
/home/monsterubuntu/knightonline/server/shared/SocketDefines.h:57:31: warning: left operand of comma operator has no effect [-Wunused-value]
57 | TRACE("!!!! Network: Detected double use of read/write event! Previous event was %u.\n", m_event);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h: In member function void ByteBuffer::append(const void*, size_t):
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h:149:31: warning: value computed is not used [-Wunused-value]
149 | ASSERT(size() < 10000000);
| ~~~~~~~~^~~~~~~~~~~
In file included from /home/monsterubuntu/knightonline/server/LogInServer/../shared/Network.h:4:
/home/monsterubuntu/knightonline/server/LogInServer/../shared/SocketDefines.h: In member function void OverlappedStruct::Mark():
/home/monsterubuntu/knightonline/server/LogInServer/../shared/SocketDefines.h:57:31: warning: left operand of comma operator has no effect [-Wunused-value]
57 | TRACE("!!!! Network: Detected double use of read/write event! Previous event was %u.\n", m_event);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h: In member function void ByteBuffer::append(const ByteBuffer&, size_t):
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h:161:43: warning: value computed is not used [-Wunused-value]
161 | ASSERT(buffer._rpos + len <= buffer.size());
| ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h: In member function void ByteBuffer::put(size_t, const void*, size_t):
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h:167:34: warning: value computed is not used [-Wunused-value]
167 | ASSERT(pos + cnt <= size());
| ~~~~~~~~~~~^~~~~~~~~~
In file included from /home/monsterubuntu/knightonline/server/LogInServer/../shared/Packet.h:3,
from /home/monsterubuntu/knightonline/server/LogInServer/../shared/globals.h:5:
/home/monsterubuntu/knightonline/server/LogInServer/../shared/ByteBuffer.h: In constructor ByteBuffer::ByteBuffer():
/home/monsterubuntu/knightonline/server/LogInServer/../shared/ByteBuffer.h:173:23: warning: ByteBuffer::_wpos will be initialized after [-Wreorder]
173 | size_t _rpos, _wpos;
| ^~~~~
/home/monsterubuntu/knightonline/server/LogInServer/../shared/ByteBuffer.h:9:14: warning: bool ByteBuffer::m_doubleByte [-Wreorder]
9 | bool m_doubleByte;
| ^~~~~~~~~~~~
/home/monsterubuntu/knightonline/server/LogInServer/../shared/ByteBuffer.h:11:9: warning: when initialized here [-Wreorder]
11 | ByteBuffer(): _rpos(0), _wpos(0), m_doubleByte(true) { _storage.reserve(DEFAULT_SIZE); }
| ^~~~~~~~~~
/home/monsterubuntu/knightonline/server/LogInServer/../shared/ByteBuffer.h: In constructor ByteBuffer::ByteBuffer(size_t):
/home/monsterubuntu/knightonline/server/LogInServer/../shared/ByteBuffer.h:173:23: warning: ByteBuffer::_wpos will be initialized after [-Wreorder]
173 | size_t _rpos, _wpos;
| ^~~~~
/home/monsterubuntu/knightonline/server/LogInServer/../shared/ByteBuffer.h:9:14: warning: bool ByteBuffer::m_doubleByte [-Wreorder]
9 | bool m_doubleByte;
| ^~~~~~~~~~~~
/home/monsterubuntu/knightonline/server/LogInServer/../shared/ByteBuffer.h:12:9: warning: when initialized here [-Wreorder]
12 | ByteBuffer(size_t res): _rpos(0), _wpos(0), m_doubleByte(true) { _storage.reserve(res <= 0 ? DEFAULT_SIZE : res); }
| ^~~~~~~~~~
In file included from /home/monsterubuntu/knightonline/server/shared/Packet.h:3,
from /home/monsterubuntu/knightonline/server/shared/globals.h:5:
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h: In constructor ByteBuffer::ByteBuffer():
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h:173:23: warning: ByteBuffer::_wpos will be initialized after [-Wreorder]
173 | size_t _rpos, _wpos;
| ^~~~~
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h:9:14: warning: bool ByteBuffer::m_doubleByte [-Wreorder]
9 | bool m_doubleByte;
| ^~~~~~~~~~~~
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h:11:9: warning: when initialized here [-Wreorder]
11 | ByteBuffer(): _rpos(0), _wpos(0), m_doubleByte(true) { _storage.reserve(DEFAULT_SIZE); }
| ^~~~~~~~~~
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h: In constructor ByteBuffer::ByteBuffer(size_t):
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h:173:23: warning: ByteBuffer::_wpos will be initialized after [-Wreorder]
173 | size_t _rpos, _wpos;
| ^~~~~
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h:9:14: warning: bool ByteBuffer::m_doubleByte [-Wreorder]
9 | bool m_doubleByte;
| ^~~~~~~~~~~~
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h:12:9: warning: when initialized here [-Wreorder]
12 | ByteBuffer(size_t res): _rpos(0), _wpos(0), m_doubleByte(true) { _storage.reserve(res <= 0 ? DEFAULT_SIZE : res); }
| ^~~~~~~~~~
In file included from /home/monsterubuntu/knightonline/server/LogInServer/../shared/Packet.h:3,
from /home/monsterubuntu/knightonline/server/LogInServer/../shared/globals.h:5:
/home/monsterubuntu/knightonline/server/LogInServer/../shared/ByteBuffer.h: In constructor ByteBuffer::ByteBuffer():
/home/monsterubuntu/knightonline/server/LogInServer/../shared/ByteBuffer.h:173:23: warning: ByteBuffer::_wpos will be initialized after [-Wreorder]
173 | size_t _rpos, _wpos;
| ^~~~~
/home/monsterubuntu/knightonline/server/LogInServer/../shared/ByteBuffer.h:9:14: warning: bool ByteBuffer::m_doubleByte [-Wreorder]
9 | bool m_doubleByte;
| ^~~~~~~~~~~~
/home/monsterubuntu/knightonline/server/LogInServer/../shared/ByteBuffer.h:11:9: warning: when initialized here [-Wreorder]
11 | ByteBuffer(): _rpos(0), _wpos(0), m_doubleByte(true) { _storage.reserve(DEFAULT_SIZE); }
| ^~~~~~~~~~
In file included from /home/monsterubuntu/knightonline/server/shared/Packet.h:3,
from /home/monsterubuntu/knightonline/server/shared/globals.h:5:
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h: In constructor ByteBuffer::ByteBuffer():
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h:173:23: warning: ByteBuffer::_wpos will be initialized after [-Wreorder]
173 | size_t _rpos, _wpos;
| ^~~~~
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h:9:14: warning: bool ByteBuffer::m_doubleByte [-Wreorder]
9 | bool m_doubleByte;
| ^~~~~~~~~~~~
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h:11:9: warning: when initialized here [-Wreorder]
11 | ByteBuffer(): _rpos(0), _wpos(0), m_doubleByte(true) { _storage.reserve(DEFAULT_SIZE); }
| ^~~~~~~~~~
/home/monsterubuntu/knightonline/server/LogInServer/../shared/ByteBuffer.h: In constructor ByteBuffer::ByteBuffer(size_t):
/home/monsterubuntu/knightonline/server/LogInServer/../shared/ByteBuffer.h:173:23: warning: ByteBuffer::_wpos will be initialized after [-Wreorder]
173 | size_t _rpos, _wpos;
| ^~~~~
/home/monsterubuntu/knightonline/server/LogInServer/../shared/ByteBuffer.h:9:14: warning: bool ByteBuffer::m_doubleByte [-Wreorder]
9 | bool m_doubleByte;
| ^~~~~~~~~~~~
/home/monsterubuntu/knightonline/server/LogInServer/../shared/ByteBuffer.h:12:9: warning: when initialized here [-Wreorder]
12 | ByteBuffer(size_t res): _rpos(0), _wpos(0), m_doubleByte(true) { _storage.reserve(res <= 0 ? DEFAULT_SIZE : res); }
| ^~~~~~~~~~
In file included from /home/monsterubuntu/knightonline/server/shared/Packet.h:3,
from /home/monsterubuntu/knightonline/server/shared/globals.h:5:
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h: In constructor ByteBuffer::ByteBuffer():
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h:173:23: warning: ByteBuffer::_wpos will be initialized after [-Wreorder]
173 | size_t _rpos, _wpos;
| ^~~~~
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h:9:14: warning: bool ByteBuffer::m_doubleByte [-Wreorder]
9 | bool m_doubleByte;
| ^~~~~~~~~~~~
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h:11:9: warning: when initialized here [-Wreorder]
11 | ByteBuffer(): _rpos(0), _wpos(0), m_doubleByte(true) { _storage.reserve(DEFAULT_SIZE); }
| ^~~~~~~~~~
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h: In constructor ByteBuffer::ByteBuffer(size_t):
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h:173:23: warning: ByteBuffer::_wpos will be initialized after [-Wreorder]
173 | size_t _rpos, _wpos;
| ^~~~~
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h:9:14: warning: bool ByteBuffer::m_doubleByte [-Wreorder]
9 | bool m_doubleByte;
| ^~~~~~~~~~~~
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h:12:9: warning: when initialized here [-Wreorder]
12 | ByteBuffer(size_t res): _rpos(0), _wpos(0), m_doubleByte(true) { _storage.reserve(res <= 0 ? DEFAULT_SIZE : res); }
| ^~~~~~~~~~
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h: In constructor ByteBuffer::ByteBuffer(size_t):
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h:173:23: warning: ByteBuffer::_wpos will be initialized after [-Wreorder]
173 | size_t _rpos, _wpos;
| ^~~~~
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h:9:14: warning: bool ByteBuffer::m_doubleByte [-Wreorder]
9 | bool m_doubleByte;
| ^~~~~~~~~~~~
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h:12:9: warning: when initialized here [-Wreorder]
12 | ByteBuffer(size_t res): _rpos(0), _wpos(0), m_doubleByte(true) { _storage.reserve(res <= 0 ? DEFAULT_SIZE : res); }
| ^~~~~~~~~~
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h: In member function void ByteBuffer::append(const void*, size_t):
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h:149:31: warning: value computed is not used [-Wunused-value]
149 | ASSERT(size() < 10000000);
| ~~~~~~~~^~~~~~~~~~~
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h: In member function void ByteBuffer::append(const ByteBuffer&, size_t):
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h:161:43: warning: value computed is not used [-Wunused-value]
161 | ASSERT(buffer._rpos + len <= buffer.size());
| ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h: In member function void ByteBuffer::put(size_t, const void*, size_t):
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h:167:34: warning: value computed is not used [-Wunused-value]
167 | ASSERT(pos + cnt <= size());
| ~~~~~~~~~~~^~~~~~~~~~
/home/monsterubuntu/knightonline/server/LogInServer/../shared/ByteBuffer.h: In member function void ByteBuffer::append(const void*, size_t):
/home/monsterubuntu/knightonline/server/LogInServer/../shared/ByteBuffer.h:149:31: warning: value computed is not used [-Wunused-value]
149 | ASSERT(size() < 10000000);
| ~~~~~~~~^~~~~~~~~~~
/home/monsterubuntu/knightonline/server/LogInServer/../shared/ByteBuffer.h: In member function void ByteBuffer::append(const ByteBuffer&, size_t):
/home/monsterubuntu/knightonline/server/LogInServer/../shared/ByteBuffer.h:161:43: warning: value computed is not used [-Wunused-value]
161 | ASSERT(buffer._rpos + len <= buffer.size());
| ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
/home/monsterubuntu/knightonline/server/LogInServer/../shared/ByteBuffer.h: In member function void ByteBuffer::put(size_t, const void*, size_t):
/home/monsterubuntu/knightonline/server/LogInServer/../shared/ByteBuffer.h:167:34: warning: value computed is not used [-Wunused-value]
167 | ASSERT(pos + cnt <= size());
| ~~~~~~~~~~~^~~~~~~~~~
/home/monsterubuntu/knightonline/server/LogInServer/../shared/ByteBuffer.h: In member function void ByteBuffer::append(const void*, size_t):
/home/monsterubuntu/knightonline/server/LogInServer/../shared/ByteBuffer.h:149:31: warning: value computed is not used [-Wunused-value]
149 | ASSERT(size() < 10000000);
| ~~~~~~~~^~~~~~~~~~~
/home/monsterubuntu/knightonline/server/LogInServer/../shared/ByteBuffer.h: In member function void ByteBuffer::append(const ByteBuffer&, size_t):
/home/monsterubuntu/knightonline/server/LogInServer/../shared/ByteBuffer.h:161:43: warning: value computed is not used [-Wunused-value]
161 | ASSERT(buffer._rpos + len <= buffer.size());
| ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
/home/monsterubuntu/knightonline/server/LogInServer/../shared/ByteBuffer.h: In member function void ByteBuffer::put(size_t, const void*, size_t):
/home/monsterubuntu/knightonline/server/LogInServer/../shared/ByteBuffer.h:167:34: warning: value computed is not used [-Wunused-value]
167 | ASSERT(pos + cnt <= size());
| ~~~~~~~~~~~^~~~~~~~~~
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h: In member function void ByteBuffer::append(const void*, size_t):
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h:149:31: warning: value computed is not used [-Wunused-value]
149 | ASSERT(size() < 10000000);
| ~~~~~~~~^~~~~~~~~~~
/home/monsterubuntu/knightonline/server/shared/globals.h: In function time_t getMSTime():
/home/monsterubuntu/knightonline/server/shared/globals.h:562:9: error: gettimeofday was not declared in this scope
562 | gettimeofday(&tv, nullptr);
| ^~~~~~~~~~~~
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h: In member function void ByteBuffer::append(const ByteBuffer&, size_t):
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h:161:43: warning: value computed is not used [-Wunused-value]
161 | ASSERT(buffer._rpos + len <= buffer.size());
| ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h: In member function void ByteBuffer::put(size_t, const void*, size_t):
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h:167:34: warning: value computed is not used [-Wunused-value]
167 | ASSERT(pos + cnt <= size());
| ~~~~~~~~~~~^~~~~~~~~~
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h: In member function void ByteBuffer::append(const void*, size_t):
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h:149:31: warning: value computed is not used [-Wunused-value]
149 | ASSERT(size() < 10000000);
| ~~~~~~~~^~~~~~~~~~~
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h: In member function void ByteBuffer::append(const ByteBuffer&, size_t):
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h:161:43: warning: value computed is not used [-Wunused-value]
161 | ASSERT(buffer._rpos + len <= buffer.size());
| ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h: In member function void ByteBuffer::put(size_t, const void*, size_t):
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h:167:34: warning: value computed is not used [-Wunused-value]
167 | ASSERT(pos + cnt <= size());
| ~~~~~~~~~~~^~~~~~~~~~
In file included from /home/monsterubuntu/knightonline/server/shared/Network.h:4:
/home/monsterubuntu/knightonline/server/shared/SocketDefines.h: In member function void OverlappedStruct::Mark():
/home/monsterubuntu/knightonline/server/shared/SocketDefines.h:57:31: warning: left operand of comma operator has no effect [-Wunused-value]
57 | TRACE("!!!! Network: Detected double use of read/write event! Previous event was %u.\n", m_event);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/sql.h:19,
from /usr/include/sqlext.h:43,
from /home/monsterubuntu/knightonline/server/LogInServer/../shared/database/OdbcConnection.h:5:
/usr/include/sqltypes.h: At global scope:
/usr/include/sqltypes.h:95:9: error: multiple types in one declaration
95 | typedef char TCHAR;
| ^~~~
In file included from /home/monsterubuntu/knightonline/server/LogInServer/../shared/stdafx.h:163:
/home/monsterubuntu/knightonline/server/LogInServer/../shared/tstring.h:11:15: error: declaration does not declare anything [-fpermissive]
11 | #define TCHAR char
| ^~~~
/usr/include/sqltypes.h:102:33: error: conflicting declaration typedef unsigned int DWORD
102 | typedef unsigned int DWORD;
| ^~~~~
/home/monsterubuntu/knightonline/server/LogInServer/../shared/stdafx.h:46:31: note: previous declaration as typedef long unsigned int DWORD
46 | typedef unsigned long DWORD;
| ^~~~~
/home/monsterubuntu/knightonline/server/LogInServer/../shared/globals.h: In function time_t getMSTime():
/home/monsterubuntu/knightonline/server/LogInServer/../shared/globals.h:562:9: error: gettimeofday was not declared in this scope
562 | gettimeofday(&tv, nullptr);
| ^~~~~~~~~~~~
In file included from /home/monsterubuntu/knightonline/server/LogInServer/../shared/Packet.h:3,
from /home/monsterubuntu/knightonline/server/LogInServer/../shared/globals.h:5:
/home/monsterubuntu/knightonline/server/LogInServer/../shared/ByteBuffer.h: In constructor ByteBuffer::ByteBuffer():
/home/monsterubuntu/knightonline/server/LogInServer/../shared/ByteBuffer.h:173:23: warning: ByteBuffer::_wpos will be initialized after [-Wreorder]
173 | size_t _rpos, _wpos;
| ^~~~~
In file included from /home/monsterubuntu/knightonline/server/LogInServer/../shared/Network.h:4:
/home/monsterubuntu/knightonline/server/LogInServer/../shared/SocketDefines.h: In member function void OverlappedStruct::Mark():
/home/monsterubuntu/knightonline/server/LogInServer/../shared/SocketDefines.h:57:31: warning: left operand of comma operator has no effect [-Wunused-value]
57 | TRACE("!!!! Network: Detected double use of read/write event! Previous event was %u.\n", m_event);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/monsterubuntu/knightonline/server/LogInServer/../shared/ByteBuffer.h:9:14: warning: bool ByteBuffer::m_doubleByte [-Wreorder]
9 | bool m_doubleByte;
| ^~~~~~~~~~~~
/home/monsterubuntu/knightonline/server/LogInServer/../shared/ByteBuffer.h:11:9: warning: when initialized here [-Wreorder]
11 | ByteBuffer(): _rpos(0), _wpos(0), m_doubleByte(true) { _storage.reserve(DEFAULT_SIZE); }
| ^~~~~~~~~~
In file included from /home/monsterubuntu/knightonline/server/shared/Packet.h:3,
from /home/monsterubuntu/knightonline/server/shared/globals.h:5:
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h: In constructor ByteBuffer::ByteBuffer():
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h:173:23: warning: ByteBuffer::_wpos will be initialized after [-Wreorder]
173 | size_t _rpos, _wpos;
| ^~~~~
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h:9:14: warning: bool ByteBuffer::m_doubleByte [-Wreorder]
9 | bool m_doubleByte;
| ^~~~~~~~~~~~
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h:11:9: warning: when initialized here [-Wreorder]
11 | ByteBuffer(): _rpos(0), _wpos(0), m_doubleByte(true) { _storage.reserve(DEFAULT_SIZE); }
| ^~~~~~~~~~
/home/monsterubuntu/knightonline/server/shared/globals.h: In function time_t getMSTime():
/home/monsterubuntu/knightonline/server/shared/globals.h:562:9: error: gettimeofday was not declared in this scope
562 | gettimeofday(&tv, nullptr);
| ^~~~~~~~~~~~
/home/monsterubuntu/knightonline/server/LogInServer/../shared/ByteBuffer.h: In constructor ByteBuffer::ByteBuffer(size_t):
/home/monsterubuntu/knightonline/server/LogInServer/../shared/ByteBuffer.h:173:23: warning: ByteBuffer::_wpos will be initialized after [-Wreorder]
173 | size_t _rpos, _wpos;
| ^~~~~
/home/monsterubuntu/knightonline/server/LogInServer/../shared/ByteBuffer.h:9:14: warning: bool ByteBuffer::m_doubleByte [-Wreorder]
9 | bool m_doubleByte;
| ^~~~~~~~~~~~
/home/monsterubuntu/knightonline/server/LogInServer/../shared/ByteBuffer.h:12:9: warning: when initialized here [-Wreorder]
12 | ByteBuffer(size_t res): _rpos(0), _wpos(0), m_doubleByte(true) { _storage.reserve(res <= 0 ? DEFAULT_SIZE : res); }
| ^~~~~~~~~~
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h: In constructor ByteBuffer::ByteBuffer(size_t):
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h:173:23: warning: ByteBuffer::_wpos will be initialized after [-Wreorder]
173 | size_t _rpos, _wpos;
| ^~~~~
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h:9:14: warning: bool ByteBuffer::m_doubleByte [-Wreorder]
9 | bool m_doubleByte;
| ^~~~~~~~~~~~
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h:12:9: warning: when initialized here [-Wreorder]
12 | ByteBuffer(size_t res): _rpos(0), _wpos(0), m_doubleByte(true) { _storage.reserve(res <= 0 ? DEFAULT_SIZE : res); }
| ^~~~~~~~~~
/home/monsterubuntu/knightonline/server/LogInServer/../shared/globals.h: In function time_t getMSTime():
/home/monsterubuntu/knightonline/server/LogInServer/../shared/globals.h:562:9: error: gettimeofday was not declared in this scope
562 | gettimeofday(&tv, nullptr);
| ^~~~~~~~~~~~
/home/monsterubuntu/knightonline/server/shared/globals.h: In function time_t getMSTime():
/home/monsterubuntu/knightonline/server/shared/globals.h:562:9: error: gettimeofday was not declared in this scope
562 | gettimeofday(&tv, nullptr);
| ^~~~~~~~~~~~
In file included from /home/monsterubuntu/knightonline/server/shared/Network.h:4:
/home/monsterubuntu/knightonline/server/shared/SocketDefines.h: In member function void OverlappedStruct::Mark():
/home/monsterubuntu/knightonline/server/shared/SocketDefines.h:57:31: warning: left operand of comma operator has no effect [-Wunused-value]
57 | TRACE("!!!! Network: Detected double use of read/write event! Previous event was %u.\n", m_event);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/monsterubuntu/knightonline/server/LogInServer/../shared/ByteBuffer.h: In member function void ByteBuffer::append(const void*, size_t):
/home/monsterubuntu/knightonline/server/LogInServer/../shared/ByteBuffer.h:149:31: warning: value computed is not used [-Wunused-value]
149 | ASSERT(size() < 10000000);
| ~~~~~~~~^~~~~~~~~~~
/home/monsterubuntu/knightonline/server/LogInServer/../shared/ByteBuffer.h: In member function void ByteBuffer::append(const ByteBuffer&, size_t):
/home/monsterubuntu/knightonline/server/LogInServer/../shared/ByteBuffer.h:161:43: warning: value computed is not used [-Wunused-value]
161 | ASSERT(buffer._rpos + len <= buffer.size());
| ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
/home/monsterubuntu/knightonline/server/LogInServer/../shared/ByteBuffer.h: In member function void ByteBuffer::put(size_t, const void*, size_t):
/home/monsterubuntu/knightonline/server/LogInServer/../shared/ByteBuffer.h:167:34: warning: value computed is not used [-Wunused-value]
167 | ASSERT(pos + cnt <= size());
| ~~~~~~~~~~~^~~~~~~~~~
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h: In member function void ByteBuffer::append(const void*, size_t):
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h:149:31: warning: value computed is not used [-Wunused-value]
149 | ASSERT(size() < 10000000);
| ~~~~~~~~^~~~~~~~~~~
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h: In member function void ByteBuffer::append(const ByteBuffer&, size_t):
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h:161:43: warning: value computed is not used [-Wunused-value]
161 | ASSERT(buffer._rpos + len <= buffer.size());
| ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h: In member function void ByteBuffer::put(size_t, const void*, size_t):
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h:167:34: warning: value computed is not used [-Wunused-value]
167 | ASSERT(pos + cnt <= size());
| ~~~~~~~~~~~^~~~~~~~~~
In file included from /home/monsterubuntu/knightonline/server/shared/Network.h:4:
/home/monsterubuntu/knightonline/server/shared/SocketDefines.h: In member function void OverlappedStruct::Mark():
/home/monsterubuntu/knightonline/server/shared/SocketDefines.h:57:31: warning: left operand of comma operator has no effect [-Wunused-value]
57 | TRACE("!!!! Network: Detected double use of read/write event! Previous event was %u.\n", m_event);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/monsterubuntu/knightonline/server/shared/globals.h: In function time_t getMSTime():
/home/monsterubuntu/knightonline/server/shared/globals.h:562:9: error: gettimeofday was not declared in this scope
562 | gettimeofday(&tv, nullptr);
| ^~~~~~~~~~~~
/home/monsterubuntu/knightonline/server/LogInServer/../shared/database/OdbcConnection.h:28:12: warning: declaration class std::recursive_mutex does not declare anything
28 | class std::recursive_mutex;
| ^~~~~~~~~~~~~~~
In file included from /home/monsterubuntu/knightonline/server/LogInServer/../shared/Network.h:4:
/home/monsterubuntu/knightonline/server/LogInServer/../shared/SocketDefines.h: In member function void OverlappedStruct::Mark():
/home/monsterubuntu/knightonline/server/LogInServer/../shared/SocketDefines.h:57:31: warning: left operand of comma operator has no effect [-Wunused-value]
57 | TRACE("!!!! Network: Detected double use of read/write event! Previous event was %u.\n", m_event);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/monsterubuntu/knightonline/server/shared/TimeThread.cpp: In function uint32 TimeThread(void*):
/home/monsterubuntu/knightonline/server/shared/TimeThread.cpp:26:37: warning: unused parameter lpParam [-Wunused-parameter]
26 | uint32 THREADCALL TimeThread(void * lpParam)
| ~~~~~~~^~~~~~~
/home/monsterubuntu/knightonline/server/LogInServer/../shared/globals.h: In function time_t getMSTime():
/home/monsterubuntu/knightonline/server/LogInServer/../shared/globals.h:562:9: error: gettimeofday was not declared in this scope
562 | gettimeofday(&tv, nullptr);
| ^~~~~~~~~~~~
In file included from /home/monsterubuntu/knightonline/server/shared/Network.h:4:
/home/monsterubuntu/knightonline/server/shared/SocketDefines.h: In member function void OverlappedStruct::Mark():
/home/monsterubuntu/knightonline/server/shared/SocketDefines.h:57:31: warning: left operand of comma operator has no effect [-Wunused-value]
57 | TRACE("!!!! Network: Detected double use of read/write event! Previous event was %u.\n", m_event);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/monsterubuntu/knightonline/server/LogInServer/../shared/Network.h:4:
/home/monsterubuntu/knightonline/server/LogInServer/../shared/SocketDefines.h: In member function void OverlappedStruct::Mark():
/home/monsterubuntu/knightonline/server/LogInServer/../shared/SocketDefines.h:57:31: warning: left operand of comma operator has no effect [-Wunused-value]
57 | TRACE("!!!! Network: Detected double use of read/write event! Previous event was %u.\n", m_event);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/sql.h:19,
from /usr/include/sqlext.h:43,
from /home/monsterubuntu/knightonline/server/LogInServer/../shared/database/OdbcConnection.h:5:
/usr/include/sqltypes.h: At global scope:
/usr/include/sqltypes.h:95:9: error: multiple types in one declaration
95 | typedef char TCHAR;
| ^~~~
In file included from /home/monsterubuntu/knightonline/server/LogInServer/../shared/stdafx.h:163:
/home/monsterubuntu/knightonline/server/LogInServer/../shared/tstring.h:11:15: error: declaration does not declare anything [-fpermissive]
11 | #define TCHAR char
| ^~~~
/usr/include/sqltypes.h:102:33: error: conflicting declaration typedef unsigned int DWORD
102 | typedef unsigned int DWORD;
| ^~~~~
/home/monsterubuntu/knightonline/server/LogInServer/../shared/stdafx.h:46:31: note: previous declaration as typedef long unsigned int DWORD
46 | typedef unsigned long DWORD;
| ^~~~~
/home/monsterubuntu/knightonline/server/LogInServer/../shared/globals.h: In function time_t getMSTime():
/home/monsterubuntu/knightonline/server/LogInServer/../shared/globals.h:562:9: error: gettimeofday was not declared in this scope
562 | gettimeofday(&tv, nullptr);
| ^~~~~~~~~~~~
/home/monsterubuntu/knightonline/server/shared/globals.h: In function time_t getMSTime():
/home/monsterubuntu/knightonline/server/shared/globals.h:562:9: error: gettimeofday was not declared in this scope
562 | gettimeofday(&tv, nullptr);
| ^~~~~~~~~~~~
In file included from /home/monsterubuntu/knightonline/server/LogInServer/../shared/Network.h:4:
/home/monsterubuntu/knightonline/server/LogInServer/../shared/SocketDefines.h: In member function void OverlappedStruct::Mark():
/home/monsterubuntu/knightonline/server/LogInServer/../shared/SocketDefines.h:57:31: warning: left operand of comma operator has no effect [-Wunused-value]
57 | TRACE("!!!! Network: Detected double use of read/write event! Previous event was %u.\n", m_event);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/sql.h:19,
from /usr/include/sqlext.h:43,
from /home/monsterubuntu/knightonline/server/LogInServer/../shared/database/OdbcConnection.h:5:
/usr/include/sqltypes.h: At global scope:
/usr/include/sqltypes.h:95:9: error: multiple types in one declaration
95 | typedef char TCHAR;
| ^~~~
In file included from /home/monsterubuntu/knightonline/server/LogInServer/../shared/stdafx.h:163:
/home/monsterubuntu/knightonline/server/LogInServer/../shared/tstring.h:11:15: error: declaration does not declare anything [-fpermissive]
11 | #define TCHAR char
| ^~~~
/usr/include/sqltypes.h:102:33: error: conflicting declaration typedef unsigned int DWORD
102 | typedef unsigned int DWORD;
| ^~~~~
/home/monsterubuntu/knightonline/server/LogInServer/../shared/stdafx.h:46:31: note: previous declaration as typedef long unsigned int DWORD
46 | typedef unsigned long DWORD;
| ^~~~~
In file included from /home/monsterubuntu/knightonline/server/shared/Network.h:4:
/home/monsterubuntu/knightonline/server/shared/SocketDefines.h: In member function void OverlappedStruct::Mark():
/home/monsterubuntu/knightonline/server/shared/SocketDefines.h:57:31: warning: left operand of comma operator has no effect [-Wunused-value]
57 | TRACE("!!!! Network: Detected double use of read/write event! Previous event was %u.\n", m_event);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/monsterubuntu/knightonline/server/LogInServer/../shared/database/OdbcConnection.h:28:12: warning: declaration class std::recursive_mutex does not declare anything
28 | class std::recursive_mutex;
| ^~~~~~~~~~~~~~~
In file included from /usr/include/sql.h:19,
from /usr/include/sqlext.h:43,
from /home/monsterubuntu/knightonline/server/LogInServer/../shared/database/OdbcConnection.h:5:
/usr/include/sqltypes.h: At global scope:
/usr/include/sqltypes.h:95:9: error: multiple types in one declaration
95 | typedef char TCHAR;
| ^~~~
In file included from /home/monsterubuntu/knightonline/server/LogInServer/../shared/stdafx.h:163:
/home/monsterubuntu/knightonline/server/LogInServer/../shared/tstring.h:11:15: error: declaration does not declare anything [-fpermissive]
11 | #define TCHAR char
| ^~~~
/usr/include/sqltypes.h:102:33: error: conflicting declaration typedef unsigned int DWORD
102 | typedef unsigned int DWORD;
| ^~~~~
/home/monsterubuntu/knightonline/server/LogInServer/../shared/stdafx.h:46:31: note: previous declaration as typedef long unsigned int DWORD
46 | typedef unsigned long DWORD;
| ^~~~~
/home/monsterubuntu/knightonline/server/LogInServer/../shared/database/OdbcConnection.h:28:12: warning: declaration class std::recursive_mutex does not declare anything
28 | class std::recursive_mutex;
| ^~~~~~~~~~~~~~~
In file included from /usr/include/sql.h:19,
from /usr/include/sqlext.h:43,
from /home/monsterubuntu/knightonline/server/LogInServer/../shared/database/OdbcConnection.h:5:
/usr/include/sqltypes.h: At global scope:
/usr/include/sqltypes.h:95:9: error: multiple types in one declaration
95 | typedef char TCHAR;
| ^~~~
In file included from /home/monsterubuntu/knightonline/server/LogInServer/../shared/stdafx.h:163:
/home/monsterubuntu/knightonline/server/LogInServer/../shared/tstring.h:11:15: error: declaration does not declare anything [-fpermissive]
11 | #define TCHAR char
| ^~~~
/usr/include/sqltypes.h:102:33: error: conflicting declaration typedef unsigned int DWORD
102 | typedef unsigned int DWORD;
| ^~~~~
/home/monsterubuntu/knightonline/server/LogInServer/../shared/stdafx.h:46:31: note: previous declaration as typedef long unsigned int DWORD
46 | typedef unsigned long DWORD;
| ^~~~~
/home/monsterubuntu/knightonline/server/LogInServer/../shared/database/OdbcConnection.h:28:12: warning: declaration class std::recursive_mutex does not declare anything
28 | class std::recursive_mutex;
| ^~~~~~~~~~~~~~~
/home/monsterubuntu/knightonline/server/LogInServer/../shared/database/OdbcConnection.h:28:12: warning: declaration class std::recursive_mutex does not declare anything
28 | class std::recursive_mutex;
| ^~~~~~~~~~~~~~~
In file included from /home/monsterubuntu/knightonline/server/shared/Network.h:7:
/home/monsterubuntu/knightonline/server/shared/SocketMgr.h: At global scope:
/home/monsterubuntu/knightonline/server/shared/SocketMgr.h:69:25: warning: ophandlers defined but not used [-Wunused-variable]
69 | static OperationHandler ophandlers[] =
| ^~~~~~~~~~
In file included from /home/monsterubuntu/knightonline/server/shared/Network.h:7:
/home/monsterubuntu/knightonline/server/shared/SocketMgr.h: At global scope:
/home/monsterubuntu/knightonline/server/shared/SocketMgr.h:69:25: warning: ophandlers defined but not used [-Wunused-variable]
69 | static OperationHandler ophandlers[] =
| ^~~~~~~~~~
/home/monsterubuntu/knightonline/server/LogInServer/LoginSession.cpp: In member function void LoginSession::HandleLogin(Packet&):
/home/monsterubuntu/knightonline/server/LogInServer/LoginSession.cpp:174:48: error: cannot bind non-const lvalue reference of type std::string& {aka std::__cxx11::basic_string<char>&} to an rvalue of type std::string {aka std::__cxx11::basic_string<char>}
174 | g_pMain->WriteUserLogFile(string_format("[ LOGIN - %d:%d:%d ] ID=%s Authentication=%s\n",time.GetHour(),time.GetMinute(),time.GetSecond(),account.c_str(),password.c_str(),sAuthMessage.c_str()));
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/monsterubuntu/knightonline/server/LogInServer/stdafx.h:7:
/home/monsterubuntu/knightonline/server/LogInServer/LoginServer.h:56:45: note: initializing argument 1 of void LoginServer::WriteUserLogFile(std::string&)
56 | void WriteUserLogFile(std::string & logMessage);
| ~~~~~~~~~~~~~~^~~~~~~~~~
/home/monsterubuntu/knightonline/server/LogInServer/LoginSession.cpp:109:15: warning: unused variable PremCode [-Wunused-variable]
109 | uint8 PremCode = 0;
| ^~~~~~~~
make[2]: *** [CMakeFiles/LoginServer.dir/build.make:188: CMakeFiles/LoginServer.dir/home/monsterubuntu/knightonline/server/shared/TimeThread.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [CMakeFiles/LoginServer.dir/build.make:146: CMakeFiles/LoginServer.dir/home/monsterubuntu/knightonline/server/shared/globals.cpp.o] Error 1
In file included from /home/monsterubuntu/knightonline/server/shared/Network.h:7:
/home/monsterubuntu/knightonline/server/shared/SocketMgr.h: At global scope:
/home/monsterubuntu/knightonline/server/shared/SocketMgr.h:69:25: warning: ophandlers defined but not used [-Wunused-variable]
69 | static OperationHandler ophandlers[] =
| ^~~~~~~~~~
make[2]: *** [CMakeFiles/LoginServer.dir/build.make:202: CMakeFiles/LoginServer.dir/home/monsterubuntu/knightonline/server/shared/Socket.cpp.o] Error 1
In file included from /home/monsterubuntu/knightonline/server/shared/Network.h:7:
/home/monsterubuntu/knightonline/server/shared/SocketMgr.h: At global scope:
/home/monsterubuntu/knightonline/server/shared/SocketMgr.h:69:25: warning: ophandlers defined but not used [-Wunused-variable]
69 | static OperationHandler ophandlers[] =
| ^~~~~~~~~~
/home/monsterubuntu/knightonline/server/LogInServer/DBProcess.cpp: In member function uint8 CDBProcess::PremiumInsert(std::string&, uint8, uint8):
/home/monsterubuntu/knightonline/server/LogInServer/DBProcess.cpp:102:14: warning: unused variable strPremiums [-Wunused-variable]
102 | char strPremiums[PREMIUM_TOTAL * 5] = {0};
| ^~~~~~~~~~~
make[2]: *** [CMakeFiles/LoginServer.dir/build.make:230: CMakeFiles/LoginServer.dir/home/monsterubuntu/knightonline/server/shared/Condition.cpp.o] Error 1
In file included from /home/monsterubuntu/knightonline/server/shared/Network.h:7:
/home/monsterubuntu/knightonline/server/shared/SocketMgr.h: At global scope:
/home/monsterubuntu/knightonline/server/shared/SocketMgr.h:69:25: warning: ophandlers defined but not used [-Wunused-variable]
69 | static OperationHandler ophandlers[] =
| ^~~~~~~~~~
/home/monsterubuntu/knightonline/server/shared/SocketMgr.cpp: In function uint32 SocketCleanupThread(void*):
/home/monsterubuntu/knightonline/server/shared/SocketMgr.cpp:12:46: warning: unused parameter lpParam [-Wunused-parameter]
12 | uint32 THREADCALL SocketCleanupThread(void * lpParam)
| ~~~~~~~^~~~~~~
In file included from /home/monsterubuntu/knightonline/server/shared/Network.h:7:
/home/monsterubuntu/knightonline/server/shared/SocketMgr.h: In constructor SocketMgr::SocketMgr():
/home/monsterubuntu/knightonline/server/shared/SocketMgr.h:51:14: warning: SocketMgr::m_bWorkerThreadsActive will be initialized after [-Wreorder]
51 | bool m_bWorkerThreadsActive;
| ^~~~~~~~~~~~~~~~~~~~~~
/home/monsterubuntu/knightonline/server/shared/SocketMgr.h:45:14: warning: bool SocketMgr::m_bShutdown [-Wreorder]
45 | bool m_bShutdown;
| ^~~~~~~~~~~
/home/monsterubuntu/knightonline/server/shared/SocketMgr.cpp:31:1: warning: when initialized here [-Wreorder]
31 | SocketMgr::SocketMgr() : m_threadCount(0),
| ^~~~~~~~~
make[2]: *** [CMakeFiles/LoginServer.dir/build.make:174: CMakeFiles/LoginServer.dir/home/monsterubuntu/knightonline/server/shared/Thread.cpp.o] Error 1
In file included from /home/monsterubuntu/knightonline/server/LogInServer/../shared/Network.h:7:
/home/monsterubuntu/knightonline/server/LogInServer/../shared/SocketMgr.h:69:25: warning: ophandlers defined but not used [-Wunused-variable]
69 | static OperationHandler ophandlers[] =
| ^~~~~~~~~~
In file included from /home/monsterubuntu/knightonline/server/LogInServer/../shared/Network.h:7:
/home/monsterubuntu/knightonline/server/LogInServer/../shared/SocketMgr.h:69:25: warning: ophandlers defined but not used [-Wunused-variable]
69 | static OperationHandler ophandlers[] =
| ^~~~~~~~~~
make[2]: *** [CMakeFiles/LoginServer.dir/build.make:132: CMakeFiles/LoginServer.dir/stdafx.cpp.o] Error 1
/home/monsterubuntu/knightonline/server/shared/SocketMgr.cpp: In member function void SocketMgr::SpawnWorkerThreads():
/home/monsterubuntu/knightonline/server/shared/SocketMgr.cpp:51:9: error: SYSTEM_INFO was not declared in this scope
51 | SYSTEM_INFO si;
| ^~~~~~~~~~~
make[2]: *** [CMakeFiles/LoginServer.dir/build.make:76: CMakeFiles/LoginServer.dir/main.cpp.o] Error 1
/home/monsterubuntu/knightonline/server/shared/SocketMgr.cpp:52:24: error: si was not declared in this scope; did you mean sin?
52 | GetSystemInfo(&si);
| ^~
| sin
/home/monsterubuntu/knightonline/server/shared/SocketMgr.cpp:52:9: error: GetSystemInfo was not declared in this scope
52 | GetSystemInfo(&si);
| ^~~~~~~~~~~~~
/home/monsterubuntu/knightonline/server/shared/SocketMgr.cpp: In static member function static uint32 SocketMgr::SocketWorkerThread(void*):
/home/monsterubuntu/knightonline/server/shared/SocketMgr.cpp:80:21: error: GetQueuedCompletionStatus was not declared in this scope
80 | if(!GetQueuedCompletionStatus(cp, &len, (LPDWORD)&s, &ol_ptr, 10000))
| ^~~~~~~~~~~~~~~~~~~~~~~~~
/home/monsterubuntu/knightonline/server/shared/SocketMgr.cpp: In member function void SocketMgr::Initialise():
/home/monsterubuntu/knightonline/server/shared/SocketMgr.cpp:105:28: error: cannot convert std::nullptr_t to HANDLE {aka int} in assignment
105 | m_completionPort = nullptr;
| ^~~~~~~
/home/monsterubuntu/knightonline/server/shared/SocketMgr.cpp: In member function void SocketMgr::CreateCompletionPort():
/home/monsterubuntu/knightonline/server/shared/SocketMgr.cpp:110:82: error: ULONG_PTR was not declared in this scope; did you mean ULONG_MAX?
110 | SetCompletionPort(CreateIoCompletionPort(INVALID_HANDLE_VALUE, nullptr, (ULONG_PTR)0, 0));
| ^~~~~~~~~
| ULONG_MAX
In file included from /home/monsterubuntu/knightonline/server/LogInServer/../shared/Network.h:7:
/home/monsterubuntu/knightonline/server/LogInServer/../shared/SocketMgr.h: At global scope:
/home/monsterubuntu/knightonline/server/LogInServer/../shared/SocketMgr.h:69:25: warning: ophandlers defined but not used [-Wunused-variable]
69 | static OperationHandler ophandlers[] =
| ^~~~~~~~~~
/home/monsterubuntu/knightonline/server/shared/SocketMgr.cpp:110:27: error: CreateIoCompletionPort was not declared in this scope; did you mean CreateCompletionPort?
110 | SetCompletionPort(CreateIoCompletionPort(INVALID_HANDLE_VALUE, nullptr, (ULONG_PTR)0, 0));
| ^~~~~~~~~~~~~~~~~~~~~~
| CreateCompletionPort
make[2]: *** [CMakeFiles/LoginServer.dir/build.make:104: CMakeFiles/LoginServer.dir/LoginSession.cpp.o] Error 1
/home/monsterubuntu/knightonline/server/shared/SocketMgr.cpp: In static member function static void SocketMgr::SetupWinsock():
/home/monsterubuntu/knightonline/server/shared/SocketMgr.cpp:115:9: error: WSADATA was not declared in this scope
115 | WSADATA wsaData;
| ^~~~~~~
/home/monsterubuntu/knightonline/server/shared/SocketMgr.cpp:116:20: error: MAKEWORD was not declared in this scope
116 | WSAStartup(MAKEWORD(2,0), &wsaData);
| ^~~~~~~~
In file included from /home/monsterubuntu/knightonline/server/LogInServer/../shared/Network.h:7:
/home/monsterubuntu/knightonline/server/LogInServer/../shared/SocketMgr.h: At global scope:
/home/monsterubuntu/knightonline/server/LogInServer/../shared/SocketMgr.h:69:25: warning: ophandlers defined but not used [-Wunused-variable]
69 | static OperationHandler ophandlers[] =
| ^~~~~~~~~~
/home/monsterubuntu/knightonline/server/shared/SocketMgr.cpp:116:36: error: wsaData was not declared in this scope
116 | WSAStartup(MAKEWORD(2,0), &wsaData);
| ^~~~~~~
make[2]: *** [CMakeFiles/LoginServer.dir/build.make:118: CMakeFiles/LoginServer.dir/DBProcess.cpp.o] Error 1
/home/monsterubuntu/knightonline/server/shared/SocketMgr.cpp:116:9: error: WSAStartup was not declared in this scope
116 | WSAStartup(MAKEWORD(2,0), &wsaData);
| ^~~~~~~~~~
/home/monsterubuntu/knightonline/server/shared/SocketMgr.cpp: In function void HandleShutdown(Socket*, uint32):
/home/monsterubuntu/knightonline/server/shared/SocketMgr.cpp:152:30: warning: unused parameter s [-Wunused-parameter]
152 | void HandleShutdown(Socket * s, uint32 len) {}
| ~~~~~~~~~^
/home/monsterubuntu/knightonline/server/shared/SocketMgr.cpp:152:40: warning: unused parameter len [-Wunused-parameter]
152 | void HandleShutdown(Socket * s, uint32 len) {}
| ~~~~~~~^~~
/home/monsterubuntu/knightonline/server/shared/SocketMgr.cpp: In member function virtual void SocketMgr::OnConnect(Socket*):
/home/monsterubuntu/knightonline/server/shared/SocketMgr.cpp:154:35: warning: unused parameter pSock [-Wunused-parameter]
154 | void SocketMgr::OnConnect(Socket *pSock) {}
| ~~~~~~~~^~~~~
/home/monsterubuntu/knightonline/server/shared/SocketMgr.cpp: In member function virtual void SocketMgr::DisconnectCallback(Socket*):
/home/monsterubuntu/knightonline/server/shared/SocketMgr.cpp:155:44: warning: unused parameter pSock [-Wunused-parameter]
155 | void SocketMgr::DisconnectCallback(Socket *pSock) {}
| ~~~~~~~~^~~~~
/home/monsterubuntu/knightonline/server/LogInServer/LoginServer.cpp: In static member function static uint32 LoginServer::Timer_UpdateUserCount(void*):
/home/monsterubuntu/knightonline/server/LogInServer/LoginServer.cpp:74:50: warning: unused parameter lpParam [-Wunused-parameter]
74 | uint32 LoginServer::Timer_UpdateUserCount(void * lpParam)
| ~~~~~~~^~~~~~~
/home/monsterubuntu/knightonline/server/LogInServer/LoginServer.cpp: In member function void LoginServer::GetInfoFromIni():
/home/monsterubuntu/knightonline/server/LogInServer/LoginServer.cpp:210:24: warning: unused variable oldPos [-Wunused-variable]
210 | size_t oldPos = 0, pos = 0;
| ^~~~~~
/home/monsterubuntu/knightonline/server/LogInServer/LoginServer.cpp:210:36: warning: unused variable pos [-Wunused-variable]
210 | size_t oldPos = 0, pos = 0;
| ^~~
/home/monsterubuntu/knightonline/server/LogInServer/LoginServer.cpp: In member function void LoginServer::ReportSQLError(OdbcError*):
/home/monsterubuntu/knightonline/server/LogInServer/LoginServer.cpp:253:15: warning: left operand of comma operator has no effect [-Wunused-value]
253 | TRACE("%s", errorMessage.c_str());
| ^~~~
/home/monsterubuntu/knightonline/server/shared/SocketMgr.cpp: In member function void SocketMgr::ShutdownThreads():
/home/monsterubuntu/knightonline/server/shared/SocketMgr.cpp:165:58: error: ULONG_PTR was not declared in this scope; did you mean ULONG_MAX?
165 | PostQueuedCompletionStatus(m_completionPort, 0, (ULONG_PTR)0, &ov->m_overlap);
| ^~~~~~~~~
| ULONG_MAX
/home/monsterubuntu/knightonline/server/shared/SocketMgr.cpp:165:9: error: PostQueuedCompletionStatus was not declared in this scope
165 | PostQueuedCompletionStatus(m_completionPort, 0, (ULONG_PTR)0, &ov->m_overlap);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/monsterubuntu/knightonline/server/shared/SocketMgr.cpp: In static member function static void SocketMgr::CleanupSockets():
/home/monsterubuntu/knightonline/server/shared/SocketMgr.cpp:204:9: error: WSACleanup was not declared in this scope
204 | WSACleanup();
| ^~~~~~~~~~
In file included from /home/monsterubuntu/knightonline/server/LogInServer/LoginServer.h:3,
from /home/monsterubuntu/knightonline/server/LogInServer/stdafx.h:7:
/home/monsterubuntu/knightonline/server/LogInServer/../shared/KOSocketMgr.h: In instantiation of bool KOSocketMgr<T>::Listen(std::string, uint16, uint16) [with T = LoginSession; std::string = std::__cxx11::basic_string<char>; uint16 = short unsigned int]:
/home/monsterubuntu/knightonline/server/LogInServer/../shared/KOSocketMgr.h:84:15: required from bool KOSocketMgr<T>::Listen(uint16, uint16) [with T = LoginSession; uint16 = short unsigned int]
/home/monsterubuntu/knightonline/server/LogInServer/LoginServer.cpp:61:29: required from here
/home/monsterubuntu/knightonline/server/LogInServer/../shared/KOSocketMgr.h:95:20: error: no matching function for call to ListenSocket<LoginSession>::ListenSocket(KOSocketMgr<LoginSession>*, const char*, uint16&)
95 | m_server = new ListenSocket<T>(this, sIPAddress.c_str(), sPort);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/monsterubuntu/knightonline/server/LogInServer/../shared/Network.h:12:
/home/monsterubuntu/knightonline/server/LogInServer/../shared/ListenSocketLinux.h:13:9: note: candidate: ListenSocket<T>::ListenSocket() [with T = LoginSession]
13 | ListenSocket()
| ^~~~~~~~~~~~
/home/monsterubuntu/knightonline/server/LogInServer/../shared/ListenSocketLinux.h:13:9: note: candidate expects 0 arguments, 3 provided
/home/monsterubuntu/knightonline/server/LogInServer/../shared/ListenSocketLinux.h:10:7: note: candidate: constexpr ListenSocket<LoginSession>::ListenSocket(const ListenSocket<LoginSession>&)
10 | class ListenSocket
| ^~~~~~~~~~~~
/home/monsterubuntu/knightonline/server/LogInServer/../shared/ListenSocketLinux.h:10:7: note: candidate expects 1 argument, 3 provided
/home/monsterubuntu/knightonline/server/LogInServer/../shared/KOSocketMgr.h:96:24: error: class ListenSocket<LoginSession> has no member named IsOpen; did you mean Open?
96 | if (!m_server->IsOpen())
| ~~~~~~~~~~^~~~~~
| Open
/home/monsterubuntu/knightonline/server/LogInServer/../shared/ListenSocketLinux.h: In instantiation of void ListenSocket<T>::run() [with T = LoginSession]:
/home/monsterubuntu/knightonline/server/LogInServer/../shared/KOSocketMgr.h:26:19: required from void KOSocketMgr<T>::RunServer() [with T = LoginSession]
/home/monsterubuntu/knightonline/server/LogInServer/LoginServer.cpp:68:27: required from here
/home/monsterubuntu/knightonline/server/LogInServer/../shared/ListenSocketLinux.h:151:71: error: class LoginSession has no member named AssignSocket
151 | Socket *socket = m_socketMgr->AssignSocket(aSocket);
| ~~~~~~~~~~~~~^~~~~~~~~~~~
In file included from /home/monsterubuntu/knightonline/server/shared/Packet.h:3,
from /home/monsterubuntu/knightonline/server/shared/globals.h:5:
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h: In constructor ByteBuffer::ByteBuffer():
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h:173:23: warning: ByteBuffer::_wpos will be initialized after [-Wreorder]
173 | size_t _rpos, _wpos;
| ^~~~~
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h:9:14: warning: bool ByteBuffer::m_doubleByte [-Wreorder]
9 | bool m_doubleByte;
| ^~~~~~~~~~~~
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h:11:9: warning: when initialized here [-Wreorder]
11 | ByteBuffer(): _rpos(0), _wpos(0), m_doubleByte(true) { _storage.reserve(DEFAULT_SIZE); }
| ^~~~~~~~~~
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h: In constructor ByteBuffer::ByteBuffer(size_t):
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h:173:23: warning: ByteBuffer::_wpos will be initialized after [-Wreorder]
173 | size_t _rpos, _wpos;
| ^~~~~
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h:9:14: warning: bool ByteBuffer::m_doubleByte [-Wreorder]
9 | bool m_doubleByte;
| ^~~~~~~~~~~~
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h:12:9: warning: when initialized here [-Wreorder]
12 | ByteBuffer(size_t res): _rpos(0), _wpos(0), m_doubleByte(true) { _storage.reserve(res <= 0 ? DEFAULT_SIZE : res); }
| ^~~~~~~~~~
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h: In member function void ByteBuffer::append(const void*, size_t):
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h:149:31: warning: value computed is not used [-Wunused-value]
149 | ASSERT(size() < 10000000);
| ~~~~~~~~^~~~~~~~~~~
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h: In member function void ByteBuffer::append(const ByteBuffer&, size_t):
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h:161:43: warning: value computed is not used [-Wunused-value]
161 | ASSERT(buffer._rpos + len <= buffer.size());
| ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h: In member function void ByteBuffer::put(size_t, const void*, size_t):
/home/monsterubuntu/knightonline/server/shared/ByteBuffer.h:167:34: warning: value computed is not used [-Wunused-value]
167 | ASSERT(pos + cnt <= size());
| ~~~~~~~~~~~^~~~~~~~~~
/home/monsterubuntu/knightonline/server/shared/globals.h: In function time_t getMSTime():
/home/monsterubuntu/knightonline/server/shared/globals.h:562:9: error: gettimeofday was not declared in this scope
562 | gettimeofday(&tv, nullptr);
| ^~~~~~~~~~~~
In file included from /home/monsterubuntu/knightonline/server/shared/Network.h:4:
/home/monsterubuntu/knightonline/server/shared/SocketDefines.h: In member function void OverlappedStruct::Mark():
/home/monsterubuntu/knightonline/server/shared/SocketDefines.h:57:31: warning: left operand of comma operator has no effect [-Wunused-value]
57 | TRACE("!!!! Network: Detected double use of read/write event! Previous event was %u.\n", m_event);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/monsterubuntu/knightonline/server/LogInServer/../shared/Network.h:7:
/home/monsterubuntu/knightonline/server/LogInServer/../shared/SocketMgr.h: At global scope:
/home/monsterubuntu/knightonline/server/LogInServer/../shared/SocketMgr.h:69:25: warning: ophandlers defined but not used [-Wunused-variable]
69 | static OperationHandler ophandlers[] =
| ^~~~~~~~~~
make[2]: *** [CMakeFiles/LoginServer.dir/build.make:90: CMakeFiles/LoginServer.dir/LoginServer.cpp.o] Error 1
make[2]: *** [CMakeFiles/LoginServer.dir/build.make:216: CMakeFiles/LoginServer.dir/home/monsterubuntu/knightonline/server/shared/SocketMgr.cpp.o] Error 1
In file included from /home/monsterubuntu/knightonline/server/shared/Network.h:7:
/home/monsterubuntu/knightonline/server/shared/SocketMgr.h: At global scope:
/home/monsterubuntu/knightonline/server/shared/SocketMgr.h:69:25: warning: ophandlers defined but not used [-Wunused-variable]
69 | static OperationHandler ophandlers[] =
| ^~~~~~~~~~
make[2]: *** [CMakeFiles/LoginServer.dir/build.make:244: CMakeFiles/LoginServer.dir/home/monsterubuntu/knightonline/server/shared/RWLock.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/LoginServer.dir/all] Error 2
make: *** [Makefile:91: all] Error 2
[2025-08-29 22:14:56] ERROR: Build failed