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

Linux Compiling Error

Extrodus

|| Blazera.net ||
Joined
Dec 22, 2008
Messages
2,691
Solutions
7
Reaction score
549
Location
Canada
Using Printers Sources found here I am getting the following error.

If you think you could help, I am willing to use team viewer to make it easier. Thanks in advance!


Code:
theforgottenserver 0.3.5

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

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

Configure complete, now you may type 'make'.
extrodus@extrodus-VirtualBox:~/Desktop/cryingdamsonsource$ make
make  all-am
make[1]: Entering directory `/home/extrodus/Desktop/cryingdamsonsource'
g++ -DHAVE_CONFIG_H -I.  -I/usr/include/libxml2  -I/usr/include/lua5.1  -D__USE_MYSQL__  -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1 -MT luascript.o -MD -MP -MF .deps/luascript.Tpo -c -o luascript.o luascript.cpp
luascript.cpp: In member function ‘bool LuaScriptInterface::loadDirectory(const string&, Npc*)’:
luascript.cpp:719:23: error: ‘class boost::filesystem3::directory_entry’ has no member named ‘leaf’
make[1]: *** [luascript.o] Error 1
make[1]: Leaving directory `/home/extrodus/Desktop/cryingdamsonsource'
make: *** [all] Error 2
 
One second, let me try.

The new errors are as follows:

Code:
extrodus@extrodus-VirtualBox:~/Desktop/cryingdamsonsource$ make
make  all-am
make[1]: Entering directory `/home/extrodus/Desktop/cryingdamsonsource'
g++ -DHAVE_CONFIG_H -I.  -I/usr/include/libxml2  -I/usr/include/lua5.1  -D__USE_MYSQL__  -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1 -MT luascript.o -MD -MP -MF .deps/luascript.Tpo -c -o luascript.o luascript.cpp
luascript.cpp: In static member function ‘static int32_t LuaScriptInterface::luaGetTownTemplePosition(lua_State*)’:
luascript.cpp:8769:7: warning: variable ‘displayError’ set but not used [-Wunused-but-set-variable]
mv -f .deps/luascript.Tpo .deps/luascript.Po
g++ -DHAVE_CONFIG_H -I.  -I/usr/include/libxml2  -I/usr/include/lua5.1  -D__USE_MYSQL__  -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1 -MT mailbox.o -MD -MP -MF .deps/mailbox.Tpo -c -o mailbox.o mailbox.cpp
mv -f .deps/mailbox.Tpo .deps/mailbox.Po
g++ -DHAVE_CONFIG_H -I.  -I/usr/include/libxml2  -I/usr/include/lua5.1  -D__USE_MYSQL__  -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1 -MT map.o -MD -MP -MF .deps/map.Tpo -c -o map.o map.cpp
mv -f .deps/map.Tpo .deps/map.Po
g++ -DHAVE_CONFIG_H -I.  -I/usr/include/libxml2  -I/usr/include/lua5.1  -D__USE_MYSQL__  -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1 -MT md5.o -MD -MP -MF .deps/md5.Tpo -c -o md5.o md5.cpp
mv -f .deps/md5.Tpo .deps/md5.Po
g++ -DHAVE_CONFIG_H -I.  -I/usr/include/libxml2  -I/usr/include/lua5.1  -D__USE_MYSQL__  -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1 -MT monster.o -MD -MP -MF .deps/monster.Tpo -c -o monster.o monster.cpp
monster.cpp: In member function ‘virtual void Monster::doAttacking(uint32_t)’:
monster.cpp:621:26: warning: variable ‘outOfRange’ set but not used [-Wunused-but-set-variable]
mv -f .deps/monster.Tpo .deps/monster.Po
g++ -DHAVE_CONFIG_H -I.  -I/usr/include/libxml2  -I/usr/include/lua5.1  -D__USE_MYSQL__  -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1 -MT monsters.o -MD -MP -MF .deps/monsters.Tpo -c -o monsters.o monsters.cpp
mv -f .deps/monsters.Tpo .deps/monsters.Po
g++ -DHAVE_CONFIG_H -I.  -I/usr/include/libxml2  -I/usr/include/lua5.1  -D__USE_MYSQL__  -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1 -MT movement.o -MD -MP -MF .deps/movement.Tpo -c -o movement.o movement.cpp
mv -f .deps/movement.Tpo .deps/movement.Po
g++ -DHAVE_CONFIG_H -I.  -I/usr/include/libxml2  -I/usr/include/lua5.1  -D__USE_MYSQL__  -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1 -MT networkmessage.o -MD -MP -MF .deps/networkmessage.Tpo -c -o networkmessage.o networkmessage.cpp
mv -f .deps/networkmessage.Tpo .deps/networkmessage.Po
g++ -DHAVE_CONFIG_H -I.  -I/usr/include/libxml2  -I/usr/include/lua5.1  -D__USE_MYSQL__  -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1 -MT npc.o -MD -MP -MF .deps/npc.Tpo -c -o npc.o npc.cpp
mv -f .deps/npc.Tpo .deps/npc.Po
g++ -DHAVE_CONFIG_H -I.  -I/usr/include/libxml2  -I/usr/include/lua5.1  -D__USE_MYSQL__  -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1 -MT otserv.o -MD -MP -MF .deps/otserv.Tpo -c -o otserv.o otserv.cpp
otserv.cpp: In function ‘void signalHandler(int32_t)’:
otserv.cpp:179:8: error: ‘SIGHUP’ was not declared in this scope
otserv.cpp:184:8: error: ‘SIGTRAP’ was not declared in this scope
otserv.cpp:188:8: error: ‘SIGCHLD’ was not declared in this scope
otserv.cpp:192:8: error: ‘SIGUSR1’ was not declared in this scope
otserv.cpp:197:8: error: ‘SIGUSR2’ was not declared in this scope
otserv.cpp:201:8: error: ‘SIGCONT’ was not declared in this scope
otserv.cpp:205:8: error: ‘SIGQUIT’ was not declared in this scope
otserv.cpp:210:8: error: ‘SIGTERM’ was not declared in this scope
otserv.cpp: In function ‘int main(int, char**)’:
otserv.cpp:284:19: error: aggregate ‘main(int, char**)::sigaction sigh’ has incomplete type and cannot be defined
otserv.cpp:285:20: error: ‘SIG_IGN’ was not declared in this scope
otserv.cpp:287:27: error: ‘sigemptyset’ was not declared in this scope
otserv.cpp:288:12: error: ‘SIGPIPE’ was not declared in this scope
otserv.cpp:288:32: error: invalid use of incomplete type ‘struct main(int, char**)::sigaction’
otserv.cpp:284:9: error: forward declaration of ‘struct main(int, char**)::sigaction’
otserv.cpp:291:9: error: ‘SIGHUP’ was not declared in this scope
otserv.cpp:291:30: error: ‘signal’ was not declared in this scope
otserv.cpp:292:9: error: ‘SIGTRAP’ was not declared in this scope
otserv.cpp:293:9: error: ‘SIGCHLD’ was not declared in this scope
otserv.cpp:294:9: error: ‘SIGUSR1’ was not declared in this scope
otserv.cpp:295:9: error: ‘SIGUSR2’ was not declared in this scope
otserv.cpp:296:9: error: ‘SIGCONT’ was not declared in this scope
otserv.cpp:297:9: error: ‘SIGQUIT’ was not declared in this scope
otserv.cpp:298:9: error: ‘SIGTERM’ was not declared in this scope
otserv.cpp: In function ‘void allocationHandler()’:
otserv.cpp:231:28: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
make[1]: *** [otserv.o] Error 1
make[1]: Leaving directory `/home/extrodus/Desktop/cryingdamsonsource'
make: *** [all] Error 2
 
Last edited:
Added #include <sys/signal.h> to the start of luascrip.cpp.

Error Log as follows:
Code:
extrodus@extrodus-VirtualBox:~/Desktop/cryingdamsonsource$ make
make  all-am
make[1]: Entering directory `/home/extrodus/Desktop/cryingdamsonsource'
g++ -DHAVE_CONFIG_H -I.  -I/usr/include/libxml2  -I/usr/include/lua5.1  -D__USE_MYSQL__  -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1 -MT luascript.o -MD -MP -MF .deps/luascript.Tpo -c -o luascript.o luascript.cpp
luascript.cpp: In static member function ‘static int32_t LuaScriptInterface::luaGetTownTemplePosition(lua_State*)’:
luascript.cpp:8769:7: warning: variable ‘displayError’ set but not used [-Wunused-but-set-variable]
mv -f .deps/luascript.Tpo .deps/luascript.Po
g++ -DHAVE_CONFIG_H -I.  -I/usr/include/libxml2  -I/usr/include/lua5.1  -D__USE_MYSQL__  -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1 -MT mailbox.o -MD -MP -MF .deps/mailbox.Tpo -c -o mailbox.o mailbox.cpp
mv -f .deps/mailbox.Tpo .deps/mailbox.Po
g++ -DHAVE_CONFIG_H -I.  -I/usr/include/libxml2  -I/usr/include/lua5.1  -D__USE_MYSQL__  -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1 -MT map.o -MD -MP -MF .deps/map.Tpo -c -o map.o map.cpp
mv -f .deps/map.Tpo .deps/map.Po
g++ -DHAVE_CONFIG_H -I.  -I/usr/include/libxml2  -I/usr/include/lua5.1  -D__USE_MYSQL__  -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1 -MT md5.o -MD -MP -MF .deps/md5.Tpo -c -o md5.o md5.cpp
mv -f .deps/md5.Tpo .deps/md5.Po
g++ -DHAVE_CONFIG_H -I.  -I/usr/include/libxml2  -I/usr/include/lua5.1  -D__USE_MYSQL__  -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1 -MT monster.o -MD -MP -MF .deps/monster.Tpo -c -o monster.o monster.cpp
monster.cpp: In member function ‘virtual void Monster::doAttacking(uint32_t)’:
monster.cpp:621:26: warning: variable ‘outOfRange’ set but not used [-Wunused-but-set-variable]
mv -f .deps/monster.Tpo .deps/monster.Po
g++ -DHAVE_CONFIG_H -I.  -I/usr/include/libxml2  -I/usr/include/lua5.1  -D__USE_MYSQL__  -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1 -MT monsters.o -MD -MP -MF .deps/monsters.Tpo -c -o monsters.o monsters.cpp
mv -f .deps/monsters.Tpo .deps/monsters.Po
g++ -DHAVE_CONFIG_H -I.  -I/usr/include/libxml2  -I/usr/include/lua5.1  -D__USE_MYSQL__  -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1 -MT movement.o -MD -MP -MF .deps/movement.Tpo -c -o movement.o movement.cpp
mv -f .deps/movement.Tpo .deps/movement.Po
g++ -DHAVE_CONFIG_H -I.  -I/usr/include/libxml2  -I/usr/include/lua5.1  -D__USE_MYSQL__  -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1 -MT networkmessage.o -MD -MP -MF .deps/networkmessage.Tpo -c -o networkmessage.o networkmessage.cpp
mv -f .deps/networkmessage.Tpo .deps/networkmessage.Po
g++ -DHAVE_CONFIG_H -I.  -I/usr/include/libxml2  -I/usr/include/lua5.1  -D__USE_MYSQL__  -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1 -MT npc.o -MD -MP -MF .deps/npc.Tpo -c -o npc.o npc.cpp
mv -f .deps/npc.Tpo .deps/npc.Po
g++ -DHAVE_CONFIG_H -I.  -I/usr/include/libxml2  -I/usr/include/lua5.1  -D__USE_MYSQL__  -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1 -MT otserv.o -MD -MP -MF .deps/otserv.Tpo -c -o otserv.o otserv.cpp
otserv.cpp: In function ‘void signalHandler(int32_t)’:
otserv.cpp:179:8: error: ‘SIGHUP’ was not declared in this scope
otserv.cpp:184:8: error: ‘SIGTRAP’ was not declared in this scope
otserv.cpp:188:8: error: ‘SIGCHLD’ was not declared in this scope
otserv.cpp:192:8: error: ‘SIGUSR1’ was not declared in this scope
otserv.cpp:197:8: error: ‘SIGUSR2’ was not declared in this scope
otserv.cpp:201:8: error: ‘SIGCONT’ was not declared in this scope
otserv.cpp:205:8: error: ‘SIGQUIT’ was not declared in this scope
otserv.cpp:210:8: error: ‘SIGTERM’ was not declared in this scope
otserv.cpp: In function ‘int main(int, char**)’:
otserv.cpp:284:19: error: aggregate ‘main(int, char**)::sigaction sigh’ has incomplete type and cannot be defined
otserv.cpp:285:20: error: ‘SIG_IGN’ was not declared in this scope
otserv.cpp:287:27: error: ‘sigemptyset’ was not declared in this scope
otserv.cpp:288:12: error: ‘SIGPIPE’ was not declared in this scope
otserv.cpp:288:32: error: invalid use of incomplete type ‘struct main(int, char**)::sigaction’
otserv.cpp:284:9: error: forward declaration of ‘struct main(int, char**)::sigaction’
otserv.cpp:291:9: error: ‘SIGHUP’ was not declared in this scope
otserv.cpp:291:30: error: ‘signal’ was not declared in this scope
otserv.cpp:292:9: error: ‘SIGTRAP’ was not declared in this scope
otserv.cpp:293:9: error: ‘SIGCHLD’ was not declared in this scope
otserv.cpp:294:9: error: ‘SIGUSR1’ was not declared in this scope
otserv.cpp:295:9: error: ‘SIGUSR2’ was not declared in this scope
otserv.cpp:296:9: error: ‘SIGCONT’ was not declared in this scope
otserv.cpp:297:9: error: ‘SIGQUIT’ was not declared in this scope
otserv.cpp:298:9: error: ‘SIGTERM’ was not declared in this scope
otserv.cpp: In function ‘void allocationHandler()’:
otserv.cpp:231:28: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
make[1]: *** [otserv.o] Error 1
make[1]: Leaving directory `/home/extrodus/Desktop/cryingdamsonsource'
make: *** [all] Error 2

Thank you for helping me! Seems the list is getting smaller, but holy crap at all the errors still.
 
Hehe, no worries.

Errors now:

Code:
extrodus@extrodus-VirtualBox:~/Desktop/cryingdamsonsource$ make
make  all-am
make[1]: Entering directory `/home/extrodus/Desktop/cryingdamsonsource'
g++ -DHAVE_CONFIG_H -I.  -I/usr/include/libxml2  -I/usr/include/lua5.1  -D__USE_MYSQL__  -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1 -MT luascript.o -MD -MP -MF .deps/luascript.Tpo -c -o luascript.o luascript.cpp
luascript.cpp: In static member function ‘static int32_t LuaScriptInterface::luaGetTownTemplePosition(lua_State*)’:
luascript.cpp:8769:7: warning: variable ‘displayError’ set but not used [-Wunused-but-set-variable]
mv -f .deps/luascript.Tpo .deps/luascript.Po
g++ -DHAVE_CONFIG_H -I.  -I/usr/include/libxml2  -I/usr/include/lua5.1  -D__USE_MYSQL__  -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1 -MT otserv.o -MD -MP -MF .deps/otserv.Tpo -c -o otserv.o otserv.cpp
otserv.cpp: In function ‘void allocationHandler()’:
otserv.cpp:232:28: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
mv -f .deps/otserv.Tpo .deps/otserv.Po
g++ -DHAVE_CONFIG_H -I.  -I/usr/include/libxml2  -I/usr/include/lua5.1  -D__USE_MYSQL__  -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1 -MT outfit.o -MD -MP -MF .deps/outfit.Tpo -c -o outfit.o outfit.cpp
mv -f .deps/outfit.Tpo .deps/outfit.Po
g++ -DHAVE_CONFIG_H -I.  -I/usr/include/libxml2  -I/usr/include/lua5.1  -D__USE_MYSQL__  -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1 -MT outputmessage.o -MD -MP -MF .deps/outputmessage.Tpo -c -o outputmessage.o outputmessage.cpp
mv -f .deps/outputmessage.Tpo .deps/outputmessage.Po
g++ -DHAVE_CONFIG_H -I.  -I/usr/include/libxml2  -I/usr/include/lua5.1  -D__USE_MYSQL__  -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1 -MT party.o -MD -MP -MF .deps/party.Tpo -c -o party.o party.cpp
mv -f .deps/party.Tpo .deps/party.Po
g++ -DHAVE_CONFIG_H -I.  -I/usr/include/libxml2  -I/usr/include/lua5.1  -D__USE_MYSQL__  -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1 -MT playerbox.o -MD -MP -MF .deps/playerbox.Tpo -c -o playerbox.o playerbox.cpp
mv -f .deps/playerbox.Tpo .deps/playerbox.Po
g++ -DHAVE_CONFIG_H -I.  -I/usr/include/libxml2  -I/usr/include/lua5.1  -D__USE_MYSQL__  -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1 -MT player.o -MD -MP -MF .deps/player.Tpo -c -o player.o player.cpp
mv -f .deps/player.Tpo .deps/player.Po
g++ -DHAVE_CONFIG_H -I.  -I/usr/include/libxml2  -I/usr/include/lua5.1  -D__USE_MYSQL__  -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1 -MT position.o -MD -MP -MF .deps/position.Tpo -c -o position.o position.cpp
mv -f .deps/position.Tpo .deps/position.Po
g++ -DHAVE_CONFIG_H -I.  -I/usr/include/libxml2  -I/usr/include/lua5.1  -D__USE_MYSQL__  -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1 -MT protocol.o -MD -MP -MF .deps/protocol.Tpo -c -o protocol.o protocol.cpp
mv -f .deps/protocol.Tpo .deps/protocol.Po
g++ -DHAVE_CONFIG_H -I.  -I/usr/include/libxml2  -I/usr/include/lua5.1  -D__USE_MYSQL__  -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1 -MT protocolgame.o -MD -MP -MF .deps/protocolgame.Tpo -c -o protocolgame.o protocolgame.cpp
mv -f .deps/protocolgame.Tpo .deps/protocolgame.Po
g++ -DHAVE_CONFIG_H -I.  -I/usr/include/libxml2  -I/usr/include/lua5.1  -D__USE_MYSQL__  -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1 -MT protocollogin.o -MD -MP -MF .deps/protocollogin.Tpo -c -o protocollogin.o protocollogin.cpp
mv -f .deps/protocollogin.Tpo .deps/protocollogin.Po
g++ -DHAVE_CONFIG_H -I.  -I/usr/include/libxml2  -I/usr/include/lua5.1  -D__USE_MYSQL__  -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1 -MT protocolold.o -MD -MP -MF .deps/protocolold.Tpo -c -o protocolold.o protocolold.cpp
mv -f .deps/protocolold.Tpo .deps/protocolold.Po
g++ -DHAVE_CONFIG_H -I.  -I/usr/include/libxml2  -I/usr/include/lua5.1  -D__USE_MYSQL__  -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1 -MT quests.o -MD -MP -MF .deps/quests.Tpo -c -o quests.o quests.cpp
mv -f .deps/quests.Tpo .deps/quests.Po
g++ -DHAVE_CONFIG_H -I.  -I/usr/include/libxml2  -I/usr/include/lua5.1  -D__USE_MYSQL__  -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1 -MT raids.o -MD -MP -MF .deps/raids.Tpo -c -o raids.o raids.cpp
mv -f .deps/raids.Tpo .deps/raids.Po
g++ -DHAVE_CONFIG_H -I.  -I/usr/include/libxml2  -I/usr/include/lua5.1  -D__USE_MYSQL__  -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1 -MT rsa.o -MD -MP -MF .deps/rsa.Tpo -c -o rsa.o rsa.cpp
mv -f .deps/rsa.Tpo .deps/rsa.Po
g++ -DHAVE_CONFIG_H -I.  -I/usr/include/libxml2  -I/usr/include/lua5.1  -D__USE_MYSQL__  -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1 -MT scheduler.o -MD -MP -MF .deps/scheduler.Tpo -c -o scheduler.o scheduler.cpp
mv -f .deps/scheduler.Tpo .deps/scheduler.Po
g++ -DHAVE_CONFIG_H -I.  -I/usr/include/libxml2  -I/usr/include/lua5.1  -D__USE_MYSQL__  -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1 -MT scriptmanager.o -MD -MP -MF .deps/scriptmanager.Tpo -c -o scriptmanager.o scriptmanager.cpp
scriptmanager.cpp: In member function ‘bool ScriptingManager::loadMods()’:
scriptmanager.cpp:122:23: error: ‘class boost::filesystem3::directory_entry’ has no member named ‘leaf’
make[1]: *** [scriptmanager.o] Error 1
make[1]: Leaving directory `/home/extrodus/Desktop/cryingdamsonsource'
make: *** [all] Error 2

Should I just replace leaf() with what I replaced it with in the other file?

Edit:
Proceeded to edit scriptmanager.cpp and change leaf() to path().filename().string()
It now compiled and I have the server running. Thank you for your help, and hopefully this helps anyone else with this problem.
 
Last edited:
Back
Top