Ir para conteúdo
  • Cadastre-se

Suporte ERRO COMPILAR TFS 0.4 LINUX UBUNTU 20.04


Posts Recomendados

.Qual servidor ou website você utiliza como base? 

8.60 tfs0.4

Qual o motivo deste tópico? 

Não consigo compilar no linux da sempre esse erro \/

Está surgindo algum erro? Se sim coloque-o aqui. 

Citar

In file included from chat.h:20,
                 from chat.cpp:18:
otsystem.h: In function ‘int64_t OTSYS_TIME()’:
otsystem.h:115:10: error: ‘int ftime(timeb*)’ is deprecated [-Werror=deprecated-declarations]
  115 |  ftime(&t);
      |          ^
In file included from otsystem.h:76,
                 from chat.h:20,
                 from chat.cpp:18:
/usr/include/x86_64-linux-gnu/sys/timeb.h:39:12: note: declared here
   39 | extern int ftime (struct timeb *__timebuf)
      |            ^~~~~
In file included from chat.h:20,
                 from chat.cpp:18:
otsystem.h:115:10: error: ‘int ftime(timeb*)’ is deprecated [-Werror=deprecated-declarations]
  115 |  ftime(&t);
      |          ^
In file included from otsystem.h:76,
                 from chat.h:20,
                 from chat.cpp:18:
/usr/include/x86_64-linux-gnu/sys/timeb.h:39:12: note: declared here
   39 | extern int ftime (struct timeb *__timebuf)
      |            ^~~~~
In file included from combat.h:20,
                 from combat.cpp:20:
otsystem.h: In function ‘int64_t OTSYS_TIME()’:
otsystem.h:115:10: error: ‘int ftime(timeb*)’ is deprecated [-Werror=deprecated-declarations]
  115 |  ftime(&t);
      |          ^
In file included from otsystem.h:76,
                 from combat.h:20,
                 from combat.cpp:20:
/usr/include/x86_64-linux-gnu/sys/timeb.h:39:12: note: declared here
   39 | extern int ftime (struct timeb *__timebuf)
      |            ^~~~~
In file included from combat.h:20,
                 from combat.cpp:20:
otsystem.h:115:10: error: ‘int ftime(timeb*)’ is deprecated [-Werror=deprecated-declarations]
  115 |  ftime(&t);
      |          ^
In file included from otsystem.h:76,
                 from combat.h:20,
                 from combat.cpp:20:
/usr/include/x86_64-linux-gnu/sys/timeb.h:39:12: note: declared here
  115 |  ftime(&t);
      |          ^
In file included from otsystem.h:76,
                 from combat.h:20,
                 from combat.cpp:20:
/usr/include/x86_64-linux-gnu/sys/timeb.h:39:12: note: declared here
   39 | extern int ftime (struct timeb *__timebuf)
      |            ^~~~~
In file included from item.h:20,
                 from beds.h:20,
                 from beds.cpp:19:
otsystem.h: In function ‘int64_t OTSYS_TIME()’:
otsystem.h:115:10: error: ‘int ftime(timeb*)’ is deprecated [-Werror=deprecated-declarations]
  115 |  ftime(&t);
      |          ^
In file included from otsystem.h:76,
                 from item.h:20,
                 from beds.h:20,
                 from beds.cpp:19:
/usr/include/x86_64-linux-gnu/sys/timeb.h:39:12: note: declared here
   39 | extern int ftime (struct timeb *__timebuf)
      |            ^~~~~
In file included from item.h:20,
                 from beds.h:20,
                 from beds.cpp:19:
otsystem.h:115:10: error: ‘int ftime(timeb*)’ is deprecated [-Werror=deprecated-declarations]
  115 |  ftime(&t);
      |          ^
In file included from otsystem.h:76,
                 from item.h:20,
                 from beds.h:20,
                 from beds.cpp:19:
/usr/include/x86_64-linux-gnu/sys/timeb.h:39:12: note: declared here
   39 | extern int ftime (struct timeb *__timebuf)
      |            ^~~~~
In file included from baseevents.h:20,
                 from baseevents.cpp:20:
otsystem.h: In function ‘int64_t OTSYS_TIME()’:
otsystem.h:115:10: error: ‘int ftime(timeb*)’ is deprecated [-Werror=deprecated-declarations]
  115 |  ftime(&t);
      |          ^
In file included from otsystem.h:76,
                 from baseevents.h:20,
                 from baseevents.cpp:20:
/usr/include/x86_64-linux-gnu/sys/timeb.h:39:12: note: declared here
   39 | extern int ftime (struct timeb *__timebuf)
      |            ^~~~~
In file included from baseevents.h:20,
                 from baseevents.cpp:20:
otsystem.h:115:10: error: ‘int ftime(timeb*)’ is deprecated [-Werror=deprecated-declarations]
  115 |  ftime(&t);
      |          ^
In file included from otsystem.h:76,
                 from baseevents.h:20,
                 from baseevents.cpp:20:
/usr/include/x86_64-linux-gnu/sys/timeb.h:39:12: note: declared here
   39 | extern int ftime (struct timeb *__timebuf)
      |            ^~~~~
In file included from baseevents.h:20,
                 from actions.h:20,
                 from actions.cpp:20:
otsystem.h: In function ‘int64_t OTSYS_TIME()’:
otsystem.h:115:10: error: ‘int ftime(timeb*)’ is deprecated [-Werror=deprecated-declarations]
  115 |  ftime(&t);
      |          ^
In file included from otsystem.h:76,
                 from baseevents.h:20,
                 from actions.h:20,
                 from actions.cpp:20:
/usr/include/x86_64-linux-gnu/sys/timeb.h:39:12: note: declared here
   39 | extern int ftime (struct timeb *__timebuf)
      |            ^~~~~
In file included from baseevents.h:20,
                 from actions.h:20,
                 from actions.cpp:20:
otsystem.h:115:10: error: ‘int ftime(timeb*)’ is deprecated [-Werror=deprecated-declarations]
  115 |  ftime(&t);
      |          ^
In file included from otsystem.h:76,
                 from baseevents.h:20,
                 from actions.h:20,
                 from actions.cpp:20:
/usr/include/x86_64-linux-gnu/sys/timeb.h:39:12: note: declared here
   39 | extern int ftime (struct timeb *__timebuf)
      |            ^~~~~
In file included from party.h:20,
                 from chat.h:24,
                 from chat.cpp:18:
player.h: In member function ‘bool Player::isUsingOtclient() const’:
player.h:386:66: error: ‘CLIENTOS_OTCLIENT_LINUX’ was not declared in this scope
  386 |         bool isUsingOtclient() const { return operatingSystem >= CLIENTOS_OTCLIENT_LINUX; }
      |                                                                  ^~~~~~~~~~~~~~~~~~~~~~~
player.h: In member function ‘void Player::sendExtendedOpcode(uint8_t, const string&)’:
player.h:796:29: error: ‘class ProtocolGame’ has no member named ‘sendExtendedOpcode’
  796 |         {if(client) client->sendExtendedOpcode(opcode, buffer);}
      |                             ^~~~~~~~~~~~~~~~~~
In file included from game.h:30,
                 from combat.cpp:23:
player.h: In member function ‘bool Player::isUsingOtclient() const’:
player.h:386:66: error: ‘CLIENTOS_OTCLIENT_LINUX’ was not declared in this scope
  386 |         bool isUsingOtclient() const { return operatingSystem >= CLIENTOS_OTCLIENT_LINUX; }
      |                                                                  ^~~~~~~~~~~~~~~~~~~~~~~
player.h: In member function ‘void Player::sendExtendedOpcode(uint8_t, const string&)’:
player.h:796:29: error: ‘class ProtocolGame’ has no member named ‘sendExtendedOpcode’
  796 |         {if(client) client->sendExtendedOpcode(opcode, buffer);}
      |                             ^~~~~~~~~~~~~~~~~~
In file included from house.h:27,
                 from beds.cpp:20:
player.h: In member function ‘bool Player::isUsingOtclient() const’:
player.h:386:66: error: ‘CLIENTOS_OTCLIENT_LINUX’ was not declared in this scope
  386 |         bool isUsingOtclient() const { return operatingSystem >= CLIENTOS_OTCLIENT_LINUX; }
      |                                                                  ^~~~~~~~~~~~~~~~~~~~~~~
player.h: In member function ‘void Player::sendExtendedOpcode(uint8_t, const string&)’:
player.h:796:29: error: ‘class ProtocolGame’ has no member named ‘sendExtendedOpcode’
  796 |         {if(client) client->sendExtendedOpcode(opcode, buffer);}
      |                             ^~~~~~~~~~~~~~~~~~
chat.cpp: In member function ‘ChatChannel* Chat::getChannel(Player*, uint16_t)’:
chat.cpp:1144:10: error: cannot convert ‘bool’ to ‘ChatChannel*’ in return
 1144 |   return false;
      |          ^~~~~
In file included from actions.cpp:23:
player.h: In member function ‘bool Player::isUsingOtclient() const’:
player.h:386:66: error: ‘CLIENTOS_OTCLIENT_LINUX’ was not declared in this scope
  386 |         bool isUsingOtclient() const { return operatingSystem >= CLIENTOS_OTCLIENT_LINUX; }
      |                                                                  ^~~~~~~~~~~~~~~~~~~~~~~
player.h: In member function ‘void Player::sendExtendedOpcode(uint8_t, const string&)’:
player.h:796:29: error: ‘class ProtocolGame’ has no member named ‘sendExtendedOpcode’
  796 |         {if(client) client->sendExtendedOpcode(opcode, buffer);}
      |                             ^~~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
make[1]: *** [Makefile:595: beds.o] Error 1
make[1]: *** Waiting for unfinished jobs....
cc1plus: all warnings being treated as errors
cc1plus: all warnings being treated as errors
make[1]: *** [Makefile:595: chat.o] Error 1
make[1]: *** [Makefile:595: combat.o] Error 1
cc1plus: all warnings being treated as errors
make[1]: *** [Makefile:595: baseevents.o] Error 1
cc1plus: all warnings being treated as errors
make[1]: *** [Makefile:595: actions.o] Error 1
make[1]: Leaving directory '/pbotserv/src'
make: *** [Makefile:445: all] Error 2

 

Você tem o código disponível? Se tiver publique-o aqui: 

 

 

Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui. 

 

SE AJUDEI REP+ ;D, NÃO CUSTA NADA.

uRti.png

<a href="http://central.evenhost.net/aff.php?aff=020"><img src="http://i.imm.io/uRti.png" width="500" height="82" border="0"></a>

Link para o post
Compartilhar em outros sites

A função ftime está obsoleta e não existe nas distros mais recentes de linux, entre elas Ubuntu 20.04. A solução mais simples seria utilizar Ubuntu 18.04, mas você também pode alterar a função na source ou fazer alterações no sistema linux para aceitar a função (o que não é recomendado pra quem não domina o sistema).

 

 

 

Nós somos aquilo que fazemos repetidamente. Excelência, não é um modo de agir, mas um hábito.

                                                                                                                                                                                                                                        Aristóteles 

Link para o post
Compartilhar em outros sites
  • 1 month later...
Em 15/06/2020 em 04:56, WooX disse:

A função ftime está obsoleta e não existe nas distros mais recentes de linux, entre elas Ubuntu 20.04. A solução mais simples seria utilizar Ubuntu 18.04, mas você também pode alterar a função na source ou fazer alterações no sistema linux para aceitar a função (o que não é recomendado pra quem não domina o sistema).

@WooX qual seria essa alteração na source? Também preciso compilar no Ubuntu 20.04

Link para o post
Compartilhar em outros sites
35 minutos atrás, Mecianosz disse:

@WooX qual seria essa alteração na source? Também preciso compilar no Ubuntu 20.04

https://man7.org/linux/man-pages/man3/ftime.3.html

 

 

 

Nós somos aquilo que fazemos repetidamente. Excelência, não é um modo de agir, mas um hábito.

                                                                                                                                                                                                                                        Aristóteles 

Link para o post
Compartilhar em outros sites
  • 1 year later...
4 horas atrás, Farathor disse:

Woox, como fazemos essa substituicao ?

 

https://github.com/mattyx14/otxserver/commit/129d1f60ace94f0476b2d4d722b10b5ad9ab87e3

 

 

 

Nós somos aquilo que fazemos repetidamente. Excelência, não é um modo de agir, mas um hábito.

                                                                                                                                                                                                                                        Aristóteles 

Link para o post
Compartilhar em outros sites

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emojis são permitidos.

×   Seu link foi automaticamente incorporado.   Mostrar como link

×   Seu conteúdo anterior foi restaurado.   Limpar o editor

×   Não é possível colar imagens diretamente. Carregar ou inserir imagens do URL.

  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.


  • Conteúdo Similar

    • Por braianlomas
      Como faço para corrigir esse problema para meu cliente, eu uso o tfs 0.3.6  
      Quero resolver esse problema que tenho no meu cliente, como e onde posso resolver?  
      Eu uso o tfs 0.3.6, não tenho as fontes do cliente, se você puder me dar eu vou amá-las para sempre  
       

       
    • Por A.Mokk
      Ola pessoal, estou tentando compilar o TFS 1.5 Downgrade para 8.60 atraves do MSVC 2022, ao tentar compilar da o seguinte erro:
       
       
      Fiz o download do MSVC, GitDash, TFS-SDK-3.2, e de varios boosts que tentei, ao fazer o seguinte procedimento no GitDash:
       
      Ao chegar em ./bootstrap-vcpkg.bat o GitDash nao consegue realizar o procedimento corretamente, alguem poderia me ajudar ?

      Tentei de diversas formas mas o mesmo erro sempre persiste, atualmente meu servidor utiliza TFS 0.4, consigo compilar sem nenhum problema no MSVC 2010, porem, as limitações do TFS 0.4 estão me fazendo precisar atualizar, se alguem souber como corrigir esses erros eu agradeço !

      Tutoriais utilizados :
      Compiling on Windows (vcpkg) · otland/forgottenserver Wiki · GitHub
      Compiling on Windows · otland/forgottenserver Wiki · GitHub
      Compilando TFS 1.3 com vídeo-aula - Tutoriais Infraestrutura & Proteção - Tibia King - Tudo sobre Tibia, OTServ e Bots!
      Compilar TFS 1.3 Vcpkg - Tutoriais Infraestrutura & Proteção - Tibia King - Tudo sobre Tibia, OTServ e Bots!
       
      O que acontece no Powershell:
       
    • Por thunmin
      .Qual servidor ou website você utiliza como base? 
      Canary 2.3.6
      Qual o motivo deste tópico? 
      Queria fazer com que os players não pudessem mexer no aleta sio, pois, agora os mesmos estão conseguindo mexer nos itens
      Está surgindo algum erro? Se sim coloque-o aqui. 
       
      Você tem o código disponível? Se tiver publique-o aqui: 
         
      Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui. 
       
    • Por thunmin
      .Qual servidor ou website você utiliza como base? 
      canary para o cliente 13.16
      Qual o motivo deste tópico? 
      Não consigo encontrar onde ajusta
      to com o problema no 13.16  o exausted, por exemplo os kinas era pra combar exori, erori gran e exori min, porém não ta indo ta dando exausted o char ta soltando magia ou runa e não consegue usar as potions
      Está surgindo algum erro? Se sim coloque-o aqui. 
       
      Você tem o código disponível? Se tiver publique-o aqui: 
         
      Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui. 
       
    • Por Andersontatuador
      Olá galera da TK, me chamo Anderson estou procurando alguém profissional em otservs e site.
      Já tenho um servidor o site e o cliente preciso só de uma pessoal competente, que esteja empenhado a trabalhar,
      não quero nada de graça, pois nessa onda fui mais roubado do quer eu pagar um profissional.
      caso alguém se interesse entrar em contato comigo através do whatsapp
      82 9 9304-9462
       
      Está surgindo algum erro? Se sim coloque-o aqui. 
       
      Você tem o código disponível? Se tiver publique-o aqui: 
         
      Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui. 
       
×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo