Hello, i just tried to compile the latest source that i got from the SVN "tags" repo.
Could someone please help me figure this problem out? i've only got this problem compiling TFS, Not with OTServ itself.
Could someone please help me figure this problem out? i've only got this problem compiling TFS, Not with OTServ itself.
Code:
make[1]: Entering directory `/home/rhollander/sources/TFS/forgottenserver/tags/0.3b3'
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:143:8: error: ‘SIGHUP’ was not declared in this scope
otserv.cpp:148:8: error: ‘SIGTRAP’ was not declared in this scope
otserv.cpp:153:8: error: ‘SIGUSR1’ was not declared in this scope
otserv.cpp:157:8: error: ‘SIGUSR2’ was not declared in this scope
otserv.cpp:160:8: error: ‘SIGWINCH’ was not declared in this scope
otserv.cpp:163:8: error: ‘SIGQUIT’ was not declared in this scope
otserv.cpp:167:8: error: ‘SIGTERM’ was not declared in this scope
otserv.cpp: In function ‘int main(int, char**)’:
otserv.cpp:212:19: error: aggregate ‘main(int, char**)::sigaction sigh’ has incomplete type and cannot be defined
otserv.cpp:213:20: error: ‘SIG_IGN’ was not declared in this scope
otserv.cpp:215:27: error: ‘sigemptyset’ was not declared in this scope
otserv.cpp:216:12: error: ‘SIGPIPE’ was not declared in this scope
otserv.cpp:216:32: error: invalid use of incomplete type ‘struct main(int, char**)::sigaction’
otserv.cpp:212:9: error: forward declaration of ‘struct main(int, char**)::sigaction’
otserv.cpp:219:9: error: ‘SIGHUP’ was not declared in this scope
otserv.cpp:219:30: error: ‘signal’ was not declared in this scope
otserv.cpp:220:9: error: ‘SIGTRAP’ was not declared in this scope
otserv.cpp:221:9: error: ‘SIGUSR1’ was not declared in this scope
otserv.cpp:222:9: error: ‘SIGUSR2’ was not declared in this scope
otserv.cpp:223:9: error: ‘SIGWINCH’ was not declared in this scope
otserv.cpp:224:9: error: ‘SIGQUIT’ was not declared in this scope
otserv.cpp:225:9: error: ‘SIGTERM’ was not declared in this scope
make[1]: *** [otserv.o] Error 1
make[1]: Leaving directory `/home/rhollander/sources/TFS/forgottenserver/tags/0.3b3'
make: *** [all] Error 2