Jump to content

FreeBSD 11.2 Compiling


Recommended Posts

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

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

 

  • Love 2
Link to comment
Share on other sites

  • 2 weeks later...
  • 2 years later...
  • 1 year later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



  • Similar Content

  • Activity

    1. 0

      Quest 6/7 Problem

    2. 5

      Effect weapons

    3. 3

      Crystal Metinstone

    4. 3

      Feeding game source to LLM

    5. 113

      Ulthar SF V2 (TMP4 Base)

    6. 3

      Feeding game source to LLM

    7. 0

      Target Information System

    8. 3

      Feeding game source to LLM

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.