• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Compiling Error When Compile

_Aion_

Nothing Else
Joined
Jan 19, 2010
Messages
400
Solutions
4
Reaction score
10
Location
Jequie,Bahia,Brazil
Hello, when i trying copiler sourcer in ubuntu 14.04, appear this error on console.
How fix this?
i'm using OTX 2.x.S.4(Lastest 8.60)
C++:
otserv.cpp: In function âvoid otserv(StringVec, ServiceManager*)â:
otserv.cpp:613:18: error: invalid use of incomplete type âRSA {aka struct rsa_st}â
  BN_dec2bn(&g_RSA->p, g_config.getString(ConfigManager::RSA_PRIME1).c_str());
                  ^
In file included from /usr/include/openssl/crypto.h:31:0,
                 from /usr/include/openssl/bio.h:20,
                 from /usr/include/openssl/asn1.h:16,
                 from /usr/include/openssl/rsa.h:16,
                 from otserv.cpp:44:
/usr/include/openssl/ossl_typ.h:110:16: error: forward declaration of âRSA {aka struct rsa_st}â
 typedef struct rsa_st RSA;
                ^
otserv.cpp:614:18: error: invalid use of incomplete type âRSA {aka struct rsa_st}â
  BN_dec2bn(&g_RSA->q, g_config.getString(ConfigManager::RSA_PRIME2).c_str());
                  ^
In file included from /usr/include/openssl/crypto.h:31:0,
                 from /usr/include/openssl/bio.h:20,
                 from /usr/include/openssl/asn1.h:16,
                 from /usr/include/openssl/rsa.h:16,
                 from otserv.cpp:44:
/usr/include/openssl/ossl_typ.h:110:16: error: forward declaration of âRSA {aka struct rsa_st}â
 typedef struct rsa_st RSA;
                ^
otserv.cpp:615:18: error: invalid use of incomplete type âRSA {aka struct rsa_st}â
  BN_dec2bn(&g_RSA->d, g_config.getString(ConfigManager::RSA_PRIVATE).c_str());
                  ^
In file included from /usr/include/openssl/crypto.h:31:0,
                 from /usr/include/openssl/bio.h:20,
                 from /usr/include/openssl/asn1.h:16,
                 from /usr/include/openssl/rsa.h:16,
                 from otserv.cpp:44:
/usr/include/openssl/ossl_typ.h:110:16: error: forward declaration of âRSA {aka struct rsa_st}â
 typedef struct rsa_st RSA;
                ^
otserv.cpp:616:18: error: invalid use of incomplete type âRSA {aka struct rsa_st}â
  BN_dec2bn(&g_RSA->n, g_config.getString(ConfigManager::RSA_MODULUS).c_str());
                  ^
In file included from /usr/include/openssl/crypto.h:31:0,
                 from /usr/include/openssl/bio.h:20,
                 from /usr/include/openssl/asn1.h:16,
                 from /usr/include/openssl/rsa.h:16,
                 from otserv.cpp:44:
/usr/include/openssl/ossl_typ.h:110:16: error: forward declaration of âRSA {aka struct rsa_st}â
 typedef struct rsa_st RSA;
                ^
otserv.cpp:617:18: error: invalid use of incomplete type âRSA {aka struct rsa_st}â
  BN_dec2bn(&g_RSA->e, g_config.getString(ConfigManager::RSA_PUBLIC).c_str());
                  ^
In file included from /usr/include/openssl/crypto.h:31:0,
                 from /usr/include/openssl/bio.h:20,
                 from /usr/include/openssl/asn1.h:16,
                 from /usr/include/openssl/rsa.h:16,
                 from otserv.cpp:44:
/usr/include/openssl/ossl_typ.h:110:16: error: forward declaration of âRSA {aka struct rsa_st}â
 typedef struct rsa_st RSA;
                ^
In file included from /usr/include/openssl/asn1.h:24:0,
                 from /usr/include/openssl/rsa.h:16,
                 from otserv.cpp:44:
otserv.cpp:627:15: error: invalid use of incomplete type âRSA {aka struct rsa_st}â
   BN_mod(g_RSA->dmp1, g_RSA->d, r1, ctx);
               ^
In file included from /usr/include/openssl/crypto.h:31:0,
                 from /usr/include/openssl/bio.h:20,
                 from /usr/include/openssl/asn1.h:16,
                 from /usr/include/openssl/rsa.h:16,
                 from otserv.cpp:44:
/usr/include/openssl/ossl_typ.h:110:16: error: forward declaration of âRSA {aka struct rsa_st}â
 typedef struct rsa_st RSA;
                ^
In file included from /usr/include/openssl/asn1.h:24:0,
                 from /usr/include/openssl/rsa.h:16,
                 from otserv.cpp:44:
otserv.cpp:627:28: error: invalid use of incomplete type âRSA {aka struct rsa_st}â
   BN_mod(g_RSA->dmp1, g_RSA->d, r1, ctx);
                            ^
In file included from /usr/include/openssl/crypto.h:31:0,
                 from /usr/include/openssl/bio.h:20,
                 from /usr/include/openssl/asn1.h:16,
                 from /usr/include/openssl/rsa.h:16,
                 from otserv.cpp:44:
/usr/include/openssl/ossl_typ.h:110:16: error: forward declaration of âRSA {aka struct rsa_st}â
 typedef struct rsa_st RSA;
                ^
In file included from /usr/include/openssl/asn1.h:24:0,
                 from /usr/include/openssl/rsa.h:16,
                 from otserv.cpp:44:
otserv.cpp:628:15: error: invalid use of incomplete type âRSA {aka struct rsa_st}â
   BN_mod(g_RSA->dmq1, g_RSA->d, r2, ctx);
               ^
In file included from /usr/include/openssl/crypto.h:31:0,
                 from /usr/include/openssl/bio.h:20,
                 from /usr/include/openssl/asn1.h:16,
                 from /usr/include/openssl/rsa.h:16,
                 from otserv.cpp:44:
/usr/include/openssl/ossl_typ.h:110:16: error: forward declaration of âRSA {aka struct rsa_st}â
 typedef struct rsa_st RSA;
                ^
In file included from /usr/include/openssl/asn1.h:24:0,
                 from /usr/include/openssl/rsa.h:16,
                 from otserv.cpp:44:
otserv.cpp:628:28: error: invalid use of incomplete type âRSA {aka struct rsa_st}â
   BN_mod(g_RSA->dmq1, g_RSA->d, r2, ctx);
                            ^
In file included from /usr/include/openssl/crypto.h:31:0,
                 from /usr/include/openssl/bio.h:20,
                 from /usr/include/openssl/asn1.h:16,
                 from /usr/include/openssl/rsa.h:16,
                 from otserv.cpp:44:
/usr/include/openssl/ossl_typ.h:110:16: error: forward declaration of âRSA {aka struct rsa_st}â
 typedef struct rsa_st RSA;
                ^
otserv.cpp:630:23: error: invalid use of incomplete type âRSA {aka struct rsa_st}â
   BN_mod_inverse(g_RSA->iqmp, g_RSA->q, g_RSA->p, ctx);
                       ^
In file included from /usr/include/openssl/crypto.h:31:0,
                 from /usr/include/openssl/bio.h:20,
                 from /usr/include/openssl/asn1.h:16,
                 from /usr/include/openssl/rsa.h:16,
                 from otserv.cpp:44:
/usr/include/openssl/ossl_typ.h:110:16: error: forward declaration of âRSA {aka struct rsa_st}â
 typedef struct rsa_st RSA;
                ^
otserv.cpp:630:36: error: invalid use of incomplete type âRSA {aka struct rsa_st}â
   BN_mod_inverse(g_RSA->iqmp, g_RSA->q, g_RSA->p, ctx);
                                    ^
In file included from /usr/include/openssl/crypto.h:31:0,
                 from /usr/include/openssl/bio.h:20,
                 from /usr/include/openssl/asn1.h:16,
                 from /usr/include/openssl/rsa.h:16,
                 from otserv.cpp:44:
/usr/include/openssl/ossl_typ.h:110:16: error: forward declaration of âRSA {aka struct rsa_st}â
 typedef struct rsa_st RSA;
                ^
otserv.cpp:630:46: error: invalid use of incomplete type âRSA {aka struct rsa_st}â
   BN_mod_inverse(g_RSA->iqmp, g_RSA->q, g_RSA->p, ctx);
                                              ^
In file included from /usr/include/openssl/crypto.h:31:0,
                 from /usr/include/openssl/bio.h:20,
                 from /usr/include/openssl/asn1.h:16,
                 from /usr/include/openssl/rsa.h:16,
                 from otserv.cpp:44:
/usr/include/openssl/ossl_typ.h:110:16: error: forward declaration of âRSA {aka struct rsa_st}â
 typedef struct rsa_st RSA;
 
Once again .. when it comes to OTX and source related issues it's better if you seek support here; Build software better, together
That way the problem will be fixed insted of x amount of ppl having the same problem since no one is uploading the fix.
 
Back
Top