mk8

server source compile error

15 posts in this topic

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

Share this post


Link to post
Share on other sites

You do not have libraries devIL intro server/libdevil , take them from novaline or any other source.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

put from a another src example vanilla and put the lib into the libhackshield, or comment it out it the makefile.

1 person likes this

Share this post


Link to post
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

1 person likes this

Share this post


Link to post
Share on other sites

Yea, I've figured this out, but it's not there. I just downloaded another source and there's also no libary in libhackshield/lib. Any suggestions?

Share this post


Link to post
Share on other sites
13 minutes ago, 127.0.0.1 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

 

Share this post


Link to post
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.

Share this post


Link to post
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.

 

Share this post


Link to post
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 :)

Share this post


Link to post
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
 

Share this post


Link to post
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.

1 person likes this

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.