Compile problem

caiohp

Well-Known Member
Joined
Dec 28, 2009
Messages
13
Best answers
0
Reaction score
2
Hi guys, i have a problem with compile my source in linux...
Look, in my virtual machine(ubuntu server 14.04) the compile are done, but in my vps (ubuntu server 18.04) not
Help me pls
When i use ./configure
1568242697170.png
 

Madara_

Banned User
Joined
Sep 4, 2019
Messages
20
Best answers
0
Reaction score
2
Location
brazol
try
Code:
apt install libboost1.62-dev
then

apt install libboost1.62
 
OP
caiohp

caiohp

Well-Known Member
Joined
Dec 28, 2009
Messages
13
Best answers
0
Reaction score
2
Hi, bro, have a new error:
configure: error: "Lua header not found."

try
Code:
apt install libboost1.62-dev
then

apt install libboost1.62
 
OP
caiohp

caiohp

Well-Known Member
Joined
Dec 28, 2009
Messages
13
Best answers
0
Reaction score
2
I solve any other erros, but have a new and i dont found the answer, can help me?
Code:
otserv.cpp: In function 'void otserv(StringVec, ServiceManager*)':
otserv.cpp:549: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:25: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:32:
/usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'RSA {aka struct rsa_st}'
 typedef struct rsa_st RSA;
                ^~~~~~
otserv.cpp:550: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:25: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:32:
/usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'RSA {aka struct rsa_st}'
 typedef struct rsa_st RSA;
                ^~~~~~
otserv.cpp:551: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:25: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:32:
/usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'RSA {aka struct rsa_st}'
 typedef struct rsa_st RSA;
                ^~~~~~
otserv.cpp:552: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:25: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:32:
/usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'RSA {aka struct rsa_st}'
 typedef struct rsa_st RSA;
                ^~~~~~
otserv.cpp:553: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:25: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:32:
/usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'RSA {aka struct rsa_st}'
 typedef struct rsa_st RSA;
                ^~~~~~
Makefile:551: recipe for target 'otserv.o' failed
make[1]: *** [otserv.o] Error 1
make[1]: *** Waiting for unfinished jobs....
mv -f .deps/outputmessage.Tpo .deps/outputmessage.Po
make[1]: Leaving directory '/home/otserv/trunk'
Makefile:408: recipe for target 'all' failed
make: *** [all] Error 2
 
Top