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

Error Makefile recipe for target

caiohp

New Member
Joined
Dec 28, 2009
Messages
13
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
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
 
Configure complete, now you may type 'make'.
root@server-1622701-1:/home/ots/src# make
make all-am
make[1]: Entering directory '/home/ots/src'
g++ -DHAVE_CONFIG_H -I. -I/usr/include/libxml2 -I/usr/include/lua5.1 -D__USE_MYSQL__ -D__ROOT_PERMISSION__ -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1 -MT chat.o -MD -MP -MF .deps/chat.Tpo -c -o chat.o chat.cpp
chat.cpp: In member function 'ChatChannel* Chat::getChannel(Player*, uint16_t)':
chat.cpp:1106:10: error: cannot convert 'bool' to 'ChatChannel*' in return
return false;
^~~~~
Makefile:564: recipe for target 'chat.o' failed
make[1]: *** [chat.o] Error 1
make[1]: Leaving directory '/home/ots/src'
Makefile:416: recipe for target 'all' failed
make: *** [all] Error 2
root@server-1622701-1:/home/ots/src#


refresh posting
 
Back
Top