Jump to content

server source compile error


Recommended Posts

whatsup. so I just tried to compile the server source (with no changes or similiar) from Koris 1.4 files  but it doesn't work at all. All I get are a few errors. May one of you help me, please?

linking ../game__KoriDev_r_1115189....
/usr/bin/ld: cannot find -lIL
gmake: *** [Makefile:139: ../game__KoriDev_r_1115189] Error 1

Thanks in advance

Link to comment
Share on other sites

10 minutes ago, mk8 said:

Now I get:

 


linking ../game__KoriDev_r_1115189....
/usr/bin/ld: cannot find -lanticpxsvr
Makefile:138: recipe for target '../game__KoriDev_r_1115189' failed
gmake: *** [../game__KoriDev_r_1115189] Error 1
Build Done.

 

lol, I hate this.

Now you need the hackshield library.  libhackshield/lib

  • Love 1
Link to comment
Share on other sites

13 minutes ago, 127.0.0.1 said:

This is the hidden content, please

 

You were sent by angels, this fixed my error compiling game. But if I want to compile db I get another error - thanks for your help btw!
 

Makefile:56: recipe for target '.obj/NetBase.o' failed
gmake: *** [.obj/NetBase.o] Error 1

 

  • Good 1
Link to comment
Share on other sites

8 minutes ago, mk8 said:

You were sent by angels, this fixed my error compiling game. But if I want to compile db I get another error - thanks for your help btw!
 


Makefile:56: recipe for target '.obj/NetBase.o' failed
gmake: *** [.obj/NetBase.o] Error 1

 

Add full log, that does not help me at all.

Link to comment
Share on other sites

1 minute ago, 127.0.0.1 said:

Add full log, that does not help me at all.
 

Compile Database...
compile Config.cpp
compile NetBase.cpp
In file included from NetBase.cpp:4:
ClientManager.h:5:35: error: boost/unordered_map.hpp: No such file or directory
ClientManager.h:6:35: error: boost/unordered_set.hpp: No such file or directory
In file included from NetBase.cpp:4:
ClientManager.h:35: error: 'boost' has not been declared
ClientManager.h:35: error: ISO C++ forbids declaration of 'unordered_map' with no type
ClientManager.h:35: error: typedef name may not be a nested-name-specifier
ClientManager.h:35: error: expected ';' before '<' token
ClientManager.h:36: error: 'boost' has not been declared
ClientManager.h:36: error: ISO C++ forbids declaration of 'unordered_map' with no type
ClientManager.h:36: error: typedef name may not be a nested-name-specifier
ClientManager.h:36: error: expected ';' before '<' token
ClientManager.h:37: error: 'boost' has not been declared
ClientManager.h:37: error: ISO C++ forbids declaration of 'unordered_set' with no type
ClientManager.h:37: error: typedef name may not be a nested-name-specifier
ClientManager.h:37: error: expected ';' before '<' token
ClientManager.h:38: error: 'boost' has not been declared
ClientManager.h:38: error: ISO C++ forbids declaration of 'unordered_map' with no type
ClientManager.h:38: error: typedef name may not be a nested-name-specifier
ClientManager.h:38: error: expected ';' before '<' token
ClientManager.h:39: error: 'boost' has not been declared
ClientManager.h:39: error: ISO C++ forbids declaration of 'unordered_map' with no type
ClientManager.h:39: error: typedef name may not be a nested-name-specifier
ClientManager.h:39: error: expected ';' before '<' token
ClientManager.h:40: error: 'boost' has not been declared
ClientManager.h:40: error: ISO C++ forbids declaration of 'unordered_map' with no type
ClientManager.h:40: error: typedef name may not be a nested-name-specifier
ClientManager.h:40: error: expected ';' before '<' token
ClientManager.h:120: error: ISO C++ forbids declaration of 'TItemCacheSet' with no type
ClientManager.h:120: error: expected ';' before '*' token
ClientManager.h:397: error: 'boost' has not been declared
ClientManager.h:397: error: ISO C++ forbids declaration of 'unordered_map' with no type
ClientManager.h:397: error: typedef name may not be a nested-name-specifier
ClientManager.h:397: error: expected ';' before '<' token
ClientManager.h:398: error: 'TLoginDataByLoginKey' does not name a type
ClientManager.h:401: error: 'boost' has not been declared
ClientManager.h:401: error: ISO C++ forbids declaration of 'unordered_map' with no type
ClientManager.h:401: error: typedef name may not be a nested-name-specifier
ClientManager.h:401: error: expected ';' before '<' token
ClientManager.h:402: error: 'TLoginDataByLogin' does not name a type
ClientManager.h:405: error: 'boost' has not been declared
ClientManager.h:405: error: ISO C++ forbids declaration of 'unordered_map' with no type
ClientManager.h:405: error: typedef name may not be a nested-name-specifier
ClientManager.h:405: error: expected ';' before '<' token
ClientManager.h:406: error: 'TLoginDataByAID' does not name a type
ClientManager.h:409: error: 'boost' has not been declared
ClientManager.h:409: error: ISO C++ forbids declaration of 'unordered_map' with no type
ClientManager.h:409: error: typedef name may not be a nested-name-specifier
ClientManager.h:409: error: expected ';' before '<' token
ClientManager.h:410: error: 'TLogonAccountMap' does not name a type
ClientManager.h:440: error: 'TPlayerTableCacheMap' does not name a type
ClientManager.h:442: error: 'TItemCacheMap' does not name a type
ClientManager.h:443: error: 'TItemCacheSetPtrMap' does not name a type
ClientManager.h:447: error: 'TItemPriceListCacheMap' does not name a type
ClientManager.h:450: error: 'TChannelStatusMap' does not name a type
ClientManager.h:519: error: 'boost' has not been declared
ClientManager.h:519: error: ISO C++ forbids declaration of 'unordered_map' with no type
ClientManager.h:519: error: typedef name may not be a nested-name-specifier
ClientManager.h:519: error: expected ';' before '<' token
ClientManager.h:520: error: 'TLogoutPlayerMap' does not name a type
Makefile:56: recipe for target '.obj/NetBase.o' failed
gmake: *** [.obj/NetBase.o] Error 1
Build Done.

 

Link to comment
Share on other sites

4 minutes ago, mk8 said:

Compile Database...
compile Config.cpp
compile NetBase.cpp
In file included from NetBase.cpp:4:
ClientManager.h:5:35: error: boost/unordered_map.hpp: No such file or directory
ClientManager.h:6:35: error: boost/unordered_set.hpp: No such file or directory
In file included from NetBase.cpp:4:
ClientManager.h:35: error: 'boost' has not been declared
ClientManager.h:35: error: ISO C++ forbids declaration of 'unordered_map' with no type
ClientManager.h:35: error: typedef name may not be a nested-name-specifier
ClientManager.h:35: error: expected ';' before '<' token
ClientManager.h:36: error: 'boost' has not been declared
ClientManager.h:36: error: ISO C++ forbids declaration of 'unordered_map' with no type
ClientManager.h:36: error: typedef name may not be a nested-name-specifier
ClientManager.h:36: error: expected ';' before '<' token
ClientManager.h:37: error: 'boost' has not been declared
ClientManager.h:37: error: ISO C++ forbids declaration of 'unordered_set' with no type
ClientManager.h:37: error: typedef name may not be a nested-name-specifier
ClientManager.h:37: error: expected ';' before '<' token
ClientManager.h:38: error: 'boost' has not been declared
ClientManager.h:38: error: ISO C++ forbids declaration of 'unordered_map' with no type
ClientManager.h:38: error: typedef name may not be a nested-name-specifier
ClientManager.h:38: error: expected ';' before '<' token
ClientManager.h:39: error: 'boost' has not been declared
ClientManager.h:39: error: ISO C++ forbids declaration of 'unordered_map' with no type
ClientManager.h:39: error: typedef name may not be a nested-name-specifier
ClientManager.h:39: error: expected ';' before '<' token
ClientManager.h:40: error: 'boost' has not been declared
ClientManager.h:40: error: ISO C++ forbids declaration of 'unordered_map' with no type
ClientManager.h:40: error: typedef name may not be a nested-name-specifier
ClientManager.h:40: error: expected ';' before '<' token
ClientManager.h:120: error: ISO C++ forbids declaration of 'TItemCacheSet' with no type
ClientManager.h:120: error: expected ';' before '*' token
ClientManager.h:397: error: 'boost' has not been declared
ClientManager.h:397: error: ISO C++ forbids declaration of 'unordered_map' with no type
ClientManager.h:397: error: typedef name may not be a nested-name-specifier
ClientManager.h:397: error: expected ';' before '<' token
ClientManager.h:398: error: 'TLoginDataByLoginKey' does not name a type
ClientManager.h:401: error: 'boost' has not been declared
ClientManager.h:401: error: ISO C++ forbids declaration of 'unordered_map' with no type
ClientManager.h:401: error: typedef name may not be a nested-name-specifier
ClientManager.h:401: error: expected ';' before '<' token
ClientManager.h:402: error: 'TLoginDataByLogin' does not name a type
ClientManager.h:405: error: 'boost' has not been declared
ClientManager.h:405: error: ISO C++ forbids declaration of 'unordered_map' with no type
ClientManager.h:405: error: typedef name may not be a nested-name-specifier
ClientManager.h:405: error: expected ';' before '<' token
ClientManager.h:406: error: 'TLoginDataByAID' does not name a type
ClientManager.h:409: error: 'boost' has not been declared
ClientManager.h:409: error: ISO C++ forbids declaration of 'unordered_map' with no type
ClientManager.h:409: error: typedef name may not be a nested-name-specifier
ClientManager.h:409: error: expected ';' before '<' token
ClientManager.h:410: error: 'TLogonAccountMap' does not name a type
ClientManager.h:440: error: 'TPlayerTableCacheMap' does not name a type
ClientManager.h:442: error: 'TItemCacheMap' does not name a type
ClientManager.h:443: error: 'TItemCacheSetPtrMap' does not name a type
ClientManager.h:447: error: 'TItemPriceListCacheMap' does not name a type
ClientManager.h:450: error: 'TChannelStatusMap' does not name a type
ClientManager.h:519: error: 'boost' has not been declared
ClientManager.h:519: error: ISO C++ forbids declaration of 'unordered_map' with no type
ClientManager.h:519: error: typedef name may not be a nested-name-specifier
ClientManager.h:519: error: expected ';' before '<' token
ClientManager.h:520: error: 'TLogoutPlayerMap' does not name a type
Makefile:56: recipe for target '.obj/NetBase.o' failed
gmake: *** [.obj/NetBase.o] Error 1
Build Done.

 

Open db/src/stdafx.h and add :

#include <unordered_map>
#include <unordered_set>

Then open ClientManager.h and replace all

boost::unordered_map
boost::unordered_set

with

std::unordered_map
std::unordered_set

Then go to db/src directory and run this command 

gmake dep

 

Then compile again :)

 

Back intro the past ,  STL was too immature and bloated. But that was >10 years ago.  Now we should use STL where is possile , also STL is now much faster than boost :)

  • Metin2 Dev 1
Link to comment
Share on other sites

10 minutes ago, 127.0.0.1 said:

Open db/src/stdafx.h and add :


#include <unordered_map>
#include <unordered_set>

Then open ClientManager.h and replace all


boost::unordered_map
boost::unordered_set

with


std::unordered_map
std::unordered_set

Then go to db/src directory and run this command 


gmake dep

 

Then compile again :)

 

Back intro the past ,  STL was too immature and bloated. But that was >10 years ago.  Now we should use STL where is possile , also STL is now much faster than boost :)

Thanks for the info! :) kinda weird, that the one who created the source didn't changed that much tbh.

Now I get this error:

Compile Database...
compile Config.cpp
In file included from Config.cpp:1:
stdafx.h:19:25: error: unordered_map: No such file or directory
stdafx.h:20:25: error: unordered_set: No such file or directory
Makefile:56: recipe for target '.obj/Config.o' failed
gmake: *** [.obj/Config.o] Error 1
 

Link to comment
Share on other sites

4 minutes ago, mk8 said:

Thanks for the info! :) kinda weird, that the one who created the source didn't changed that much tbh.

Now I get this error:

Compile Database...
compile Config.cpp
In file included from Config.cpp:1:
stdafx.h:19:25: error: unordered_map: No such file or directory
stdafx.h:20:25: error: unordered_set: No such file or directory
Makefile:56: recipe for target '.obj/Config.o' failed
gmake: *** [.obj/Config.o] Error 1
 

Damn, I forgot that they were added when it was implemented in C ++ 11.

Then, make files as they were before. and run only gmake dep command.

To work as I told you above, you compiler need to support C ++ 11.

  • Love 1
Link to comment
Share on other sites

48 minutes ago, 127.0.0.1 said:

Damn, I forgot that they were added when it was implemented in C ++ 11.

Then, make files as they were before. and run only gmake dep command.

To work as I told you above, you compiler need to support C ++ 11.

Fixed it myself, I had to upload the include folder to /usr/include.

Well, after I compiled everything my server won't start... syslog says:
 

SYSERR: Dec 16 19:28:02 :: Start: TABLE_POSTFIX not configured use default
SYSERR: Dec 16 19:28:07 :: socket_connect: HOST localhost:15001, could not connect.

  • Love 1
Link to comment
Share on other sites

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

      Moving server from FreeBSD 11.2 to 13.2 - lib needed

    2. 0

      I just implemented some costumes and they are not visible

    3. 0

      Skill Tree Problem

    4. 97

      Ulthar SF V2 (TMP4 Base)

    5. 5

      Client Crashes through Offline Shop (Ikarus)

    6. 5

      VIVY-WORLD2 - FARM TO THE TOP

    7. 0

      ToolTip Bug?

    8. 0

      Skill tree build erorr

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