You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Could you guys provide a Dockerfile or the version of the compiler, libs, etc.?
This is my current my progress:
FROM alpine:3.8 AS build
RUN apk add --no-cache \
binutils \
boost-dev \
build-base \
curl \
g++ \
gmp-dev \
libxml2-dev \
luajit-dev \
make \
mariadb-connector-c-dev \
;
# using branch master here 02f197e4COPY --link decayservers/792/src /usr/src/decayservers/src/
WORKDIR /usr/src/decayservers/src
RUN make -j$(nproc)
otserv.cpp doesn't compile:
7.748 otserv.cpp:148:2: error: 'sigh' does not name a type
7.748 sigh.sa_handler = SIG_IGN;
7.748 ^~~~
7.748 otserv.cpp:149:2: error: 'sigh' does not name a type
7.748 sigh.sa_flags = 0;
7.748 ^~~~
7.748 otserv.cpp:150:13: error: expected constructor, destructor, or type conversion before '(' token
7.748 sigemptyset(&sigh.sa_mask);
7.748 ^
7.748 otserv.cpp:151:11: error: expected constructor, destructor, or type conversion before '(' token
7.748 sigaction(SIGPIPE, &sigh, NULL);
7.748 ^
7.748 In file included from otserv.cpp:27:0:
7.748 otsystem.h:164:56: error: expected constructor, destructor, or type conversion before '(' token
7.748 #define OTSYS_THREAD_SIGNALVARINIT(a) pthread_cond_init(&a, NULL);
7.748 ^
7.748 otserv.cpp:154:2: note: in expansion of macro 'OTSYS_THREAD_SIGNALVARINIT'
7.748 OTSYS_THREAD_SIGNALVARINIT(g_loaderSignal);
7.748 ^
7.748 otserv.cpp:157:2: error: 'g_game' does not name a type
7.748 g_game.setGameState(GAME_STATE_STARTUP);
7.748 ^~~~~~
7.748 otserv.cpp:159:7: error: expected constructor, destructor, or type conversion before '(' token
7.748 srand((unsigned int)OTSYS_TIME());
7.748 ^
7.748 otserv.cpp:161:7: error: 'clog' in namespace 'std' does not name a type
7.748 std::clog << "Loading config" << std::endl;
7.748 ^~~~
7.749 In file included from otserv.cpp:25:0:
7.749 /usr/include/c++/6.4.0/iostream:63:18: note: 'std::clog' declared here
7.749 extern ostream clog; /// Linked to standard error (buffered)
7.749 ^~~~
7.749 otserv.cpp:162:2: error: expected unqualified-id before 'if'
7.749 if(!g_config.load())
7.749 ^~
7.749 otserv.cpp:188:7: error: 'clog' in namespace 'std' does not name a type
7.749 std::clog << "Loading RSA key" << std::endl;
7.749 ^~~~
7.749 In file included from otserv.cpp:25:0:
7.749 /usr/include/c++/6.4.0/iostream:63:18: note: 'std::clog' declared here
7.749 extern ostream clog; /// Linked to standard error (buffered)
7.749 ^~~~
7.749 otserv.cpp:192:2: error: 'g_otservRSA' does not name a type
7.749 g_otservRSA = new RSA();
7.749 ^~~~~~~~~~~
7.749 otserv.cpp:193:2: error: 'g_otservRSA' does not name a type
7.749 g_otservRSA->setKey(p, q, d);
7.749 ^~~~~~~~~~~
7.749 otserv.cpp:195:7: error: 'clog' in namespace 'std' does not name a type
7.749 std::clog << "Loading database driver..." << std::flush;
7.749 ^~~~
7.749 In file included from otserv.cpp:25:0:
7.749 /usr/include/c++/6.4.0/iostream:63:18: note: 'std::clog' declared here
7.749 extern ostream clog; /// Linked to standard error (buffered)
7.749 ^~~~
7.749 otserv.cpp:197:2: error: expected unqualified-id before 'if'
7.749 if(!db->isConnected())
7.749 ^~
The text was updated successfully, but these errors were encountered:
Could you guys provide a Dockerfile or the version of the compiler, libs, etc.?
This is my current my progress:
otserv.cpp doesn't compile:
The text was updated successfully, but these errors were encountered: