• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Compiling [Linux] Ultimate compile guide for Debian (Ubuntu included)

impulss: some code there is specifically meant for the Microsoft Windows Visual C++ compiler...
you could try #define _MSC_VER 0
but some source code error yeah... post the lines from otsystem.h and ask in support..
 
Code:
Can't exec "libtoolize": No such file or directory at /usr/bin/autoreconf line 189.
Use of uninitialized value in pattern match (m//) at /usr/bin/autoreconf line 189.
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force
configure.ac:136: warning: macro `AM_PATH_XML2' not found in library
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: running: /usr/bin/autoconf --force
configure.ac:112: error: possibly undefined macro: AC_CHECK_HEADERS
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.ac:136: error: possibly undefined macro: AM_PATH_XML2
configure.ac:136: error: possibly undefined macro: AC_MSG_ERROR
configure.ac:141: error: possibly undefined macro: AC_CHECK_LIB
autoreconf: /usr/bin/autoconf failed with exit status: 1
When I try to use ./autogen.sh I get this error, how do I solve it?
 
it's an executable script, so execute it with ./debianfix.sh
 
I use debianfix.sh and get this:
Code:
-bash: ./debianfix.sh: No such file or directory
I solved some errors but i still get this when using ./autogen.sh:

Code:
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: running: /usr/bin/autoconf --force
configure.ac:122: error: possibly undefined macro: AC_CHECK_HEADERS
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.ac:146: error: possibly undefined macro: AC_MSG_ERROR
configure.ac:151: error: possibly undefined macro: AC_CHECK_LIB
autoreconf: /usr/bin/autoconf failed with exit status: 1
 
theforgottenserver: /usr/include/boost/thread/pthread/condition_variable_fwd.hpp:38: boost::condition_variable::~condition_variable(): Assertion `!pthread_cond_destroy(&cond)' failed.
Abgebrochen


Cant start server.
 
@up
Port is already in use by other server? (port 7171/7172)
Try restart dedic (Putty: reboot).
 
Hi. I have problem in compilation, compile TFS 0.4 r.3764...
Error:"
XXXXXXXXXXX:/home/ots/tfs_0.4_8.54-8.57/trunk.r3746# make
make all-am
make[1]: Entering directory `/home/ots/tfs_0.4_8.54-8.57/trunk.r3746'
g++ -DHAVE_CONFIG_H -I. -I/usr/include/libxml2 -I/usr/include/lua5.1 -O2 - fomit-frame-pointer -D__USE_MYSQL__ -D__USE_SQLITE__ -D__ENABLE_SERVER_DIAGNOS TIC__ -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pi pe -MT game.o -MD -MP -MF .deps/game.Tpo -c -o game.o game.cpp
game.cpp: In constructor 'Game::Game()':
game.cpp:80:22: error: array subscript is above array bounds [-Werror=array-boun ds]
game.h: In member function 'void Game::globalSave()':
game.h:611:76: error: array subscript is above array bounds [-Werror=array-bound s]
game.cpp: In member function 'void Game::prepareGlobalSave()':
game.cpp:6112:30: error: array subscript is above array bounds [-Werror=array-bo unds]
game.cpp:6114:22: error: array subscript is above array bounds [-Werror=array-bo unds]
cc1plus: all warnings being treated as errors

make[1]: *** [game.o] Error 1
make[1]: Leaving directory `/home/ots/tfs_0.4_8.54-8.57/trunk.r3746'
make: *** [all] Error 2
XXXXXXXXXXX:/home/ots/tfs_0.4_8.54-8.57/trunk.r3746# game.cpp: In constructor 'Game::Game()':
bash: game.cpp:: command not found
XXXXXXXXXXX:/home/ots/tfs_0.4_8.54-8.57/trunk.r3746# game.cpp:80:22: error: array subscript is above array bounds [-Werror=array-boun ds]
bash: game.cpp:80:22:: command not found
XXXXXXXXXXX:/home/ots/tfs_0.4_8.54-8.57/trunk.r3746# game.h: In member function 'void Game::globalSave()':
bash: game.h:: command not found
XXXXXXXXXXX:/home/ots/tfs_0.4_8.54-8.57/trunk.r3746# game.h:611:76: error: array subscript is above array bounds [-Werror=array-bound s]
bash: game.h:611:76:: command not found
XXXXXXXXXXX:/home/ots/tfs_0.4_8.54-8.57/trunk.r3746# game.cpp: In member function 'void Game::prepareGlobalSave()':
bash: game.cpp:: command not found
XXXXXXXXXXX:/home/ots/tfs_0.4_8.54-8.57/trunk.r3746# game.cpp:6112:30: error: array subscript is above array bounds [-Werror=array-bo unds]
bash: game.cpp:6112:30:: command not found
XXXXXXXXXXX:/home/ots/tfs_0.4_8.54-8.57/trunk.r3746# game.cpp:6114:22: error: array subscript is above array bounds [-Werror=array-bo unds]
bash: game.cpp:6114:22:: command not found
"
How repair?
 
Pre. If you're using Ubuntu and you aren't logged on root user, do it by following command and type your password:


where i can put commands to compile linux.... i have unbuntu but i have to log in or not?
 
trunk 3883 0.4

my error i need help!

monster.cpp: In member function âvirtual void Monster::doAttacking(uint32_t)â:
monster.cpp:626:26: error: variable âoutOfRangeâ set but not used [-Werror=unused-but-set-variable]
cc1plus: all warnings being treated as errors

make[1]: *** [monster.o] Error 1
make[1]: *** Waiting for unfinished jobs....
otserv.cpp: In function âvoid signalHandler(int32_t)â:
otserv.cpp:188:8: error: âSIGHUPâ was not declared in this scope
otserv.cpp:193:8: error: âSIGTRAPâ was not declared in this scope
otserv.cpp:197:8: error: âSIGCHLDâ was not declared in this scope
otserv.cpp:201:8: error: âSIGUSR1â was not declared in this scope
otserv.cpp:206:8: error: âSIGUSR2â was not declared in this scope
otserv.cpp:210:8: error: âSIGCONTâ was not declared in this scope
otserv.cpp:215:8: error: âSIGQUITâ was not declared in this scope
otserv.cpp:220:8: error: âSIGTERMâ was not declared in this scope
otserv.cpp: In function âint main(int, char**)â:
otserv.cpp:281:19: error: aggregate âmain(int, char**)::sigaction sighâ has incomplete type and cannot be defined
otserv.cpp:282:20: error: âSIG_IGNâ was not declared in this scope
otserv.cpp:285:27: error: âsigemptysetâ was not declared in this scope
otserv.cpp:286:12: error: âSIGPIPEâ was not declared in this scope
otserv.cpp:286:34: error: invalid use of incomplete type âstruct main(int, char**)::sigactionâ
otserv.cpp:281:9: error: forward declaration of âstruct main(int, char**)::sigactionâ
otserv.cpp:289:9: error: âSIGHUPâ was not declared in this scope
otserv.cpp:289:30: error: âsignalâ was not declared in this scope
otserv.cpp:290:9: error: âSIGTRAPâ was not declared in this scope
otserv.cpp:291:9: error: âSIGCHLDâ was not declared in this scope
otserv.cpp:292:9: error: âSIGUSR1â was not declared in this scope
otserv.cpp:293:9: error: âSIGUSR2â was not declared in this scope
otserv.cpp:294:9: error: âSIGCONTâ was not declared in this scope
otserv.cpp:295:9: error: âSIGQUITâ was not declared in this scope
otserv.cpp:296:9: error: âSIGTERMâ was not declared in this scope
make[1]: *** [otserv.o] Error 1
mv -f .deps/outputmessage.Tpo .deps/outputmessage.Po
luascript.cpp: In member function âbool LuaInterface::loadDirectory(const string&, Npc*, bool)â:
luascript.cpp:741:23: error: âclass boost::filesystem3::directory_entryâ has no member named âleafâ
luascript.cpp:744:61: error: no match for âoperator+â in âboost::filesystem3:ath::filename() const() + "/"â
make[1]: *** [luascript.o] Error 1
mv -f .deps/protocol.Tpo .deps/protocol.Po
mv -f .deps/outfit.Tpo .deps/outfit.Po
mv -f .deps/party.Tpo .deps/party.Po
game.cpp: In constructor âGame::Game()â:
game.cpp:80:22: error: array subscript is above array bounds [-Werror=array-bounds]
game.h: In member function âvoid Game::globalSave()â:
game.h:623:76: error: array subscript is above array bounds [-Werror=array-bounds]
game.cpp: In member function âvoid Game:repareGlobalSave()â:
game.cpp:6256:30: error: array subscript is above array bounds [-Werror=array-bounds]
game.cpp:6258:22: error: array subscript is above array bounds [-Werror=array-bounds]
cc1plus: all warnings being treated as errors

make[1]: *** [game.o] Error 1
mv -f .deps/player.Tpo .deps/player.Po
make[1]: Leaving directory `/home/server/source'
make: *** [all] Error 2
 
Hi. I have problem in compilation, compile TFS 0.4 r.3764...
Error:"
XXXXXXXXXXX:/home/ots/tfs_0.4_8.54-8.57/trunk.r3746# make
make all-am
make[1]: Entering directory `/home/ots/tfs_0.4_8.54-8.57/trunk.r3746'
g++ -DHAVE_CONFIG_H -I. -I/usr/include/libxml2 -I/usr/include/lua5.1 -O2 - fomit-frame-pointer -D__USE_MYSQL__ -D__USE_SQLITE__ -D__ENABLE_SERVER_DIAGNOS TIC__ -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pi pe -MT game.o -MD -MP -MF .deps/game.Tpo -c -o game.o game.cpp
game.cpp: In constructor 'Game::Game()':
game.cpp:80:22: error: array subscript is above array bounds [-Werror=array-boun ds]
game.h: In member function 'void Game::globalSave()':
game.h:611:76: error: array subscript is above array bounds [-Werror=array-bound s]
game.cpp: In member function 'void Game::prepareGlobalSave()':
game.cpp:6112:30: error: array subscript is above array bounds [-Werror=array-bo unds]
game.cpp:6114:22: error: array subscript is above array bounds [-Werror=array-bo unds]
cc1plus: all warnings being treated as errors

make[1]: *** [game.o] Error 1
make[1]: Leaving directory `/home/ots/tfs_0.4_8.54-8.57/trunk.r3746'
make: *** [all] Error 2
XXXXXXXXXXX:/home/ots/tfs_0.4_8.54-8.57/trunk.r3746# game.cpp: In constructor 'Game::Game()':
bash: game.cpp:: command not found
XXXXXXXXXXX:/home/ots/tfs_0.4_8.54-8.57/trunk.r3746# game.cpp:80:22: error: array subscript is above array bounds [-Werror=array-boun ds]
bash: game.cpp:80:22:: command not found
XXXXXXXXXXX:/home/ots/tfs_0.4_8.54-8.57/trunk.r3746# game.h: In member function 'void Game::globalSave()':
bash: game.h:: command not found
XXXXXXXXXXX:/home/ots/tfs_0.4_8.54-8.57/trunk.r3746# game.h:611:76: error: array subscript is above array bounds [-Werror=array-bound s]
bash: game.h:611:76:: command not found
XXXXXXXXXXX:/home/ots/tfs_0.4_8.54-8.57/trunk.r3746# game.cpp: In member function 'void Game::prepareGlobalSave()':
bash: game.cpp:: command not found
XXXXXXXXXXX:/home/ots/tfs_0.4_8.54-8.57/trunk.r3746# game.cpp:6112:30: error: array subscript is above array bounds [-Werror=array-bo unds]
bash: game.cpp:6112:30:: command not found
XXXXXXXXXXX:/home/ots/tfs_0.4_8.54-8.57/trunk.r3746# game.cpp:6114:22: error: array subscript is above array bounds [-Werror=array-bo unds]
bash: game.cpp:6114:22:: command not found
"
How repair?
i too compile TFS 0.4 r.3777..
 
Hi. I have problem in compilation, compile TFS 0.4 r.3764...
Error:"
XXXXXXXXXXX:/home/ots/tfs_0.4_8.54-8.57/trunk.r3746# make
make all-am
make[1]: Entering directory `/home/ots/tfs_0.4_8.54-8.57/trunk.r3746'
g++ -DHAVE_CONFIG_H -I. -I/usr/include/libxml2 -I/usr/include/lua5.1 -O2 - fomit-frame-pointer -D__USE_MYSQL__ -D__USE_SQLITE__ -D__ENABLE_SERVER_DIAGNOS TIC__ -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pi pe -MT game.o -MD -MP -MF .deps/game.Tpo -c -o game.o game.cpp
game.cpp: In constructor 'Game::Game()':
game.cpp:80:22: error: array subscript is above array bounds [-Werror=array-boun ds]
game.h: In member function 'void Game::globalSave()':
game.h:611:76: error: array subscript is above array bounds [-Werror=array-bound s]
game.cpp: In member function 'void Game::prepareGlobalSave()':
game.cpp:6112:30: error: array subscript is above array bounds [-Werror=array-bo unds]
game.cpp:6114:22: error: array subscript is above array bounds [-Werror=array-bo unds]
cc1plus: all warnings being treated as errors

make[1]: *** [game.o] Error 1
make[1]: Leaving directory `/home/ots/tfs_0.4_8.54-8.57/trunk.r3746'
make: *** [all] Error 2
XXXXXXXXXXX:/home/ots/tfs_0.4_8.54-8.57/trunk.r3746# game.cpp: In constructor 'Game::Game()':
bash: game.cpp:: command not found
XXXXXXXXXXX:/home/ots/tfs_0.4_8.54-8.57/trunk.r3746# game.cpp:80:22: error: array subscript is above array bounds [-Werror=array-boun ds]
bash: game.cpp:80:22:: command not found
XXXXXXXXXXX:/home/ots/tfs_0.4_8.54-8.57/trunk.r3746# game.h: In member function 'void Game::globalSave()':
bash: game.h:: command not found
XXXXXXXXXXX:/home/ots/tfs_0.4_8.54-8.57/trunk.r3746# game.h:611:76: error: array subscript is above array bounds [-Werror=array-bound s]
bash: game.h:611:76:: command not found
XXXXXXXXXXX:/home/ots/tfs_0.4_8.54-8.57/trunk.r3746# game.cpp: In member function 'void Game::prepareGlobalSave()':
bash: game.cpp:: command not found
XXXXXXXXXXX:/home/ots/tfs_0.4_8.54-8.57/trunk.r3746# game.cpp:6112:30: error: array subscript is above array bounds [-Werror=array-bo unds]
bash: game.cpp:6112:30:: command not found
XXXXXXXXXXX:/home/ots/tfs_0.4_8.54-8.57/trunk.r3746# game.cpp:6114:22: error: array subscript is above array bounds [-Werror=array-bo unds]
bash: game.cpp:6114:22:: command not found
"
How repair?
i have these errors too. how to fix these?
 
Back
Top