Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dockerfile request #3

Open
hallboav opened this issue Oct 21, 2024 · 3 comments
Open

Dockerfile request #3

hallboav opened this issue Oct 21, 2024 · 3 comments

Comments

@hallboav
Copy link

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 02f197e4
COPY --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   ^~
@jprzimba
Copy link
Owner

This version is obsolete

@hallboav
Copy link
Author

Is there any new version or other repo which I could serve a 7.92 Tibia?

@jprzimba
Copy link
Owner

jprzimba commented Nov 1, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants