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

Compile Proplem

amr shalapy

Banned User
Joined
Aug 28, 2014
Messages
122
Reaction score
8
in the last compile
i get this error this in the compile log iam compiling The Forgotten Server version 0.3.7_SVN
Code:
../otserv.o:otserv.cpp:(.text+0x1dcc): undefined reference to `BN_dec2bn'
../otserv.o:otserv.cpp:(.text+0x1df7): undefined reference to `BN_dec2bn'
../otserv.o:otserv.cpp:(.text+0x1e22): undefined reference to `BN_dec2bn'
../otserv.o:otserv.cpp:(.text+0x1e4d): undefined reference to `BN_dec2bn'
../otserv.o:otserv.cpp:(.text+0x1e78): undefined reference to `BN_dec2bn'
../otserv.o:otserv.cpp:(.text+0x1e86): undefined reference to `RSA_check_key'
../otserv.o:otserv.cpp:(.text+0x1eaf): undefined reference to `BN_CTX_new'
../otserv.o:otserv.cpp:(.text+0x1eb9): undefined reference to `BN_CTX_start'
../otserv.o:otserv.cpp:(.text+0x1ec1): undefined reference to `BN_CTX_get'
../otserv.o:otserv.cpp:(.text+0x1ecb): undefined reference to `BN_CTX_get'
../otserv.o:otserv.cpp:(.text+0x1ef4): undefined reference to `BN_div'
../otserv.o:otserv.cpp:(.text+0x1f1b): undefined reference to `BN_div'
../otserv.o:otserv.cpp:(.text+0x1f3d): undefined reference to `BN_mod_inverse'
../otserv.o:otserv.cpp:(.text+0x1f63): undefined reference to `ERR_load_crypto_strings'
../otserv.o:otserv.cpp:(.text+0x1f7e): undefined reference to `ERR_get_error'
../otserv.o:otserv.cpp:(.text+0x1f8e): undefined reference to `ERR_error_string'
../protocol.o:protocol.cpp:(.text+0x106e): undefined reference to `RSA_private_decrypt'
../tools.o:tools.cpp:(.text+0x4705): undefined reference to `SHA512_Init'
../tools.o:tools.cpp:(.text+0x471d): undefined reference to `SHA512_Update'
../tools.o:tools.cpp:(.text+0x472c): undefined reference to `SHA512_Final'
../tools.o:tools.cpp:(.text+0x4859): undefined reference to `SHA1_Init'
../tools.o:tools.cpp:(.text+0x4871): undefined reference to `SHA1_Update'
../tools.o:tools.cpp:(.text+0x4880): undefined reference to `SHA1_Final'
../tools.o:tools.cpp:(.text+0x49a4): undefined reference to `MD5_Init'
../tools.o:tools.cpp:(.text+0x49bc): undefined reference to `MD5_Update'
../tools.o:tools.cpp:(.text+0x49cb): undefined reference to `MD5_Final'
../tools.o:tools.cpp:(.text+0x4aef): undefined reference to `SHA256_Init'
../tools.o:tools.cpp:(.text+0x4b07): undefined reference to `SHA256_Update'
../tools.o:tools.cpp:(.text+0x4b16): undefined reference to `SHA256_Final'
collect2: ld returned 1 exit status

mingw32-make: *** [TheForgottenServer.exe] Error 1

Execution terminated
in the Compiler
[Linker error] undefined reference to `RSA_new'
[Linker error] undefined reference to `BN_dec2bn'
[Linker error] undefined reference to `BN_dec2bn'
[Linker error] undefined reference to `BN_dec2bn'
[Linker error] undefined reference to `BN_dec2bn'
[Linker error] undefined reference to `BN_dec2bn'
[Linker error] undefined reference to `RSA_check_key'
[Linker error] undefined reference to `BN_CTX_new'
[Linker error] undefined reference to `BN_CTX_start'
[Linker error] undefined reference to `BN_CTX_get'
[Linker error] undefined reference to `BN_div'
[Linker error] undefined reference to `BN_div'
[Linker error] undefined reference to `BN_mod_inverse'
[Linker error] undefined reference to `ERR_load_crypto_strings'
[Linker error] undefined reference to `ERR_get_error'
[Linker error] undefined reference to `ERR_error_string'
[Linker error] undefined reference to `RSA_private_decrypt'
[Linker error] undefined reference to `SHA512_Init'
[Linker error] undefined reference to `SHA512_Update'
[Linker error] undefined reference to `SHA512_Final'
[Linker error] undefined reference to `SHA1_Init'
[Linker error] undefined reference to `SHA1_Update'
[Linker error] undefined reference to `SHA1_Final'
[Linker error] undefined reference to `MD5_Init'
[Linker error] undefined reference to `MD5_Update'
[Linker error] undefined reference to `MD5_Final'
[Linker error] undefined reference to `SHA256_Init'
[Linker error] undefined reference to `SHA256_Update'
[Linker error] undefined reference to `SHA256_Final'
ld returned 1 exit status
*** [TheForgottenServer.exe] Error 1
Please Help i will rep++
 
Last edited:
Seems like you're missing a dependency, I'd say libcrypto is the one by looking at the errors (or it may be openSSL, I'm not sure). You need to install to libcrypto AND in case you haven't done it yet, you need to also tell linker to use it.

#EDIT
It seems like ssl actually.
 
Seems like you're missing a dependency, I'd say libcrypto is the one by looking at the errors (or it may be openSSL, I'm not sure). You need to install to libcrypto AND in case you haven't done it yet, you need to also tell linker to use it.

#EDIT
It seems like ssl actually.
so what should i do? :/ i have setup openSSL once
 
Last edited:
are you sure u installed latest openssl?

i followed a tutorial for it once in another forum, look:

download it:
OpenSSL devpak in devpaks repository

now you're going to open your dev c++ > Tools Package Manager > Install. Here you select the downloaded file and wait for the finish of installation. Close ur devc++ and open it again, now you're able to compile.

Ps.: I tried to help u with it because the member above said the problem was openssl
 
Back
Top