Hype! 60 Posted December 2, 2018 Share Posted December 2, 2018 Hello, I tried to compile my source on FreeBSD 11.2 (32Bit). I get this error while compiling: linking ../game_r41057 ... /usr/local/bin/ld: /usr/local/lib/mysql/libmysqlclient.a(my_aes_openssl.cc.o): undefined reference to symbol 'EVP_aes_128_cfb1' //usr/local/lib/libcrypto.so.9: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status gmake: *** [Makefile:161: ../game_r41057] Error 1 Do someone have an idea to fix that? @martysama0134 Link to comment Share on other sites More sharing options...
Hype! 60 Posted December 2, 2018 Author Share Posted December 2, 2018 Fixed, thanks to martysama! Solution: diff --git a/Srcs/Server/db/src/Makefile b/Srcs/Server/db/src/Makefile index 2ad6e63..a4b39b9 100644 --- a/Srcs/Server/db/src/Makefile +++ b/Srcs/Server/db/src/Makefile @@ -45,6 +45,9 @@ LIBDIR += -I../../../Extern/lib LIBDIR += -L../../libthecore/lib -L../../libsql -L../../libpoly -L../../libgame/lib LIBS += -lthecore -lsql -lpoly -lgame -lm +# OpenSSL +LIBS += -lssl -lcrypto + # PROJECT_SRC_FILES BEGIN CPPFILE = Config.cpp NetBase.cpp Peer.cpp PeerBase.cpp Main.cpp Lock.cpp DBManager.cpp \ Cache.cpp LoginData.cpp ClientManager.cpp ClientManagerPlayer.cpp ClientManagerLogin.cpp \ diff --git a/Srcs/Server/game/src/Makefile b/Srcs/Server/game/src/Makefile index b173c7c..4ea5a5e 100644 --- a/Srcs/Server/game/src/Makefile +++ b/Srcs/Server/game/src/Makefile @@ -90,7 +90,7 @@ endif # OpenSSL INCDIR += -I/usr/include -LIBS += -lssl +LIBS += -lssl -lcrypto # LIBS += /usr/lib/libssl.a # Lua 2 Link to comment Share on other sites More sharing options...
PeaceMaker 121 Posted December 12, 2018 Share Posted December 12, 2018 thx Link to comment Share on other sites More sharing options...
essayx 0 Posted October 14, 2021 Share Posted October 14, 2021 How can i use that code? Link to comment Share on other sites More sharing options...
zoowiS 2 Posted February 7, 2023 Share Posted February 7, 2023 how to use this code? Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now