• 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!

Can't start server - "TFS Has been executed as root user!"

Shikate

Pixel Artist since 2011
Joined
Mar 30, 2011
Messages
404
Reaction score
838
Location
Poland
Code:
ks203255:~# cd /home/megaevo
ks203255:/home/megaevo# screen ./theforgottenserver
[screen is terminating]
ks203255:/home/megaevo# screen ./theforgottenserver
> WARNING: The Forgotten Server has been executed as root user! It is recommended to execute as a normal user.
Continue? (y/N)

When I choose y and enter, tfs is loading, and after optimizing last table in database it crashes. [screen is terminating] It's tfs 0.3.6pl1_r83 I tried to compile this and I didn't receive any errors. Please help me. Ofc REP +

config
Code:
	accountManager = true
	namelockManager = false

	newPlayerChooseVoc = true

	newPlayerSpawnPosX = 161
	newPlayerSpawnPosY = 51

	newPlayerSpawnPosZ = 7

	newPlayerTownId = 1

	newPlayerLevel = 8

	newPlayerMagicLevel = 0

	generateAccountNumber = false



	redSkullLength = 30 * 24 * 60 * 60

	blackSkullLength = 45 * 24 * 60 * 60

	dailyFragsToRedSkull = 9

	weeklyFragsToRedSkull = 15

	monthlyFragsToRedSkull = 30

	dailyFragsToBlackSkull = dailyFragsToRedSkull

	weeklyFragsToBlackSkull = weeklyFragsToRedSkull

	monthlyFragsToBlackSkull = monthlyFragsToRedSkull

	dailyFragsToBanishment = dailyFragsToRedSkull

	weeklyFragsToBanishment = weeklyFragsToRedSkull

	monthlyFragsToBanishment = monthlyFragsToRedSkull

	blackSkulledDeathHealth = 40

	blackSkulledDeathMana = 0

	useBlackSkull = true

	useFragHandler = true

	advancedFragList = true



	notationsToBan = 3

	warningsToFinalBan = 4

	warningsToDeletion = 6

	banLength = 7 * 24 * 60 * 60

	killsBanLength = 7 * 24 * 60 * 60

	finalBanLength = 30 * 24 * 60 * 60

	ipBanishmentLength = 1 * 24 * 60 * 60

	broadcastBanishments = true

	maxViolationCommentSize = 200

	violationNameReportActionType = 3

	autoBanishUnknownBytes = true



	worldType = "pvp"

	protectionLevel = 50

	pvpTileIgnoreLevelAndVocationProtection = true

	pzLocked = 60 * 1000

	huntingDuration = 60 * 1000

	criticalHitChance = 20

	criticalHitMultiplier = 1

	displayCriticalHitNotify = false

	removeWeaponAmmunition = false

	removeWeaponCharges = true

	removeRuneCharges = true

	whiteSkullTime = 15 * 60 * 1000

	noDamageToSameLookfeet = false

	showHealingDamage = true

	showHealingDamageForMonsters = true

	fieldOwnershipDuration = 5 * 1000

	stopAttackingAtExit = false

	oldConditionAccuracy = false

	loginProtectionPeriod = 10 * 1000

	deathLostPercent = 10

	stairhopDelay = 2 * 1000

	pushCreatureDelay = 2 * 1000

	deathContainerId = 1987

	gainExperienceColor = 82

	addManaSpentInPvPZone = true

	squareColor = 0

	allowFightback = true



	worldId = 0

	ip = "188.165.18.147"

	bindOnlyConfiguredIpAddress = true

	loginPort = 7575

	gamePort = 7576

	adminPort = 7575

	statusPort = 7575

	loginTries = 10

	retryTimeout = 5 * 1000

	loginTimeout = 60 * 1000

	maxPlayers = 500

	motd = "Welcome to  !"

	displayOnOrOffAtCharlist = false

	onePlayerOnlinePerAccount = true

	allowClones = false

	serverName = "Memsoria MegaEvo"

	loginMessage = "Welcome to the  !"

	statusTimeout = 5 * 60 * 1000

	replaceKickOnLogin = true

	forceSlowConnectionsToDisconnect = false

	loginOnlyWithLoginServer = false

	premiumPlayerSkipWaitList = false
	
	forceSlowConnectionsToDisconnect = "yes"




	sqlType = "mysql"

	sqlHost = "localhost"

	sqlPort = 3306

	sqlUser = "root"

	sqlPass = "***"

	sqlDatabase = "forgottenserver"

	sqlFile = "forgottenserver.s3db"

	sqlKeepAlive = 0

	mysqlReadTimeout = 10

	mysqlWriteTimeout = 10

	encryptionType = "plain"


	deathListEnabled = true

	deathListRequiredTime = 1 * 60 * 1000

	deathAssistCount = 19

	maxDeathRecords = 5



	ingameGuildManagement = true

	levelToFormGuild = 8

	premiumDaysToFormGuild = 0

	guildNameMinLength = 4

	guildNameMaxLength = 20


	highscoreDisplayPlayers = 15

	updateHighscoresAfterMinutes = 60



	buyableAndSellableHouses = true

	houseNeedPremium = true

	bedsRequirePremium = true

	levelToBuyHouse = 50

	housesPerAccount = 0

	houseRentAsPrice = false

	housePriceAsRent = false

	housePriceEachSquare = 850

	houseRentPeriod = "never"

	houseCleanOld = 10

	guildHalls = false



	timeBetweenActions = 200

	timeBetweenExActions = 1000

	hotkeyAimbotEnabled = true



	mapName = "theend"

	mapAuthor = ""

	randomizeTiles = true

	storeTrash = true

	cleanProtectedZones = true

	mailboxDisabledTowns = "-1"



	defaultPriority = "high"

	niceLevel = 5

	coresUsed = "-1"



	optimizeDatabaseAtStartup = true

	removePremiumOnInit = true

	confirmOutdatedVersion = false



	formulaLevel = 5.0

	formulaMagic = 1.0

	bufferMutedOnSpellFailure = false

	spellNameInsteadOfWords = false

	emoteSpells = true

	allowChangeOutfit = true

	allowChangeColors = true

	allowChangeAddons = true

	disableOutfitsForPrivilegedPlayers = false

	addonsOnlyPremium = true



	dataDirectory = "data/"

	bankSystem = true

	displaySkillLevelOnAdvance = false

	promptExceptionTracerErrorBox = true

	separateViplistPerCharacter = false

	maximumDoorLevel = 9999

	maxMessageBuffer = 4




	saveGlobalStorage = true

	useHouseDataStorage = false

	storePlayerDirection = false


	
	checkCorpseOwner = true
	monsterLootMessage = 3

	monsterLootMessageType = 25



	ghostModeInvisibleEffect = false

	ghostModeSpellEffects = true



	idleWarningTime = 14 * 60 * 1000

	idleKickTime = 15 * 60 * 1000

	expireReportsAfterReads = 1

	playerQueryDeepness = 2

	maxItemsPerPZTile = 0

	maxItemsPerHouseTile = 0



	freePremium = false

	premiumForPromotion = true



	blessingOnlyPremium = true

	blessingReductionBase = 30

	blessingReductionDecreament = 5

	eachBlessReduction = 8


	experienceStages = true
	rateExperience = 100.0

	rateExperienceFromPlayers = 0

	rateSkill = 30.0

	rateMagic = 20.0

	rateLoot = 4.0

	rateSpawn = 3



	rateMonsterHealth = 1.0

	rateMonsterMana = 1.0

	rateMonsterAttack = 1.0

	rateMonsterDefense = 1.0



	minLevelThresholdForKilledPlayer = 0.9

	maxLevelThresholdForKilledPlayer = 1.1



	rateStaminaLoss = 1

	rateStaminaGain = 3

	rateStaminaThresholdGain = 12

	staminaRatingLimitTop = 41 * 60

	staminaRatingLimitBottom = 14 * 60

	rateStaminaAboveNormal = 1.5

	rateStaminaUnderNormal = 0.5

	staminaThresholdOnlyPremium = true



	experienceShareRadiusX = 30

	experienceShareRadiusY = 30

	experienceShareRadiusZ = 1

	experienceShareLevelDifference = 2 / 3

	extraPartyExperienceLimit = 20

	extraPartyExperiencePercent = 5

	experienceShareActivity = 2 * 60 * 1000



	globalSaveEnabled = false

	globalSaveHour = 12

	shutdownAtGlobalSave = false

	cleanMapAtGlobalSave = false

	deSpawnRange = 2

	deSpawnRadius = 50



	maxPlayerSummons = 2

	teleportAllSummons = false

	teleportPlayerSummons = false



	ownerName = ""

	ownerEmail = ""

	url = ""

	location = "Poland"

	displayGamemastersWithOnlineCommand = true



	adminLogsEnabled = false

	displayPlayersLogging = true

	prefixChannelLogs = ""

	runFile = ""

	outLogName = ""

	errorLogName = ""

	truncateLogsOnStartup = false

EDIT: Ok Pedro, I'll try and then I'll post
 
So it can be a bad script/data stuff/config.lua.

Try to load the server using the executable you've compiled with a default config.lua file and data folder.
 
@UP
Still crashes. And still "as root user" etc.

Error when compiling:
Code:
login as: root
[...]
Last login: Wed Feb 22 10:25:12 2012 from rev13.extreme-net.one.pl
ks203255:~# cd /home/megaevo/source/pl1
-bash: cd: /home/megaevo/source/pl1: Nie ma takiego pliku ani katalogu
ks203255:~# cd /home/megaevo/Source/pl1
ks203255:/home/megaevo/Source/pl1# ./autogen.sh
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
autoreconf: running: /usr/bin/autoheader --force
autoreconf: running: automake --add-missing --copy --force-missing
autoreconf: Leaving directory `.'
ks203255:/home/megaevo/Source/pl1# ./configure --enable-mysql --enable-sqlite --enable-remote-contrl --enable-server-diag --enable-root-permission
configure: WARNING: unrecognized options: --enable-remote-contrl
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/timeb.h usability... yes
checking sys/timeb.h presence... yes
checking for sys/timeb.h... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... no
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for int16_t... yes
checking for int32_t... yes
checking for int64_t... yes
checking for size_t... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for uint8_t... yes
checking for ptrdiff_t... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for working memcmp... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking for floor... yes
checking for ftime... yes
checking for gethostbyname... yes
checking for gethostname... yes
checking for memset... yes
checking for pow... yes
checking for sqrt... yes
checking for strcasecmp... yes
checking for strncasecmp... yes
checking for strstr... yes
checking for strtol... yes
checking for xml2-config... /usr/bin/xml2-config
checking for libxml - version >= 2.6.5... yes (version 2.7.8)
checking gmp.h usability... yes
checking gmp.h presence... yes
checking for gmp.h... yes
checking for __gmpz_init2 in -lgmp... yes
checking for main in -lboost_thread-gcc-mt... no
checking for main in -lboost_thread-mt... yes
checking for main in -lboost_regex-gcc-mt... no
checking for main in -lboost_regex-mt... yes
checking for main in -lboost_system-gcc-mt... no
checking for main in -lboost_system-mt... yes
checking for main in -lboost_date_time-gcc-mt... no
checking for main in -lboost_date_time-mt... yes
checking for main in -lboost_filesystem-gcc-mt... no
checking for main in -lboost_filesystem-mt... yes
checking boost/asio.hpp usability... yes
checking boost/asio.hpp presence... yes
checking for boost/asio.hpp... yes
checking boost/tr1/unordered_set.hpp usability... yes
checking boost/tr1/unordered_set.hpp presence... yes
checking for boost/tr1/unordered_set.hpp... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for LUA... yes
checking mysql/mysql.h usability... yes
checking mysql/mysql.h presence... yes
checking for mysql/mysql.h... yes
checking for main in -lmysqlclient... yes
checking sqlite3.h usability... yes
checking sqlite3.h presence... yes
checking for sqlite3.h... yes
checking for main in -lsqlite3... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
configure: WARNING: unrecognized options: --enable-remote-contrl

theforgottenserver 0.3.5

Server diagnostics.......... : yes
Login server mode........... : no
Remote control.............. : no
Root run permission......... : yes
Home-directory configuration : no
OTServ custom allocator..... : no
Debug build................. : no

Build with MySQL............ : yes
Build with SQLite........... : yes
Build with PostgreSQL....... : no
Build with ODBC............. : no

Configure complete, now you may type 'make'.
ks203255:/home/megaevo/Source/pl1#


login as: root
[email protected]'s password:
Linux ks203255.kimsufi.com 2.6.38.2-grsec-xxxx-grs-ipv6-64 #2 SMP Thu Aug 25 16:40:22 UTC 2011 x86_64 GNU/Linux

server    : 188407
ip        : 91.121.179.6
hostname  : ks203255.kimsufi.com

Last login: Wed Feb 22 10:25:12 2012 from rev13.extreme-net.one.pl
ks203255:~# cd /home/megaevo/source/pl1
-bash: cd: /home/megaevo/source/pl1: Nie ma takiego pliku ani katalogu
ks203255:~# cd /home/megaevo/Source/pl1
ks203255:/home/megaevo/Source/pl1# ./autogen.sh
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
autoreconf: running: /usr/bin/autoheader --force
autoreconf: running: automake --add-missing --copy --force-missing
autoreconf: Leaving directory `.'
ks203255:/home/megaevo/Source/pl1# ./configure --enable-mysql --enable-sqlite --enable-remote-contrl --enable-server-diag --enable-root-permission
configure: WARNING: unrecognized options: --enable-remote-contrl
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/timeb.h usability... yes
checking sys/timeb.h presence... yes
checking for sys/timeb.h... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... no
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for int16_t... yes
checking for int32_t... yes
checking for int64_t... yes
checking for size_t... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for uint8_t... yes
checking for ptrdiff_t... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for working memcmp... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking for floor... yes
checking for ftime... yes
checking for gethostbyname... yes
checking for gethostname... yes
checking for memset... yes
checking for pow... yes
checking for sqrt... yes
checking for strcasecmp... yes
checking for strncasecmp... yes
checking for strstr... yes
checking for strtol... yes
checking for xml2-config... /usr/bin/xml2-config
checking for libxml - version >= 2.6.5... yes (version 2.7.8)
checking gmp.h usability... yes
checking gmp.h presence... yes
checking for gmp.h... yes
checking for __gmpz_init2 in -lgmp... yes
checking for main in -lboost_thread-gcc-mt... no
checking for main in -lboost_thread-mt... yes
checking for main in -lboost_regex-gcc-mt... no
checking for main in -lboost_regex-mt... yes
checking for main in -lboost_system-gcc-mt... no
checking for main in -lboost_system-mt... yes
checking for main in -lboost_date_time-gcc-mt... no
checking for main in -lboost_date_time-mt... yes
checking for main in -lboost_filesystem-gcc-mt... no
checking for main in -lboost_filesystem-mt... yes
checking boost/asio.hpp usability... yes
checking boost/asio.hpp presence... yes
checking for boost/asio.hpp... yes
checking boost/tr1/unordered_set.hpp usability... yes
checking boost/tr1/unordered_set.hpp presence... yes
checking for boost/tr1/unordered_set.hpp... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for LUA... yes
checking mysql/mysql.h usability... yes
checking mysql/mysql.h presence... yes
checking for mysql/mysql.h... yes
checking for main in -lmysqlclient... yes
checking sqlite3.h usability... yes
checking sqlite3.h presence... yes
checking for sqlite3.h... yes
checking for main in -lsqlite3... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
configure: WARNING: unrecognized options: --enable-remote-contrl

theforgottenserver 0.3.5

Server diagnostics.......... : yes
Login server mode........... : no
Remote control.............. : no
Root run permission......... : yes
Home-directory configuration : no
OTServ custom allocator..... : no
Debug build................. : no

Build with MySQL............ : yes
Build with SQLite........... : yes
Build with PostgreSQL....... : no
Build with ODBC............. : no

Configure complete, now you may type 'make'.
ks203255:/home/megaevo/Source/pl1# make
make  all-am
make[1]: Wejście do katalogu `/home/megaevo/Source/pl1'
g++ -I/usr/include/libxml2  -I/usr/include/lua5.1    -D__USE_MYSQL__ -D__USE_SQLITE__    -D__ENABLE_SERVER_DIAGNOSTIC__ -D__ROOT_PERMISSION__ -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1   -o theforgottenserver actions.o  allocator.o baseevents.o beds.o chat.o combat.o condition.o configmanager.o connection.o container.o creature.o creatureevent.o cylinder.o database.o databasemanager.o databasemysql.o databasesqlite.o   depot.o exception.o fileloader.o game.o  globalevent.o group.o gui.o house.o housetile.o inputbox.o ioban.o ioguild.o iologindata.o iomap.o iomapserialize.o item.o itemattributes.o items.o luascript.o mailbox.o map.o md5.o monster.o monsters.o movement.o networkmessage.o npc.o otserv.o outfit.o outputmessage.o party.o playerbox.o player.o position.o protocol.o protocolgame.o protocollogin.o protocolold.o quests.o raids.o rsa.o scheduler.o scriptmanager.o server.o sha1.o spawn.o spells.o status.o talkaction.o tasks.o teleport.o textlogger.o thing.o tile.o tools.o trashholder.o waitlist.o weapons.o vocation.o -llua5.1   -lsqlite3 -lmysqlclient -lboost_filesystem-mt -lboost_date_time-mt -lboost_system-mt -lboost_regex-mt -lboost_thread-mt -lgmp  -lxml2
otserv.o: In function `otserv(std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >, ServiceManager*)':
/home/megaevo/Source/pl1/otserv.cpp:756: undefined reference to `g_admin'
/home/megaevo/Source/pl1/otserv.cpp:757: undefined reference to `Admin::loadFromXml()'
otserv.o: In function `ProtocolAdmin':
/home/megaevo/Source/pl1/admin.h:193: undefined reference to `vtable for ProtocolAdmin'
/home/megaevo/Source/pl1/admin.h:199: undefined reference to `ProtocolAdmin::protocolAdminCount'
talkaction.o: In function `TalkAction::diagnostics(Creature*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
/home/megaevo/Source/pl1/talkaction.cpp:1089: undefined reference to `ProtocolAdmin::protocolAdminCount'
collect2: ld returned 1 exit status
make[1]: *** [theforgottenserver] Błąd 1
make[1]: Opuszczenie katalogu `/home/megaevo/Source/pl1'
make: *** [all] Błąd 2
ks203255:/home/megaevo/Source/pl1#

I forgot one letter in remote control. One more time.

Code:
ks203255:~# cd /home/megaevo/Source/pl1
ks203255:/home/megaevo/Source/pl1# ./autogen.sh
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
autoreconf: running: /usr/bin/autoheader --force
autoreconf: running: automake --add-missing --copy --force-missing
autoreconf: Leaving directory `.'
ks203255:/home/megaevo/Source/pl1# ./configure --enable-mysql --enable-sqlite --enable-remote-control --enable-server-diag --enable-root-permission
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/timeb.h usability... yes
checking sys/timeb.h presence... yes
checking for sys/timeb.h... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... no
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for int16_t... yes
checking for int32_t... yes
checking for int64_t... yes
checking for size_t... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for uint8_t... yes
checking for ptrdiff_t... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for working memcmp... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking for floor... yes
checking for ftime... yes
checking for gethostbyname... yes
checking for gethostname... yes
checking for memset... yes
checking for pow... yes
checking for sqrt... yes
checking for strcasecmp... yes
checking for strncasecmp... yes
checking for strstr... yes
checking for strtol... yes
checking for xml2-config... /usr/bin/xml2-config
checking for libxml - version >= 2.6.5... yes (version 2.7.8)
checking gmp.h usability... yes
checking gmp.h presence... yes
checking for gmp.h... yes
checking for __gmpz_init2 in -lgmp... yes
checking for main in -lboost_thread-gcc-mt... no
checking for main in -lboost_thread-mt... yes
checking for main in -lboost_regex-gcc-mt... no
checking for main in -lboost_regex-mt... yes
checking for main in -lboost_system-gcc-mt... no
checking for main in -lboost_system-mt... yes
checking for main in -lboost_date_time-gcc-mt... no
checking for main in -lboost_date_time-mt... yes
checking for main in -lboost_filesystem-gcc-mt... no
checking for main in -lboost_filesystem-mt... yes
checking boost/asio.hpp usability... yes
checking boost/asio.hpp presence... yes
checking for boost/asio.hpp... yes
checking boost/tr1/unordered_set.hpp usability... yes
checking boost/tr1/unordered_set.hpp presence... yes
checking for boost/tr1/unordered_set.hpp... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for LUA... yes
checking mysql/mysql.h usability... yes
checking mysql/mysql.h presence... yes
checking for mysql/mysql.h... yes
checking for main in -lmysqlclient... yes
checking sqlite3.h usability... yes
checking sqlite3.h presence... yes
checking for sqlite3.h... yes
checking for main in -lsqlite3... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands

theforgottenserver 0.3.5

Server diagnostics.......... : yes
Login server mode........... : no
Remote control.............. : yes
Root run permission......... : yes
Home-directory configuration : no
OTServ custom allocator..... : no
Debug build................. : no

Build with MySQL............ : yes
Build with SQLite........... : yes
Build with PostgreSQL....... : no
Build with ODBC............. : no

Configure complete, now you may type 'make'.
ks203255:/home/megaevo/Source/pl1# make
make  all-am
make[1]: Wejście do katalogu `/home/megaevo/Source/pl1'
g++ -I/usr/include/libxml2  -I/usr/include/lua5.1    -D__USE_MYSQL__ -D__USE_SQLITE__    -D__ENABLE_SERVER_DIAGNOSTIC__ -D__REMOTE_CONTROL__ -D__ROOT_PERMISSION__ -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1   -o theforgottenserver actions.o admin.o allocator.o baseevents.o beds.o chat.o combat.o condition.o configmanager.o connection.o container.o creature.o creatureevent.o cylinder.o database.o databasemanager.o databasemysql.o databasesqlite.o   depot.o exception.o fileloader.o game.o  globalevent.o group.o gui.o house.o housetile.o inputbox.o ioban.o ioguild.o iologindata.o iomap.o iomapserialize.o item.o itemattributes.o items.o luascript.o mailbox.o map.o md5.o monster.o monsters.o movement.o networkmessage.o npc.o otserv.o outfit.o outputmessage.o party.o playerbox.o player.o position.o protocol.o protocolgame.o protocollogin.o protocolold.o quests.o raids.o rsa.o scheduler.o scriptmanager.o server.o sha1.o spawn.o spells.o status.o talkaction.o tasks.o teleport.o textlogger.o thing.o tile.o tools.o trashholder.o waitlist.o weapons.o vocation.o -llua5.1   -lsqlite3 -lmysqlclient -lboost_filesystem-mt -lboost_date_time-mt -lboost_system-mt -lboost_regex-mt -lboost_thread-mt -lgmp  -lxml2
make[1]: Opuszczenie katalogu `/home/megaevo/Source/pl1'
ks203255:/home/megaevo/Source/pl1#
 
Last edited:
Nothing helps.

Code:
login as: root
[email protected]'s password:
Linux ks203255.kimsufi.com 2.6.38.2-grsec-xxxx-grs-ipv6-64 #2 SMP Thu Aug 25 16:40:22 UTC 2011 x86_64 GNU/Linux

server    : 188407
ip        : 91.121.179.6
hostname  : ks203255.kimsufi.com

Last login: Wed Feb 22 10:49:09 2012 from rev13.extreme-net.one.pl
ks203255:~# cd /home/megaevo
ks203255:/home/megaevo# ./theforgottenserver
> WARNING: The Forgotten Server has been executed as root user! It is recommended to execute as a normal user.
Continue? (y/N)
y
The Forgotten Server, version 0.3.6 (Crying Damson)
Compiled with GNU C++ version 4.4.5 at Feb 22 2012, 09:28:13.
A server developed by Elf, slawkens, Talaturen, KaczooH, Lithium, Kiper, Kornholijo.
Visit our forum for updates, support and resources: http://otland.net.

>> Loading config (config.lua)
> Using plaintext encryption
>> Checking software version... up to date!
>> Fetching blacklist
>> Loading RSA key
>> Starting SQL connection
>> Running Database Manager
> Optimizing table: account_viplist... [success]
> Optimizing table: accounts... [success]
> Optimizing table: bans... [success]
> Optimizing table: environment_killers... [success]
> Optimizing table: global_storage... [success]
> Optimizing table: guild_invites... [success]
> Optimizing table: guild_ranks... [success]
> Optimizing table: guilds... [success]
> Optimizing table: house_auctions... [success]
> Optimizing table: house_data... [success]
> Optimizing table: house_lists... [success]
> Optimizing table: houses... [success]
> Optimizing table: killers... [success]
> Optimizing table: player_deaths... [success]
> Optimizing table: player_depotitems... [success]
> Optimizing table: player_items... [success]
> Optimizing table: player_killers... [success]
> Optimizing table: player_namelocks... [success]
> Optimizing table: player_skills... [success]
> Optimizing table: player_spells... [success]
> Optimizing table: player_storage... [success]
> Optimizing table: player_viplist... [success]
> Optimizing table: players... [success]
> Optimizing table: server_config... [success]
> Optimizing table: server_motd... [success]
> Optimizing table: server_record... [success]
> Optimizing table: server_reports... [success]
> Optimizing table: tile_items... [success]
> Optimizing table: tiles... [success]
>> Loading items
[Error - Items::loadFromOtb] Another (client) version of items.otb is required.

> ERROR: Unable to load items (OTB)!
theforgottenserver: /usr/include/boost/thread/pthread/condition_variable_fwd.hpp:38: boost::condition_variable::~condition_variable(): Assertion `!pthread_cond_destroy(&cond)' failed.
Przerwane
ks203255:/home/megaevo#

I replaced items.otb and it works
 
Last edited:
if --enable-root-permission doesnt work just delete that condition from code
all you need is brain and some text editor
and then compile again
 
Back
Top