• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Compiling Compiling Ubuntu 11.10 Error

Joined
Jul 25, 2007
Messages
382
Reaction score
38
Lastest trunk:

seth@seth-Satellite-A505:~/Desktop/server$ make
g++ -c -I"." -I"/usr/include/libxml2" -I"/usr/include/lua5.1" -I"/usr/include/mysql" -D_THREAD_SAFE -D_REENTRANT -D__NO_HOMEDIR_CONF__ -D__ENABLE_SERVER_DIAGNOSTIC__ -D__USE_MYSQL__ -D__USE_SQLITE__ -Werror -Wall -O2 -o obj/game.o game.cpp
game.h: In member function ‘void Game::serverSave()’:
game.h:520:76: error: array subscript is above array bounds [-Werror=array-bounds]
game.cpp: In member function ‘void Game::prepareServerSave()’:
game.cpp:4696:30: error: array subscript is above array bounds [-Werror=array-bounds]
game.cpp:4698:22: error: array subscript is above array bounds [-Werror=array-bounds]
game.cpp: In constructor ‘Game::Game()’:
game.cpp:82:22: error: array subscript is above array bounds [-Werror=array-bounds]
cc1plus: all warnings being treated as errors

make: *** [obj/game.o] Error 1
 
I have same problem.. It never happened to me on ubuntu 11.04 ... Any solution?

root@root:/home/root/Desktop/trunk# make
make all-am
make[1]: Entering directory `/home/root/Desktop/trunk'
g++ -DHAVE_CONFIG_H -I. -I/usr/include/libxml2 -I/usr/include/lua5.1 -O2 -fomit-frame-pointer -D__USE_MYSQL__ -D__WAR_SYSTEM__ -D__ENABLE_SERVER_DIAGNOSTIC__ -D__ROOT_PERMISSION__ -D_THREAD_SAFE -D_REENTRANT -DBOOST_FILESYSTEM_VERSION=2 -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -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-bounds]
game.h: In member function âvoid Game::globalSave()â:
game.h:624:76: error: array subscript is above array bounds [-Werror=array-bounds]
game.cpp: In member function âvoid Game::prepareGlobalSave()â:
game.cpp:6264:30: error: array subscript is above array bounds [-Werror=array-bounds]
game.cpp:6266:22: error: array subscript is above array bounds [-Werror=array-bounds]
cc1plus: all warnings being treated as errors

make[1]: *** [game.o] Error 1
make[1]: Leaving directory `/home/root/Desktop/trunk'
make: *** [all] Error 2
 
Back
Top