Ir para conteúdo

Featured Replies

Postado

.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>

  • Respostas 5
  • Visualizações 2.4k
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

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

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

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

Postado

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 

  • 1 month later...
Postado
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

Postado
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 

  • 1 year later...

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

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo