RogerGalvao
New Member
- Joined
- Nov 23, 2012
- Messages
- 6
- Reaction score
- 0
I try compilling in Ubuntu 12.04 LTS this source , http://otland.net/f18/8-60-lost-server-0-3-6-a-161517/ it give a error
F .deps/otserv.Tpo -c -o otserv.o otserv.cpp
In file included from game.h:22:0,
from otserv.cpp:34:
enums.h: No construtor ‘Outfit_t::Outfit_t(uint16_t)’:
enums.h:292:13: aviso: statement has no effect [-Wunused-value]
otserv.cpp: Na função ‘void signalHandler(int32_t)’:
otserv.cpp:179:8: erro: ‘SIGHUP’ was not declared in this scope
otserv.cpp:184:8: erro: ‘SIGTRAP’ was not declared in this scope
otserv.cpp:188:8: erro: ‘SIGCHLD’ was not declared in this scope
otserv.cpp:192:8: erro: ‘SIGUSR1’ was not declared in this scope
otserv.cpp:197:8: erro: ‘SIGUSR2’ was not declared in this scope
otserv.cpp:201:8: erro: ‘SIGCONT’ was not declared in this scope
otserv.cpp:205:8: erro: ‘SIGQUIT’ was not declared in this scope
otserv.cpp:210:8: erro: ‘SIGTERM’ was not declared in this scope
otserv.cpp: Na função ‘int main(int, char**)’:
otserv.cpp:284:19: erro: aggregate ‘main(int, char**)::sigaction sigh’ has incomplete type and cannot be defined
otserv.cpp:285:20: erro: ‘SIG_IGN’ was not declared in this scope
otserv.cpp:287:27: erro: ‘sigemptyset’ was not declared in this scope
otserv.cpp:288:12: erro: ‘SIGPIPE’ was not declared in this scope
otserv.cpp:288:32: erro: invalid use of incomplete type ‘struct main(int, char**)::sigaction’
otserv.cpp:284:9: erro: forward declaration of ‘struct main(int, char**)::sigaction’
otserv.cpp:291:9: erro: ‘SIGHUP’ was not declared in this scope
otserv.cpp:291:30: erro: ‘signal’ was not declared in this scope
otserv.cpp:292:9: erro: ‘SIGTRAP’ was not declared in this scope
otserv.cpp:293:9: erro: ‘SIGCHLD’ was not declared in this scope
otserv.cpp:294:9: erro: ‘SIGUSR1’ was not declared in this scope
otserv.cpp:295:9: erro: ‘SIGUSR2’ was not declared in this scope
otserv.cpp:296:9: erro: ‘SIGCONT’ was not declared in this scope
otserv.cpp:297:9: erro: ‘SIGQUIT’ was not declared in this scope
otserv.cpp:298:9: erro: ‘SIGTERM’ was not declared in this scope
otserv.cpp: Na função ‘void allocationHandler()’:
otserv.cpp:231:28: aviso: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
make[1]: ** [otserv.o] Erro 1
make[1]: Saindo do diretório `/home/rogerio/Downloads/source'
make: ** [all] Erro 2
F .deps/otserv.Tpo -c -o otserv.o otserv.cpp
In file included from game.h:22:0,
from otserv.cpp:34:
enums.h: No construtor ‘Outfit_t::Outfit_t(uint16_t)’:
enums.h:292:13: aviso: statement has no effect [-Wunused-value]
otserv.cpp: Na função ‘void signalHandler(int32_t)’:
otserv.cpp:179:8: erro: ‘SIGHUP’ was not declared in this scope
otserv.cpp:184:8: erro: ‘SIGTRAP’ was not declared in this scope
otserv.cpp:188:8: erro: ‘SIGCHLD’ was not declared in this scope
otserv.cpp:192:8: erro: ‘SIGUSR1’ was not declared in this scope
otserv.cpp:197:8: erro: ‘SIGUSR2’ was not declared in this scope
otserv.cpp:201:8: erro: ‘SIGCONT’ was not declared in this scope
otserv.cpp:205:8: erro: ‘SIGQUIT’ was not declared in this scope
otserv.cpp:210:8: erro: ‘SIGTERM’ was not declared in this scope
otserv.cpp: Na função ‘int main(int, char**)’:
otserv.cpp:284:19: erro: aggregate ‘main(int, char**)::sigaction sigh’ has incomplete type and cannot be defined
otserv.cpp:285:20: erro: ‘SIG_IGN’ was not declared in this scope
otserv.cpp:287:27: erro: ‘sigemptyset’ was not declared in this scope
otserv.cpp:288:12: erro: ‘SIGPIPE’ was not declared in this scope
otserv.cpp:288:32: erro: invalid use of incomplete type ‘struct main(int, char**)::sigaction’
otserv.cpp:284:9: erro: forward declaration of ‘struct main(int, char**)::sigaction’
otserv.cpp:291:9: erro: ‘SIGHUP’ was not declared in this scope
otserv.cpp:291:30: erro: ‘signal’ was not declared in this scope
otserv.cpp:292:9: erro: ‘SIGTRAP’ was not declared in this scope
otserv.cpp:293:9: erro: ‘SIGCHLD’ was not declared in this scope
otserv.cpp:294:9: erro: ‘SIGUSR1’ was not declared in this scope
otserv.cpp:295:9: erro: ‘SIGUSR2’ was not declared in this scope
otserv.cpp:296:9: erro: ‘SIGCONT’ was not declared in this scope
otserv.cpp:297:9: erro: ‘SIGQUIT’ was not declared in this scope
otserv.cpp:298:9: erro: ‘SIGTERM’ was not declared in this scope
otserv.cpp: Na função ‘void allocationHandler()’:
otserv.cpp:231:28: aviso: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
make[1]: ** [otserv.o] Erro 1
make[1]: Saindo do diretório `/home/rogerio/Downloads/source'
make: ** [all] Erro 2