![](https://metin2.dev/uploads/theme-resources/set_resources_31/84c1e40ea0e759e3f1505eb1788ddf3c_pattern.png)
![](https://metin2.dev/uploads/theme-resources/set_resources_31/84c1e40ea0e759e3f1505eb1788ddf3c_default_photo.png)
CosFane
-
Posts
5 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Forums
Store
Third Party - Providers Directory
Feature Plan
Release Notes
Docs
Events
Posts posted by CosFane
-
-
Cryptopp was already installed and present in /usr/local /include /cryptopp . I really can't understand the reason behind all that errors.
-
58 minutes ago, Hik said:
Compile libserverkey.
I can't compile, other errors:
Spoilergmake ./libserverkey.a
gmake[1]: Entering directory '/usr/src/example/libserverkey'
clang++-devel -Wall -O2 -pipe -m32 -std=c++2a -D_THREAD_SAFE -fno-exceptions -c base64_ssl.cpp
clang++-devel -Wall -O2 -pipe -m32 -std=c++2a -D_THREAD_SAFE -fno-exceptions -c RSACrypto.cpp
RSACrypto.cpp:66:18: error: member access into incomplete type 'rsa_st'
BN_hex2bn(&rsa_->n, n);
^
./RSACrypto.h:14:8: note: forward declaration of 'rsa_st'
struct rsa_st;
^
RSACrypto.cpp:67:18: error: member access into incomplete type 'rsa_st'
BN_hex2bn(&rsa_->e, e);
^
./RSACrypto.h:14:8: note: forward declaration of 'rsa_st'
struct rsa_st;
^
RSACrypto.cpp:143:6: error: member access into incomplete type 'RSA' (aka 'rsa_st')
rsa->n = BN_new();
^
./RSACrypto.h:14:8: note: forward declaration of 'rsa_st'
struct rsa_st;
^
RSACrypto.cpp:144:6: error: member access into incomplete type 'RSA' (aka 'rsa_st')
rsa->e = BN_new();
^
./RSACrypto.h:14:8: note: forward declaration of 'rsa_st'
struct rsa_st;
^
RSACrypto.cpp:159:14: error: member access into incomplete type 'rsa_st'
BN_copy( to->n, from->n );
^
./RSACrypto.h:14:8: note: forward declaration of 'rsa_st'
struct rsa_st;
^
RSACrypto.cpp:159:23: error: member access into incomplete type 'const rsa_st'
BN_copy( to->n, from->n );
^
./RSACrypto.h:14:8: note: forward declaration of 'rsa_st'
struct rsa_st;
^
RSACrypto.cpp:160:14: error: member access into incomplete type 'rsa_st'
BN_copy( to->e, from->e );
^
./RSACrypto.h:14:8: note: forward declaration of 'rsa_st'
struct rsa_st;
^
RSACrypto.cpp:160:23: error: member access into incomplete type 'const rsa_st'
BN_copy( to->e, from->e );
^
./RSACrypto.h:14:8: note: forward declaration of 'rsa_st'
struct rsa_st;
^
RSACrypto.cpp:185:6: error: member access into incomplete type 'RSA' (aka 'rsa_st')
rsa->d = BN_new();
^
./RSACrypto.h:14:8: note: forward declaration of 'rsa_st'
struct rsa_st;
^
RSACrypto.cpp:186:6: error: member access into incomplete type 'RSA' (aka 'rsa_st')
rsa->p = BN_new();
^
./RSACrypto.h:14:8: note: forward declaration of 'rsa_st'
struct rsa_st;
^
RSACrypto.cpp:187:6: error: member access into incomplete type 'RSA' (aka 'rsa_st')
rsa->q = BN_new();
^
./RSACrypto.h:14:8: note: forward declaration of 'rsa_st'
struct rsa_st;
^
RSACrypto.cpp:314:14: warning: 'RSA_generate_key' is deprecated [-Wdeprecated-declarations]
RSA* rsa = RSA_generate_key( 1024, 7, NULL, NULL );
^
/usr/include/openssl/rsa.h:234:1: note: 'RSA_generate_key' has been explicitly marked deprecated
here
DEPRECATEDIN_0_9_8(RSA *RSA_generate_key(int bits, unsigned long e, void
^
/usr/include/openssl/opensslconf.h:159:34: note: expanded from macro 'DEPRECATEDIN_0_9_8'
# define DEPRECATEDIN_0_9_8(f) DECLARE_DEPRECATED(f)
^
/usr/include/openssl/opensslconf.h:110:55: note: expanded from macro 'DECLARE_DEPRECATED'
# define DECLARE_DEPRECATED(f) f __attribute__ ((deprecated));
^
RSACrypto.cpp:351:32: error: member access into incomplete type 'rsa_st'
char* tmp = BN_bn2hex(k->rsa_->e);
^
./RSACrypto.h:14:8: note: forward declaration of 'rsa_st'
struct rsa_st;
^
RSACrypto.cpp:358:26: error: member access into incomplete type 'rsa_st'
tmp = BN_bn2hex(k->rsa_->n);
^
./RSACrypto.h:14:8: note: forward declaration of 'rsa_st'
struct rsa_st;
^
RSACrypto.cpp:370:32: error: member access into incomplete type 'rsa_st'
char* tmp = BN_bn2hex(k->rsa_->n);
^
./RSACrypto.h:14:8: note: forward declaration of 'rsa_st'
struct rsa_st;
^
RSACrypto.cpp:377:26: error: member access into incomplete type 'rsa_st'
tmp = BN_bn2hex(k->rsa_->e);
^
./RSACrypto.h:14:8: note: forward declaration of 'rsa_st'
struct rsa_st;
^
RSACrypto.cpp:384:26: error: member access into incomplete type 'rsa_st'
tmp = BN_bn2hex(k->rsa_->d);
^
./RSACrypto.h:14:8: note: forward declaration of 'rsa_st'
struct rsa_st;
^
1 warning and 16 errors generated.
gmake[1]: *** [Makefile:41: RSACrypto.o] Error 1
gmake[1]: Leaving directory '/usr/src/example/libserverkey'
gmake: *** [Makefile:25: default] Error 2I'm trying to compile the libserverkey in the server folder
-
Hi guys, I'm Cos, 23 from Italy. I've been playing Metin since I was 11 and sometimes I've tried to start a server just for myself.
I'm a computing engineer with the passion for Metin2, Rock and High Performance Computing actually working around the world.
With the hope to exchange my knowledge with yours I greet you!
-
I'm using the following sources:
using BSD 12 also downloaded from there but when I compile the ../game/src an error appears to me:Spoilerroot@black:/usr/src/example/game/src # gmake
compile BattleArena.cpp
compile FSM.cpp
compile MarkConvert.cpp
compile MarkImage.cpp
compile MarkManager.cpp
compile OXEvent.cpp
compile TrafficProfiler.cpp
compile ani.cpp
compile arena.cpp
compile banword.cpp
compile battle.cpp
compile blend_item.cpp
compile block_country.cpp
compile buffer_manager.cpp
compile building.cpp
compile castle.cpp
compile char.cpp
compile char_affect.cpp
compile char_battle.cpp
compile char_change_empire.cpp
compile char_horse.cpp
compile char_item.cpp
compile char_manager.cpp
compile char_quickslot.cpp
compile char_resist.cpp
compile char_skill.cpp
compile char_state.cpp
compile PetSystem.cpp
compile cmd.cpp
compile cmd_emotion.cpp
compile cmd_general.cpp
compile cmd_gm.cpp
compile cmd_oxevent.cpp
compile config.cpp
compile constants.cpp
compile crc32.cpp
compile cube.cpp
compile db.cpp
compile desc.cpp
compile desc_client.cpp
compile desc_manager.cpp
compile desc_p2p.cpp
compile dev_log.cpp
compile dungeon.cpp
compile empire_text_convert.cpp
compile entity.cpp
compile entity_view.cpp
compile event.cpp
compile event_queue.cpp
compile exchange.cpp
compile file_loader.cpp
compile fishing.cpp
compile gm.cpp
compile guild.cpp
compile guild_manager.cpp
compile guild_war.cpp
compile horse_rider.cpp
compile horsename_manager.cpp
compile input.cpp
compile input_auth.cpp
compile input_db.cpp
compile input_login.cpp
compile input_main.cpp
compile input_p2p.cpp
compile input_teen.cpp
compile input_udp.cpp
compile ip_ban.cpp
compile item.cpp
compile item_addon.cpp
compile item_attribute.cpp
compile item_manager.cpp
compile item_manager_idrange.cpp
compile locale.cpp
compile locale_service.cpp
compile log.cpp
compile login_data.cpp
compile lzo_manager.cpp
compile marriage.cpp
compile matrix_card.cpp
compile messenger_manager.cpp
compile mining.cpp
compile mob_manager.cpp
compile monarch.cpp
compile motion.cpp
compile over9refine.cpp
compile p2p.cpp
compile packet_info.cpp
compile party.cpp
compile passpod.cpp
compile pcbang.cpp
compile polymorph.cpp
compile priv_manager.cpp
compile pvp.cpp
compile questevent.cpp
compile questlua.cpp
compile questlua_affect.cpp
compile questlua_arena.cpp
compile questlua_ba.cpp
compile questlua_building.cpp
compile questlua_danceevent.cpp
compile questlua_dungeon.cpp
compile questlua_forked.cpp
compile questlua_game.cpp
compile questlua_global.cpp
compile questlua_guild.cpp
compile questlua_horse.cpp
compile questlua_pet.cpp
compile questlua_item.cpp
compile questlua_marriage.cpp
compile questlua_mgmt.cpp
compile questlua_monarch.cpp
compile questlua_npc.cpp
compile questlua_oxevent.cpp
compile questlua_party.cpp
compile questlua_pc.cpp
compile questlua_quest.cpp
compile questlua_target.cpp
compile questmanager.cpp
compile questnpc.cpp
compile questpc.cpp
compile refine.cpp
compile regen.cpp
compile safebox.cpp
compile sectree.cpp
compile sectree_manager.cpp
compile sequence.cpp
compile shop.cpp
compile skill.cpp
compile start_position.cpp
compile target.cpp
compile text_file_loader.cpp
compile trigger.cpp
compile utils.cpp
compile vector.cpp
compile war_map.cpp
compile wedding.cpp
compile xmas_event.cpp
compile version.cpp
compile panama.cpp
compile threeway_war.cpp
compile map_location.cpp
compile auth_brazil.cpp
compile BlueDragon.cpp
compile BlueDragon_Binder.cpp
compile DragonLair.cpp
compile questlua_dragonlair.cpp
compile HackShield.cpp
compile HackShield_Impl.cpp
compile char_hackshield.cpp
compile skill_power.cpp
compile affect.cpp
compile SpeedServer.cpp
compile questlua_speedserver.cpp
compile auction_manager.cpp
compile FileMonitor_FreeBSD.cpp
compile ClientPackageCryptInfo.cpp
compile cipher.cpp
compile buff_on_attributes.cpp
compile check_server.cpp
compile dragon_soul_table.cpp
compile DragonSoul.cpp
compile group_text_parse_tree.cpp
compile char_dragonsoul.cpp
compile questlua_dragonsoul.cpp
compile shop_manager.cpp
compile shopEx.cpp
compile item_manager_read_tables.cpp
compile minilzo.c
linking ../game_r40250_32....
/usr/bin/ld: cannot find -lserverkey
clang-9: error: linker command failed with exit code 1 (use -v to see invocation )
gmake: *** [Makefile:127: ../game_r40250_32] Error 1How could I solve this?
-
8
-
3
-
1
-
3
-
Source Update - Clang-14 / c++2b + FreeBSD-12 + SRC
in Programming & Scripts
Posted · Edited by Metin2 Dev
Core X - External 2 Internal
Ok, I removed libserverkey and compiled successfully both the server and the db. Now when I launch the game I get "Can not open [CONFIG]" and when I launch the db I get "
Loading conf.txt failed.". Any suggestions?