Domanda ERRORE start - file kraizy.tgz

Stato
Discussione chiusa ad ulteriori risposte.

Mind | Logic

Utente Silver
26 Giugno 2013
107
18
45
92
Buondì tutto il dì,

questa settimana di vacanza mi è risalito il pallino dei privati di metin, e quindi sono tornato tutto spavaldo per crearne uno nuovo.
La faccio breve, non riesco a startare con i file di Kraizy, l'errore penso stia proprio nei file ma aspetto conferme da gente che ne sa!
Dopo aver installato il necessario sulla macchina (upgradata a freebsd 12.0, in quanto quelle sotto sono tutte obsolete (11.3 esclusa)),
durante la faste di compilaizone dei file di metin, dopo aver eseguito il comando "gmake all", inceppo in questo errore

Codice:
--------------------------------------
Full Build Start
--------------------------------------
gmake -C libserverkey dep
gmake[1]: Entering directory '/root/Metin/Server/libserverkey'
touch Depend
g++9  -Wall -O2 -pipe -m32 -D_THREAD_SAFE -fno-exceptions  -MM *.cpp > Depend
gmake[1]: Leaving directory '/root/Metin/Server/libserverkey'
gmake -C libserverkey clean
gmake[1]: Entering directory '/root/Metin/Server/libserverkey'
rm -f *.o
rm -f ./libserverkey.a
gmake[1]: Leaving directory '/root/Metin/Server/libserverkey'
gmake -C libserverkey
gmake[1]: Entering directory '/root/Metin/Server/libserverkey'
gmake ./libserverkey.a
gmake[2]: Entering directory '/root/Metin/Server/libserverkey'
g++9  -Wall -O2 -pipe -m32 -D_THREAD_SAFE -fno-exceptions  -c base64_ssl.cpp
base64_ssl.cpp: In function 'bool base64_ssl(const unsigned char*, int, unsigned char*, int)':
base64_ssl.cpp:21:13: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'unsigned int'} [-Wsign-compare]
   21 |  if (outlen < bptr->length)
      |      ~~~~~~~^~~~~~~~~~~~~~
g++9  -Wall -O2 -pipe -m32 -D_THREAD_SAFE -fno-exceptions  -c RSACrypto.cpp
In file included from RSACrypto.cpp:1:
RSACrypto.h: In static member function 'static void Security::Buffer::Free(Security::Buffer&)':
RSACrypto.h:38:34: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct Security::Buffer'; use assignment or value-initialization instead [-Wclass-memaccess]
   38 |    memset(&buf, 0, sizeof(Buffer));
      |                                  ^
RSACrypto.h:19:9: note: 'struct Security::Buffer' declared here
   19 |  struct Buffer
      |         ^~~~~~
RSACrypto.cpp: In constructor 'Security::RSACrypto::PublicKey::PublicKey(const char*, const char*)':
RSACrypto.cpp:66:18: error: invalid use of incomplete type 'struct rsa_st'
   66 |   BN_hex2bn(&rsa_->n, n);
      |                  ^~
In file included from RSACrypto.cpp:1:
RSACrypto.h:14:8: note: forward declaration of 'struct rsa_st'
   14 | struct rsa_st;
      |        ^~~~~~
RSACrypto.cpp:67:18: error: invalid use of incomplete type 'struct rsa_st'
   67 |   BN_hex2bn(&rsa_->e, e);
      |                  ^~
In file included from RSACrypto.cpp:1:
RSACrypto.h:14:8: note: forward declaration of 'struct rsa_st'
   14 | struct rsa_st;
      |        ^~~~~~
RSACrypto.cpp: In member function 'RSA* Security::RSACrypto::PublicKey::Alloc()':
RSACrypto.cpp:143:6: error: invalid use of incomplete type 'RSA' {aka 'struct rsa_st'}
  143 |   rsa->n = BN_new();
      |      ^~
In file included from RSACrypto.cpp:1:
RSACrypto.h:14:8: note: forward declaration of 'RSA' {aka 'struct rsa_st'}
   14 | struct rsa_st;
      |        ^~~~~~
RSACrypto.cpp:144:6: error: invalid use of incomplete type 'RSA' {aka 'struct rsa_st'}
  144 |   rsa->e = BN_new();
      |      ^~
In file included from RSACrypto.cpp:1:
RSACrypto.h:14:8: note: forward declaration of 'RSA' {aka 'struct rsa_st'}
   14 | struct rsa_st;
      |        ^~~~~~
RSACrypto.cpp: In member function 'void Security::RSACrypto::PublicKey::Copy(rsa_st*, const rsa_st*)':
RSACrypto.cpp:159:14: error: invalid use of incomplete type 'struct rsa_st'
  159 |   BN_copy( to->n, from->n );
      |              ^~
In file included from RSACrypto.cpp:1:
RSACrypto.h:14:8: note: forward declaration of 'struct rsa_st'
   14 | struct rsa_st;
      |        ^~~~~~
RSACrypto.cpp:159:23: error: invalid use of incomplete type 'const struct rsa_s '
  159 |   BN_copy( to->n, from->n );
      |                       ^~
In file included from RSACrypto.cpp:1:
RSACrypto.h:14:8: note: forward declaration of 'struct rsa_st'
   14 | struct rsa_st;
      |        ^~~~~~
RSACrypto.cpp:160:14: error: invalid use of incomplete type 'struct rsa_st'
  160 |   BN_copy( to->e, from->e );
      |              ^~
In file included from RSACrypto.cpp:1:
RSACrypto.h:14:8: note: forward declaration of 'struct rsa_st'
   14 | struct rsa_st;
      |        ^~~~~~
RSACrypto.cpp:160:23: error: invalid use of incomplete type 'const struct rsa_s '
  160 |   BN_copy( to->e, from->e );
      |                       ^~
In file included from RSACrypto.cpp:1:
RSACrypto.h:14:8: note: forward declaration of 'struct rsa_st'
   14 | struct rsa_st;
      |        ^~~~~~
RSACrypto.cpp: In member function 'RSA* Security::RSACrypto::PrivateKey::Alloc( ':
RSACrypto.cpp:185:6: error: invalid use of incomplete type 'RSA' {aka 'struct rsa_st'}
  185 |   rsa->d = BN_new();
      |      ^~
In file included from RSACrypto.cpp:1:
RSACrypto.h:14:8: note: forward declaration of 'RSA' {aka 'struct rsa_st'}
   14 | struct rsa_st;
      |        ^~~~~~
RSACrypto.cpp:186:6: error: invalid use of incomplete type 'RSA' {aka 'struct rsa_st'}
  186 |   rsa->p = BN_new();
      |      ^~
In file included from RSACrypto.cpp:1:
RSACrypto.h:14:8: note: forward declaration of 'RSA' {aka 'struct rsa_st'}
   14 | struct rsa_st;
      |        ^~~~~~
RSACrypto.cpp:187:6: error: invalid use of incomplete type 'RSA' {aka 'struct rsa_st'}
  187 |   rsa->q = BN_new();
      |      ^~
In file included from RSACrypto.cpp:1:
RSACrypto.h:14:8: note: forward declaration of 'RSA' {aka 'struct rsa_st'}
   14 | struct rsa_st;
      |        ^~~~~~
RSACrypto.cpp: In static member function 'static bool Security::RSACrypto::GenerateKey(Security::RSACrypto::PublicKey*, Security::RSACrypto::PrivateKey*)':
RSACrypto.cpp:314:52: warning: 'RSA* RSA_generate_key(int, long unsigned int, void (*)(int, int, void*), void*)' is deprecated [-Wdeprecated-declarations]
  314 |   RSA* rsa = RSA_generate_key( 1024, 7, NULL, NULL );
      |                                                    ^
In file included from /usr/include/openssl/aes.h:13,
                 from RSACrypto.cpp:6:
/usr/include/openssl/rsa.h:234:1: note: declared here
  234 | DEPRECATEDIN_0_9_8(RSA *RSA_generate_key(int bits, unsigned long e, void
      | ^~~~~~~~~~~~~~~~~~
RSACrypto.cpp:314:52: warning: 'RSA* RSA_generate_key(int, long unsigned int, void (*)(int, int, void*), void*)' is deprecated [-Wdeprecated-declarations]
  314 |   RSA* rsa = RSA_generate_key( 1024, 7, NULL, NULL );
      |                                                    ^
In file included from /usr/include/openssl/aes.h:13,
                 from RSACrypto.cpp:6:
/usr/include/openssl/rsa.h:234:1: note: declared here
  234 | DEPRECATEDIN_0_9_8(RSA *RSA_generate_key(int bits, unsigned long e, void
      | ^~~~~~~~~~~~~~~~~~
RSACrypto.cpp: In static member function 'static bool Security::RSACrypto::PrintKey(const Security::RSACrypto::PublicKey*, std::string&, std::string&)':
RSACrypto.cpp:351:32: error: invalid use of incomplete type 'struct rsa_st'
  351 |   char* tmp = BN_bn2hex(k->rsa_->e);
      |                                ^~
In file included from RSACrypto.cpp:1:
RSACrypto.h:14:8: note: forward declaration of 'struct rsa_st'
   14 | struct rsa_st;
      |        ^~~~~~
RSACrypto.cpp:358:26: error: invalid use of incomplete type 'struct rsa_st'
  358 |   tmp = BN_bn2hex(k->rsa_->n);
      |                          ^~
In file included from RSACrypto.cpp:1:
RSACrypto.h:14:8: note: forward declaration of 'struct rsa_st'
   14 | struct rsa_st;
      |        ^~~~~~
RSACrypto.cpp: In static member function 'static bool Security::RSACrypto::PrintKey(const Security::RSACrypto::PrivateKey*, std::string&, std::string&, std::string&)':
RSACrypto.cpp:370:32: error: invalid use of incomplete type 'struct rsa_st'
  370 |   char* tmp = BN_bn2hex(k->rsa_->n);
      |                                ^~
In file included from RSACrypto.cpp:1:
RSACrypto.h:14:8: note: forward declaration of 'struct rsa_st'
   14 | struct rsa_st;
      |        ^~~~~~
RSACrypto.cpp:377:26: error: invalid use of incomplete type 'struct rsa_st'
  377 |   tmp = BN_bn2hex(k->rsa_->e);
      |                          ^~
In file included from RSACrypto.cpp:1:
RSACrypto.h:14:8: note: forward declaration of 'struct rsa_st'
   14 | struct rsa_st;
      |        ^~~~~~
RSACrypto.cpp:384:26: error: invalid use of incomplete type 'struct rsa_st'
  384 |   tmp = BN_bn2hex(k->rsa_->d);
      |                          ^~
In file included from RSACrypto.cpp:1:
RSACrypto.h:14:8: note: forward declaration of 'struct rsa_st'
   14 | struct rsa_st;
      |        ^~~~~~
gmake[2]: *** [Makefile:41: RSACrypto.o] Error 1
gmake[2]: Leaving directory '/root/Metin/Server/libserverkey'
gmake[1]: *** [Makefile:25: default] Error 2
gmake[1]: Leaving directory '/root/Metin/Server/libserverkey'
gmake: *** [Makefile:66: all] Error 2

sono 2 giorni che ci sto dietro e non ne vengo a capo. Ho già avuto esperienza con file server ma me li ricordavo TOTALMENTE diversi, quindi non so cosa pensare.
Secondo me sono proprio i file scritti male (MakeFiles e compagnia bella), ne approfitto per chiedervi dei file sempre brutti e gratuiti da passarmi u.u!
Grazie per l'aiuto, spero di potervi aiutare in un futuro non distante



p.s. tutti i programmi necessari (gmake, mysql, python, gcc ... ) sono stati installati sia tramite "pkg install" sia tramite le ports, -> make install clean.
(ovviamente in 2 reset diversi della macchina)
 
 
Stato
Discussione chiusa ad ulteriori risposte.