• 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 ubuntu compile error

odessa johnson

New Member
Joined
Dec 14, 2013
Messages
19
Reaction score
1
make[1]: *** [scriptmanager.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
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::path::filename() const() + "/"'
make[1]: *** [luascript.o] Error 1
game.cpp: In constructor 'Game::Game()':
game.cpp:80:22: warning: array subscript is above array bounds [-Warray-bounds]
game.h: In member function 'void Game::globalSave()':
game.h:623:76: warning: array subscript is above array bounds [-Warray-bounds]
game.cpp: In member function 'void Game::prepareGlobalSave()':
game.cpp:6256:30: warning: array subscript is above array bounds [-Warray-bounds]
game.cpp:6258:22: warning: array subscript is above array bounds [-Warray-bounds]
mv -f .deps/game.Tpo .deps/game.Po
make[1]: Leaving directory `/home/tfs/tfs'
make: *** [all] Error 2
root@vinera:/home/tfs/tfs#
 
root@vinera:/home/tfs/tfs# make -j 4
make all-am
make[1]: Entering directory `/home/tfs/tfs'
g++ -DHAVE_CONFIG_H -I. -I/usr/include/libxml2 -O2 -fomit-frame-pointer -D__USE_MYSQL__ -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Wno-strict-aliasing -Wno-unused-parameter -pipe -MT luascript.o -MD -MP -MF .deps/luascript.Tpo -c -o luascript.o luascript.cpp
luascript.cpp: In member function 'bool LuaInterface::loadDirectory(const string&, Npc*, bool)':
luascript.cpp:744:61: error: no match for 'operator+' in 'boost::filesystem3::path::filename() const() + "/"'
make[1]: *** [luascript.o] Error 1
make[1]: Leaving directory `/home/tfs/tfs'
make: *** [all] Error 2
 
root@vinera:/home/tfs/tfs# ./build.sh
TheForgottenServer build script- seems to speed things up ALOT.
CCache: OK
CCache binaries located in /usr/lib/ccache
Building on 24 cores, using 25 processes
make all-am
make[1]: Entering directory `/home/tfs/tfs'
g++ -DHAVE_CONFIG_H -I. -I/usr/include/libxml2 -O2 -fomit-frame-pointer -D__USE_MYSQL__ -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Wno-strict-aliasing -Wno-unused-parameter -pipe -MT luascript.o -MD -MP -MF .deps/luascript.Tpo -c -o luascript.o luascript.cpp
luascript.cpp: In static member function 'static int32_t LuaInterface::luaGetTownTemplePosition(lua_State*)':
luascript.cpp:9286:7: warning: variable 'displayError' set but not used [-Wunused-but-set-variable]
mv -f .deps/luascript.Tpo .deps/luascript.Po
g++ -I/usr/include/libxml2 -O2 -fomit-frame-pointer -D__USE_MYSQL__ -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Wno-strict-aliasing -Wno-unused-parameter -pipe -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 depot.o dispatcher.o exception.o fileloader.o game.o globalevent.o group.o house.o housetile.o ioban.o ioguild.o iologindata.o iomap.o iomapserialize.o item.o itemattributes.o items.o luascript.o mailbox.o manager.o map.o monster.o monsters.o movement.o networkmessage.o npc.o otserv.o outfit.o outputmessage.o party.o player.o position.o protocol.o protocolgame.o protocolhttp.o protocollogin.o protocolold.o quests.o raids.o scheduler.o scriptmanager.o server.o spawn.o spells.o status.o talkaction.o teleport.o textlogger.o thing.o tile.o tools.o trashholder.o waitlist.o weapons.o vocation.o -lmysqlclient -llua -lcrypto -lcryptopp -lboost_filesystem-mt -lboost_date_time-mt -lboost_system-mt -lboost_regex-mt -lboost_thread-mt -lz -L/usr/lib/x86_64-linux-gnu -lxml2
make[1]: Leaving directory `/home/tfs/tfs'
 
root@vinera:/home/tfs/tfs# ./build.sh
TheForgottenServer build script- seems to speed things up ALOT.
CCache: OK
CCache binaries located in /usr/lib/ccache
Building on 24 cores, using 25 processes
make all-am
make[1]: Entering directory `/home/tfs/tfs'
make[1]: Leaving directory `/home/tfs/tfs'
root@vinera:/home/tfs/tfs#
-------------
did i build sucess now ?!
but what name of file to start server or i mean how i can start server?
 
where i can find this part

items.cpp

NDkJGm3.png
 
[0:37:30.346] [Error - NpcScript Interface]
[0:37:30.346] data/npc/scripts/Quentin.lua:eek:nCreatureSay
[0:37:30.346] Description:
[0:37:30.346] data/npc/lib/npcsystem/npchandler.lua:548: attempt to call global 'getDistanceTo' (a nil value)
[0:37:30.346] stack traceback:
[0:37:30.346] data/npc/lib/npcsystem/npchandler.lua:548: in function 'isInRange'
[0:37:30.346] data/npc/lib/npcsystem/npchandler.lua:376: in function 'onCreatureSay'
[0:37:30.346] data/npc/scripts/Quentin.lua:7: in function <data/npc/scripts/Quentin.lua:7>
 
i fix NPC,,
now i have this error
[12:54:13.946] [Error - TalkAction Interface]
[12:54:13.946] data/talkactions/scripts/war.lua:eek:nSay
[12:54:13.946] Description:
[12:54:13.946] data/talkactions/scripts/war.lua:70: attempt to call global 'doGuildAddEnemy' (a nil value)
[12:54:13.946] stack traceback:
[12:54:13.946] data/talkactions/scripts/war.lua:70: in function <data/talkactions/scripts/war.lua:1>
 
Back
Top