Yardım Game Soruce Build Hata

Konu sahibi bu konuda soru soruyor. Sorusu ile ilgili bilgisi olanların yanıtlamasını bekliyor.

bhtyrbyr

Üye
Üye
Mesaj
95
Çözümler
3
Beğeni
56
Puan
679
Ticaret Puanı
0
Herkese iyi akşamlar öncelikle. Game'i build ederken @comos hocamın konusu olan www.mmotutkunlari.com/konu/metin2-filesimi-nasil-build-edebilirim.5969/ konusunu takip ederek yapmaya çalıştım. Bütün adımları yaptıktan sonra sırası ile
-gmake clean
-gmake all
komutlarını girdim. Fakat build olmadı. Putty ekranı;
Kod:
root@[DEV]Grobi:/usr/src/GrobiSource/source # gmake clean
gmake -C liblua clean
gmake[1]: Entering directory '/usr/src/GrobiSource/source/liblua'
cd include; gmake clean
gmake[2]: Entering directory '/usr/src/GrobiSource/source/liblua/include'
gmake[2]: Nothing to be done for 'clean'.
gmake[2]: Leaving directory '/usr/src/GrobiSource/source/liblua/include'
cd src; gmake clean
gmake[2]: Entering directory '/usr/src/GrobiSource/source/liblua/src'
rm -f lapi.o lcode.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o ltests.o ltm.o lundump.o lvm.o lzio.o ../lib/liblua.a
gmake[2]: Leaving directory '/usr/src/GrobiSource/source/liblua/src'
cd src/lib; gmake clean
gmake[2]: Entering directory '/usr/src/GrobiSource/source/liblua/src/lib'
rm -f lauxlib.o lbaselib.o ldblib.o liolib.o lmathlib.o ltablib.o lstrlib.o loadlib.o ../../lib/liblualib.a
gmake[2]: Leaving directory '/usr/src/GrobiSource/source/liblua/src/lib'
gmake[1]: Leaving directory '/usr/src/GrobiSource/source/liblua'
gmake -C libsql clean
gmake[1]: Entering directory '/usr/src/GrobiSource/source/libsql'
rm -f *.o
rm -f ./libsql.a
gmake[1]: Leaving directory '/usr/src/GrobiSource/source/libsql'
gmake -C libgame/src clean
gmake[1]: Entering directory '/usr/src/GrobiSource/source/libgame/src'
rm -f *.o
rm -f ../lib/libgame.a
gmake[1]: Leaving directory '/usr/src/GrobiSource/source/libgame/src'
gmake -C libpoly clean
gmake[1]: Entering directory '/usr/src/GrobiSource/source/libpoly'
rm -f *.o
rm -f ./libpoly.a
gmake[1]: Leaving directory '/usr/src/GrobiSource/source/libpoly'
gmake -C libthecore/src clean
gmake[1]: Entering directory '/usr/src/GrobiSource/source/libthecore/src'
rm -f *.o
rm -f ../lib/libthecore.a
gmake[1]: Leaving directory '/usr/src/GrobiSource/source/libthecore/src'
gmake -C game/src clean
gmake[1]: Entering directory '/usr/src/GrobiSource/source/game/src'
gmake[1]: Leaving directory '/usr/src/GrobiSource/source/game/src'
gmake -C db/src clean
gmake[1]: Entering directory '/usr/src/GrobiSource/source/db/src'
gmake[1]: Leaving directory '/usr/src/GrobiSource/source/db/src'
root@[DEV]Grobi:/usr/src/GrobiSource/source # gmake all
--------------------------------------
Full Build Start
--------------------------------------
gmake -C liblua clean
gmake[1]: Entering directory '/usr/src/GrobiSource/source/liblua'
cd include; gmake clean
gmake[2]: Entering directory '/usr/src/GrobiSource/source/liblua/include'
gmake[2]: Nothing to be done for 'clean'.
gmake[2]: Leaving directory '/usr/src/GrobiSource/source/liblua/include'
cd src; gmake clean
gmake[2]: Entering directory '/usr/src/GrobiSource/source/liblua/src'
rm -f lapi.o lcode.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o ltests.o ltm.o lundump.o lvm.o lzio.o ../lib/liblua.a
gmake[2]: Leaving directory '/usr/src/GrobiSource/source/liblua/src'
cd src/lib; gmake clean
gmake[2]: Entering directory '/usr/src/GrobiSource/source/liblua/src/lib'
rm -f lauxlib.o lbaselib.o ldblib.o liolib.o lmathlib.o ltablib.o lstrlib.o loadlib.o ../../lib/liblualib.a
gmake[2]: Leaving directory '/usr/src/GrobiSource/source/liblua/src/lib'
gmake[1]: Leaving directory '/usr/src/GrobiSource/source/liblua'
gmake -C liblua
gmake[1]: Entering directory '/usr/src/GrobiSource/source/liblua'
cd include; gmake all
gmake[2]: Entering directory '/usr/src/GrobiSource/source/liblua/include'
gmake[2]: Nothing to be done for 'all'.
gmake[2]: Leaving directory '/usr/src/GrobiSource/source/liblua/include'
cd src; gmake all
gmake[2]: Entering directory '/usr/src/GrobiSource/source/liblua/src'
gcc -O2 -w -g -Wall -I../include      -c -o lapi.o lapi.c
gmake[2]: gcc: Command not found
gmake[2]: *** [<builtin>: lapi.o] Error 127
gmake[2]: Leaving directory '/usr/src/GrobiSource/source/liblua/src'
gmake[1]: *** [Makefile:12: all] Error 2
gmake[1]: Leaving directory '/usr/src/GrobiSource/source/liblua'
gmake: *** [Makefile:57: all] Error 2
root@[DEV]Grobi:/usr/src/GrobiSource/source #

(kullandığım sf:
Linkleri görebilmek için giriş yap veya kayıt ol.
)

(freebsd sürüm: 12.1 mysql sürüm: 5.6 gcc vs. sürümlerini bilmiyorum. Birçok konudan bakarak birçok şeyi kurmaya çalışınca karışmış olabilir. )
 
c++ compileri kurmanız lazım. Bunun için ilk önce şu komutu çalıştırınız.
Kod:
pkg install gcc
 
dediğin koddan kurulum yaptı. yeniden gmake clear gmake all yaptığımda bu syserr oluştu;
Kod:
root@[DEV]Grobi:/usr/src/GrobiSource/source # gmake all
--------------------------------------
Full Build Start
--------------------------------------
gmake -C liblua clean
gmake[1]: Entering directory '/usr/src/GrobiSource/source/liblua'
cd include; gmake clean
gmake[2]: Entering directory '/usr/src/GrobiSource/source/liblua/include'
gmake[2]: Nothing to be done for 'clean'.
gmake[2]: Leaving directory '/usr/src/GrobiSource/source/liblua/include'
cd src; gmake clean
gmake[2]: Entering directory '/usr/src/GrobiSource/source/liblua/src'
rm -f lapi.o lcode.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o ltests.o ltm.o lundump.o lvm.o lzio.o ../lib/liblua.a
gmake[2]: Leaving directory '/usr/src/GrobiSource/source/liblua/src'
cd src/lib; gmake clean
gmake[2]: Entering directory '/usr/src/GrobiSource/source/liblua/src/lib'
rm -f lauxlib.o lbaselib.o ldblib.o liolib.o lmathlib.o ltablib.o lstrlib.o loadlib.o ../../lib/liblualib.a
gmake[2]: Leaving directory '/usr/src/GrobiSource/source/liblua/src/lib'
gmake[1]: Leaving directory '/usr/src/GrobiSource/source/liblua'
gmake -C liblua
gmake[1]: Entering directory '/usr/src/GrobiSource/source/liblua'
cd include; gmake all
gmake[2]: Entering directory '/usr/src/GrobiSource/source/liblua/include'
gmake[2]: Nothing to be done for 'all'.
gmake[2]: Leaving directory '/usr/src/GrobiSource/source/liblua/include'
cd src; gmake all
gmake[2]: Entering directory '/usr/src/GrobiSource/source/liblua/src'
gcc -O2 -w -g -Wall -I../include      -c -o lapi.o lapi.c
gcc -O2 -w -g -Wall -I../include      -c -o lcode.o lcode.c
gcc -O2 -w -g -Wall -I../include      -c -o ldebug.o ldebug.c
gcc -O2 -w -g -Wall -I../include      -c -o ldo.o ldo.c
gcc -O2 -w -g -Wall -I../include      -c -o ldump.o ldump.c
gcc -O2 -w -g -Wall -I../include      -c -o lfunc.o lfunc.c
gcc -O2 -w -g -Wall -I../include      -c -o lgc.o lgc.c
gcc -O2 -w -g -Wall -I../include      -c -o llex.o llex.c
gcc -O2 -w -g -Wall -I../include      -c -o lmem.o lmem.c
gcc -O2 -w -g -Wall -I../include      -c -o lobject.o lobject.c
gcc -O2 -w -g -Wall -I../include      -c -o lopcodes.o lopcodes.c
gcc -O2 -w -g -Wall -I../include      -c -o lparser.o lparser.c
gcc -O2 -w -g -Wall -I../include      -c -o lstate.o lstate.c
gcc -O2 -w -g -Wall -I../include      -c -o lstring.o lstring.c
gcc -O2 -w -g -Wall -I../include      -c -o ltable.o ltable.c
gcc -O2 -w -g -Wall -I../include      -c -o ltests.o ltests.c
gcc -O2 -w -g -Wall -I../include      -c -o ltm.o ltm.c
gcc -O2 -w -g -Wall -I../include      -c -o lundump.o lundump.c
gcc -O2 -w -g -Wall -I../include      -c -o lvm.o lvm.c
gcc -O2 -w -g -Wall -I../include      -c -o lzio.o lzio.c
if [ ! -d ../lib ]; then mkdir ; fi
ar rcu ../lib/liblua.a lapi.o lcode.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o ltests.o ltm.o lundump.o lvm.o lzio.o
ranlib ../lib/liblua.a
gmake[2]: Leaving directory '/usr/src/GrobiSource/source/liblua/src'
cd src/lib; gmake all
gmake[2]: Entering directory '/usr/src/GrobiSource/source/liblua/src/lib'
gcc -O2 -w -g -Wall -I../../include         -c -o lauxlib.o lauxlib.c
gcc -O2 -w -g -Wall -I../../include         -c -o lbaselib.o lbaselib.c
gcc -O2 -w -g -Wall -I../../include         -c -o ldblib.o ldblib.c
gcc -O2 -w -g -Wall -I../../include         -c -o liolib.o liolib.c
gcc -O2 -w -g -Wall -I../../include         -c -o lmathlib.o lmathlib.c
gcc -O2 -w -g -Wall -I../../include         -c -o ltablib.o ltablib.c
gcc -O2 -w -g -Wall -I../../include         -c -o lstrlib.o lstrlib.c
gcc -O2 -w -g -Wall -I../../include         -c -o loadlib.o loadlib.c
ar rcu ../../lib/liblualib.a lauxlib.o lbaselib.o ldblib.o liolib.o lmathlib.o ltablib.o lstrlib.o loadlib.o
ranlib ../../lib/liblualib.a
gmake[2]: Leaving directory '/usr/src/GrobiSource/source/liblua/src/lib'
gmake[1]: Leaving directory '/usr/src/GrobiSource/source/liblua'
gmake -C libsql dep
gmake[1]: Entering directory '/usr/src/GrobiSource/source/libsql'
touch Depend
g++ -I../../Extern/include/mysql -Wall -O2 -w -pipe -mtune=i686 -D_THREAD_SAFE -fno-exceptions  -MM *.cpp > Depend
gmake[1]: Leaving directory '/usr/src/GrobiSource/source/libsql'
gmake -C libsql clean
gmake[1]: Entering directory '/usr/src/GrobiSource/source/libsql'
rm -f *.o
rm -f ./libsql.a
gmake[1]: Leaving directory '/usr/src/GrobiSource/source/libsql'
gmake -C libsql
gmake[1]: Entering directory '/usr/src/GrobiSource/source/libsql'
gmake ./libsql.a
gmake[2]: Entering directory '/usr/src/GrobiSource/source/libsql'
g++ -I../../Extern/include/mysql -Wall -O2 -w -pipe -mtune=i686 -D_THREAD_SAFE -fno-exceptions  -c AsyncSQL.cpp
g++ -I../../Extern/include/mysql -Wall -O2 -w -pipe -mtune=i686 -D_THREAD_SAFE -fno-exceptions  -c Semaphore.cpp
g++ -I../../Extern/include/mysql -Wall -O2 -w -pipe -mtune=i686 -D_THREAD_SAFE -fno-exceptions  -c Tellwait.cpp
g++ -I../../Extern/include/mysql -Wall -O2 -w -pipe -mtune=i686 -D_THREAD_SAFE -fno-exceptions  -c Statement.cpp
ar cru ./libsql.a AsyncSQL.o Semaphore.o Tellwait.o Statement.o
ranlib ./libsql.a
chmod 700 ./libsql.a
gmake[2]: Leaving directory '/usr/src/GrobiSource/source/libsql'
gmake[1]: Leaving directory '/usr/src/GrobiSource/source/libsql'
gmake -C libgame/src dep
gmake[1]: Entering directory '/usr/src/GrobiSource/source/libgame/src'
touch Depend
g++ -Wall -O2 -w -pipe -mcpu=i686 -fno-exceptions -I../include -MM *.cc > Depend
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
gmake[1]: Leaving directory '/usr/src/GrobiSource/source/libgame/src'
gmake -C libgame/src clean
gmake[1]: Entering directory '/usr/src/GrobiSource/source/libgame/src'
rm -f *.o
rm -f ../lib/libgame.a
gmake[1]: Leaving directory '/usr/src/GrobiSource/source/libgame/src'
gmake -C libgame/src
gmake[1]: Entering directory '/usr/src/GrobiSource/source/libgame/src'
gmake ../lib/libgame.a
gmake[2]: Entering directory '/usr/src/GrobiSource/source/libgame/src'
g++ -Wall -O2 -w -pipe -mcpu=i686 -fno-exceptions -I../include -c grid.cc
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++ -Wall -O2 -w -pipe -mcpu=i686 -fno-exceptions -I../include -c attribute.cc
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++ -Wall -O2 -w -pipe -mcpu=i686 -fno-exceptions -I../include -c targa.cc
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
if [ ! -d ../lib ]; then mkdir ../lib; fi
ar cru ../lib/libgame.a grid.o attribute.o targa.o
ranlib ../lib/libgame.a
chmod 700 ../lib/libgame.a
gmake[2]: Leaving directory '/usr/src/GrobiSource/source/libgame/src'
gmake[1]: Leaving directory '/usr/src/GrobiSource/source/libgame/src'
gmake -C libpoly dep
gmake[1]: Entering directory '/usr/src/GrobiSource/source/libpoly'
touch Depend
g++ -Wall -O2 -w -pipe -mcpu=i686 -fno-exceptions -fno-rtti -MM *.cc > Depend
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
gmake[1]: Leaving directory '/usr/src/GrobiSource/source/libpoly'
gmake -C libpoly clean
gmake[1]: Entering directory '/usr/src/GrobiSource/source/libpoly'
rm -f *.o
rm -f ./libpoly.a
gmake[1]: Leaving directory '/usr/src/GrobiSource/source/libpoly'
gmake -C libpoly
gmake[1]: Entering directory '/usr/src/GrobiSource/source/libpoly'
gmake ./libpoly.a
gmake[2]: Entering directory '/usr/src/GrobiSource/source/libpoly'
g++ -Wall -O2 -w -pipe -mcpu=i686 -fno-exceptions -fno-rtti -c Base.cc
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++ -Wall -O2 -w -pipe -mcpu=i686 -fno-exceptions -fno-rtti -c Poly.cc
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++ -Wall -O2 -w -pipe -mcpu=i686 -fno-exceptions -fno-rtti -c SymTable.cc
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++ -Wall -O2 -w -pipe -mcpu=i686 -fno-exceptions -fno-rtti -c Symbol.cc
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
ar cru ./libpoly.a Base.o Poly.o SymTable.o Symbol.o
ranlib ./libpoly.a
chmod 700 ./libpoly.a
gmake[2]: Leaving directory '/usr/src/GrobiSource/source/libpoly'
gmake[1]: Leaving directory '/usr/src/GrobiSource/source/libpoly'
gmake -C libthecore/src dep
gmake[1]: Entering directory '/usr/src/GrobiSource/source/libthecore/src'
g++ -Wall -O2 -w -pipe -mcpu=i686 -g -I../include -MM *.c > Depend
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
gmake[1]: Leaving directory '/usr/src/GrobiSource/source/libthecore/src'
gmake -C libthecore/src clean
gmake[1]: Entering directory '/usr/src/GrobiSource/source/libthecore/src'
rm -f *.o
rm -f ../lib/libthecore.a
gmake[1]: Leaving directory '/usr/src/GrobiSource/source/libthecore/src'
gmake -C libthecore/src
gmake[1]: Entering directory '/usr/src/GrobiSource/source/libthecore/src'
gmake ../lib/libthecore.a
gmake[2]: Entering directory '/usr/src/GrobiSource/source/libthecore/src'
g++ -Wall -O2 -w -pipe -mcpu=i686 -g -I../include -c socket.c
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++ -Wall -O2 -w -pipe -mcpu=i686 -g -I../include -c fdwatch.c
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++ -Wall -O2 -w -pipe -mcpu=i686 -g -I../include -c buffer.c
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++ -Wall -O2 -w -pipe -mcpu=i686 -g -I../include -c signal.c
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++ -Wall -O2 -w -pipe -mcpu=i686 -g -I../include -c log.c
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++ -Wall -O2 -w -pipe -mcpu=i686 -g -I../include -c utils.c
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++ -Wall -O2 -w -pipe -mcpu=i686 -g -I../include -c kstbl.c
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++ -Wall -O2 -w -pipe -mcpu=i686 -g -I../include -c hangul.c
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++ -Wall -O2 -w -pipe -mcpu=i686 -g -I../include -c heart.c
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++ -Wall -O2 -w -pipe -mcpu=i686 -g -I../include -c main.c
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++ -Wall -O2 -w -pipe -mcpu=i686 -g -I../include -c tea.c
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++ -Wall -O2 -w -pipe -mcpu=i686 -g -I../include -c des.c
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++ -Wall -O2 -w -pipe -mcpu=i686 -g -I../include -c gost.c
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++ -Wall -O2 -w -pipe -mcpu=i686 -g -I../include -c memcpy.c
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
if [ ! -d ../lib ]; then mkdir ../lib; fi
ar cru ../lib/libthecore.a socket.o fdwatch.o buffer.o signal.o log.o utils.o kstbl.o hangul.o heart.o main.o tea.o des.o gost.o memcpy.o
ranlib ../lib/libthecore.a
chmod 700 ../lib/libthecore.a
gmake[2]: Leaving directory '/usr/src/GrobiSource/source/libthecore/src'
gmake[1]: Leaving directory '/usr/src/GrobiSource/source/libthecore/src'
gmake -C game/src dep
gmake[1]: Entering directory '/usr/src/GrobiSource/source/game/src'
makedepend -f Depend  -I../../../Extern/include/boost -I../../../Extern/include/devil -I../../../Extern/include/mysql -I../../../Extern/include/hackshield -I../../../Extern/include/xtrap -I../../../Extern/include -I../../liblua/include -I/usr/include/c++/3.3 -I/usr/include/c++/4.2 -pOBJDIR/ BattleArena.cpp FSM.cpp MarkConvert.cpp MarkImage.cpp MarkManager.cpp OXEvent.cpp TrafficProfiler.cpp ani.cpp arena.cpp banword.cpp battle.cpp blend_item.cpp block_country.cpp buffer_manager.cpp building.cpp castle.cpp char.cpp char_affect.cpp char_battle.cpp char_change_empire.cpp char_horse.cpp char_item.cpp char_manager.cpp char_quickslot.cpp char_resist.cpp char_skill.cpp char_state.cpp PetSystem.cpp cmd.cpp cmd_emotion.cpp cmd_general.cpp cmd_gm.cpp cmd_oxevent.cpp config.cpp constants.cpp crc32.cpp cube.cpp db.cpp desc.cpp desc_client.cpp desc_manager.cpp desc_p2p.cpp dev_log.cpp dungeon.cpp empire_text_convert.cpp entity.cpp entity_view.cpp event.cpp event_queue.cpp exchange.cpp file_loader.cpp fishing.cpp gm.cpp guild.cpp guild_manager.cpp guild_war.cpp horse_rider.cpp horsename_manager.cpp input.cpp input_auth.cpp input_db.cpp input_login.cpp input_main.cpp input_p2p.cpp input_teen.cpp input_udp.cpp ip_ban.cpp item.cpp item_addon.cpp item_attribute.cpp item_manager.cpp item_manager_idrange.cpp locale.cpp locale_service.cpp log.cpp login_data.cpp lzo_manager.cpp marriage.cpp matrix_card.cpp messenger_manager.cpp mining.cpp mob_manager.cpp monarch.cpp motion.cpp over9refine.cpp p2p.cpp packet_info.cpp party.cpp passpod.cpp pcbang.cpp polymorph.cpp priv_manager.cpp pvp.cpp questevent.cpp questlua.cpp questlua_affect.cpp questlua_arena.cpp questlua_ba.cpp questlua_building.cpp questlua_danceevent.cpp questlua_dungeon.cpp questlua_forked.cpp questlua_game.cpp questlua_global.cpp questlua_guild.cpp questlua_horse.cpp questlua_pet.cpp questlua_item.cpp questlua_marriage.cpp questlua_mgmt.cpp questlua_monarch.cpp questlua_npc.cpp questlua_oxevent.cpp questlua_party.cpp questlua_pc.cpp questlua_quest.cpp questlua_target.cpp questmanager.cpp questnpc.cpp questpc.cpp refine.cpp regen.cpp safebox.cpp sectree.cpp sectree_manager.cpp sequence.cpp shop.cpp skill.cpp start_position.cpp target.cpp text_file_loader.cpp trigger.cpp utils.cpp vector.cpp war_map.cpp wedding.cpp xmas_event.cpp version.cpp panama.cpp threeway_war.cpp map_location.cpp auth_brazil.cpp BlueDragon.cpp BlueDragon_Binder.cpp DragonLair.cpp questlua_dragonlair.cpp HackShield.cpp HackShield_Impl.cpp char_hackshield.cpp skill_power.cpp affect.cpp SpeedServer.cpp questlua_speedserver.cpp XTrapManager.cpp auction_manager.cpp FileMonitor_FreeBSD.cpp ClientPackageCryptInfo.cpp cipher.cpp buff_on_attributes.cpp dragon_soul_table.cpp DragonSoul.cpp group_text_parse_tree.cpp char_dragonsoul.cpp questlua_dragonsoul.cpp shop_manager.cpp shopEx.cpp item_manager_read_tables.cpp minilzo.c main.cpp test.cpp 2> /dev/null > Depend
gmake[1]: Leaving directory '/usr/src/GrobiSource/source/game/src'
gmake -C game/src clean
gmake[1]: Entering directory '/usr/src/GrobiSource/source/game/src'
gmake[1]: Leaving directory '/usr/src/GrobiSource/source/game/src'
gmake -C game/src
gmake[1]: Entering directory '/usr/src/GrobiSource/source/game/src'
compile BattleArena.cpp
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
In file included from ../../../Extern/include/boost/functional/hash/hash.hpp:494,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:17,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from BattleArena.cpp:6:
../../../Extern/include/boost/functional/hash/extensions.hpp:38:33: error: 'template<class T, class A> std::size_t boost::hash_value' redeclared as different kind of entity
   38 |     std::size_t hash_value(std::list<T, A> const& v);
      |                                 ^~~~
In file included from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:17,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from BattleArena.cpp:6:
../../../Extern/include/boost/functional/hash/hash.hpp:307:24: note: previous declaration 'std::size_t boost::hash_value(long double)'
  307 |     inline std::size_t hash_value(long double v)
      |                        ^~~~~~~~~~
In file included from ../../../Extern/include/boost/functional/hash/hash.hpp:494,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:17,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from BattleArena.cpp:6:
../../../Extern/include/boost/functional/hash/extensions.hpp:38:33: error: reference to 'list' is ambiguous
   38 |     std::size_t hash_value(std::list<T, A> const& v);
      |                                 ^~~~
In file included from /usr/local/lib/gcc9/include/c++/list:63,
                 from stdafx.h:17,
                 from BattleArena.cpp:1:
/usr/local/lib/gcc9/include/c++/bits/stl_list.h:552:11: note: candidates are: 'template<class _Tp, class _Alloc> class std::__cxx11::list'
  552 |     class list : protected _List_base<_Tp, _Alloc>
      |           ^~~~
In file included from ../../../Extern/include/boost/functional/hash/extensions.hpp:17,
                 from ../../../Extern/include/boost/functional/hash/hash.hpp:494,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:17,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from BattleArena.cpp:6:
../../../Extern/include/boost/detail/container_fwd.hpp:81:47: note:                 'template<class T, class Allocator> class std::list'
   81 |     template <class T, class Allocator> class list;
      |                                               ^~~~
In file included from ../../../Extern/include/boost/functional/hash/hash.hpp:494,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:17,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from BattleArena.cpp:6:
../../../Extern/include/boost/functional/hash/extensions.hpp:38:39: error: expected primary-expression before ',' token
   38 |     std::size_t hash_value(std::list<T, A> const& v);
      |                                       ^
../../../Extern/include/boost/functional/hash/extensions.hpp:38:42: error: expected primary-expression before '>' token
   38 |     std::size_t hash_value(std::list<T, A> const& v);
      |                                          ^
../../../Extern/include/boost/functional/hash/extensions.hpp:38:44: error: expected primary-expression before 'const'
   38 |     std::size_t hash_value(std::list<T, A> const& v);
      |                                            ^~~~~
../../../Extern/include/boost/functional/hash/extensions.hpp:69:33: error: 'template<class T, class A> std::size_t boost::hash_value' redeclared as different kind of entity
   69 |     std::size_t hash_value(std::list<T, A> const& v)
      |                                 ^~~~
In file included from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:17,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from BattleArena.cpp:6:
../../../Extern/include/boost/functional/hash/hash.hpp:307:24: note: previous declaration 'std::size_t boost::hash_value(long double)'
  307 |     inline std::size_t hash_value(long double v)
      |                        ^~~~~~~~~~
In file included from ../../../Extern/include/boost/functional/hash/hash.hpp:494,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:17,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from BattleArena.cpp:6:
../../../Extern/include/boost/functional/hash/extensions.hpp:69:33: error: reference to 'list' is ambiguous
   69 |     std::size_t hash_value(std::list<T, A> const& v)
      |                                 ^~~~
In file included from /usr/local/lib/gcc9/include/c++/list:63,
                 from stdafx.h:17,
                 from BattleArena.cpp:1:
/usr/local/lib/gcc9/include/c++/bits/stl_list.h:552:11: note: candidates are: 'template<class _Tp, class _Alloc> class std::__cxx11::list'
  552 |     class list : protected _List_base<_Tp, _Alloc>
      |           ^~~~
In file included from ../../../Extern/include/boost/functional/hash/extensions.hpp:17,
                 from ../../../Extern/include/boost/functional/hash/hash.hpp:494,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:17,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from BattleArena.cpp:6:
../../../Extern/include/boost/detail/container_fwd.hpp:81:47: note:                 'template<class T, class Allocator> class std::list'
   81 |     template <class T, class Allocator> class list;
      |                                               ^~~~
In file included from ../../../Extern/include/boost/functional/hash/hash.hpp:494,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:17,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from BattleArena.cpp:6:
../../../Extern/include/boost/functional/hash/extensions.hpp:69:39: error: expected primary-expression before ',' token
   69 |     std::size_t hash_value(std::list<T, A> const& v)
      |                                       ^
../../../Extern/include/boost/functional/hash/extensions.hpp:69:42: error: expected primary-expression before '>' token
   69 |     std::size_t hash_value(std::list<T, A> const& v)
      |                                          ^
../../../Extern/include/boost/functional/hash/extensions.hpp:69:44: error: expected primary-expression before 'const'
   69 |     std::size_t hash_value(std::list<T, A> const& v)
      |                                            ^~~~~
In file included from /usr/local/lib/gcc9/include/c++/bits/ios_base.h:41,
                 from /usr/local/lib/gcc9/include/c++/ios:42,
                 from /usr/local/lib/gcc9/include/c++/ostream:38,
                 from /usr/local/lib/gcc9/include/c++/iterator:64,
                 from ../../../Extern/include/boost/detail/iterator.hpp:54,
                 from ../../../Extern/include/boost/iterator/iterator_categories.hpp:10,
                 from ../../../Extern/include/boost/unordered/detail/table.hpp:14,
                 from ../../../Extern/include/boost/unordered/detail/equivalent.hpp:10,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:19,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from BattleArena.cpp:6:
/usr/local/lib/gcc9/include/c++/bits/locale_classes.h:284:24: error: reference to 'basic_string' is ambiguous
  284 |       operator()(const basic_string<_Char, _Traits, _Alloc>& __s1,
      |                        ^~~~~~~~~~~~
In file included from /usr/local/lib/gcc9/include/c++/string:39,
                 from /usr/local/lib/gcc9/include/c++/stdexcept:39,
                 from /usr/local/lib/gcc9/include/c++/array:39,
                 from /usr/local/lib/gcc9/include/c++/tuple:39,
                 from /usr/local/lib/gcc9/include/c++/bits/stl_map.h:63,
                 from /usr/local/lib/gcc9/include/c++/map:61,
                 from stdafx.h:18,
                 from BattleArena.cpp:1:
/usr/local/lib/gcc9/include/c++/bits/stringfwd.h:74:11: note: candidates are: 'template<class _CharT, class _Traits, class _Alloc> class std::__cxx11::basic_string'
   74 |     class basic_string;
      |           ^~~~~~~~~~~~
In file included from ../../../Extern/include/boost/functional/hash/extensions.hpp:17,
                 from ../../../Extern/include/boost/functional/hash/hash.hpp:494,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:17,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from BattleArena.cpp:6:
../../../Extern/include/boost/detail/container_fwd.hpp:63:65: note:                 'template<class charT, class traits, class Allocator> class std::basic_string'
   63 |     template <class charT, class traits, class Allocator> class basic_string;
      |                                                                 ^~~~~~~~~~~~
In file included from /usr/local/lib/gcc9/include/c++/bits/ios_base.h:41,
                 from /usr/local/lib/gcc9/include/c++/ios:42,
                 from /usr/local/lib/gcc9/include/c++/ostream:38,
                 from /usr/local/lib/gcc9/include/c++/iterator:64,
                 from ../../../Extern/include/boost/detail/iterator.hpp:54,
                 from ../../../Extern/include/boost/iterator/iterator_categories.hpp:10,
                 from ../../../Extern/include/boost/unordered/detail/table.hpp:14,
                 from ../../../Extern/include/boost/unordered/detail/equivalent.hpp:10,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:19,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from BattleArena.cpp:6:
/usr/local/lib/gcc9/include/c++/bits/locale_classes.h:284:36: error: expected ',' or '...' before '<' token
  284 |       operator()(const basic_string<_Char, _Traits, _Alloc>& __s1,
      |                                    ^
In file included from /usr/local/lib/gcc9/include/c++/bits/locale_classes.h:851,
                 from /usr/local/lib/gcc9/include/c++/bits/ios_base.h:41,
                 from /usr/local/lib/gcc9/include/c++/ios:42,
                 from /usr/local/lib/gcc9/include/c++/ostream:38,
                 from /usr/local/lib/gcc9/include/c++/iterator:64,
                 from ../../../Extern/include/boost/detail/iterator.hpp:54,
                 from ../../../Extern/include/boost/iterator/iterator_categories.hpp:10,
                 from ../../../Extern/include/boost/unordered/detail/table.hpp:14,
                 from ../../../Extern/include/boost/unordered/detail/equivalent.hpp:10,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:19,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from BattleArena.cpp:6:
/usr/local/lib/gcc9/include/c++/bits/locale_classes.tcc:81:22: error: reference to 'basic_string' is ambiguous
   81 |     operator()(const basic_string<_CharT, _Traits, _Alloc>& __s1,
      |                      ^~~~~~~~~~~~
In file included from /usr/local/lib/gcc9/include/c++/string:39,
                 from /usr/local/lib/gcc9/include/c++/stdexcept:39,
                 from /usr/local/lib/gcc9/include/c++/array:39,
                 from /usr/local/lib/gcc9/include/c++/tuple:39,
                 from /usr/local/lib/gcc9/include/c++/bits/stl_map.h:63,
                 from /usr/local/lib/gcc9/include/c++/map:61,
                 from stdafx.h:18,
                 from BattleArena.cpp:1:
/usr/local/lib/gcc9/include/c++/bits/stringfwd.h:74:11: note: candidates are: 'template<class _CharT, class _Traits, class _Alloc> class std::__cxx11::basic_string'
   74 |     class basic_string;
      |           ^~~~~~~~~~~~
In file included from ../../../Extern/include/boost/functional/hash/extensions.hpp:17,
                 from ../../../Extern/include/boost/functional/hash/hash.hpp:494,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:17,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from BattleArena.cpp:6:
../../../Extern/include/boost/detail/container_fwd.hpp:63:65: note:                 'template<class charT, class traits, class Allocator> class std::basic_string'
   63 |     template <class charT, class traits, class Allocator> class basic_string;
      |                                                                 ^~~~~~~~~~~~
In file included from /usr/local/lib/gcc9/include/c++/bits/locale_classes.h:851,
                 from /usr/local/lib/gcc9/include/c++/bits/ios_base.h:41,
                 from /usr/local/lib/gcc9/include/c++/ios:42,
                 from /usr/local/lib/gcc9/include/c++/ostream:38,
                 from /usr/local/lib/gcc9/include/c++/iterator:64,
                 from ../../../Extern/include/boost/detail/iterator.hpp:54,
                 from ../../../Extern/include/boost/iterator/iterator_categories.hpp:10,
                 from ../../../Extern/include/boost/unordered/detail/table.hpp:14,
                 from ../../../Extern/include/boost/unordered/detail/equivalent.hpp:10,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:19,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from BattleArena.cpp:6:
/usr/local/lib/gcc9/include/c++/bits/locale_classes.tcc:81:34: error: expected ',' or '...' before '<' token
   81 |     operator()(const basic_string<_CharT, _Traits, _Alloc>& __s1,
      |                                  ^
/usr/local/lib/gcc9/include/c++/bits/locale_classes.tcc: In member function 'bool std::locale::operator()(int) const':
/usr/local/lib/gcc9/include/c++/bits/locale_classes.tcc:86:33: error: '__s1' was not declared in this scope
   86 |       return (__collate.compare(__s1.data(), __s1.data() + __s1.length(),
      |                                 ^~~~
/usr/local/lib/gcc9/include/c++/bits/locale_classes.tcc:87:5: error: '__s2' was not declared in this scope
   87 |     __s2.data(), __s2.data() + __s2.length()) < 0);
      |     ^~~~
In file included from /usr/local/lib/gcc9/include/c++/ios:43,
                 from /usr/local/lib/gcc9/include/c++/ostream:38,
                 from /usr/local/lib/gcc9/include/c++/iterator:64,
                 from ../../../Extern/include/boost/detail/iterator.hpp:54,
                 from ../../../Extern/include/boost/iterator/iterator_categories.hpp:10,
                 from ../../../Extern/include/boost/unordered/detail/table.hpp:14,
                 from ../../../Extern/include/boost/unordered/detail/equivalent.hpp:10,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:19,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from BattleArena.cpp:6:
/usr/local/lib/gcc9/include/c++/streambuf: At global scope:
/usr/local/lib/gcc9/include/c++/streambuf:176:6: error: reference to 'basic_string' is ambiguous
  176 |      basic_string<_CharT2, _Traits2, _Alloc>&);
      |      ^~~~~~~~~~~~
In file included from /usr/local/lib/gcc9/include/c++/string:39,
                 from /usr/local/lib/gcc9/include/c++/stdexcept:39,
                 from /usr/local/lib/gcc9/include/c++/array:39,
                 from /usr/local/lib/gcc9/include/c++/tuple:39,
                 from /usr/local/lib/gcc9/include/c++/bits/stl_map.h:63,
                 from /usr/local/lib/gcc9/include/c++/map:61,
                 from stdafx.h:18,
                 from BattleArena.cpp:1:
/usr/local/lib/gcc9/include/c++/bits/stringfwd.h:74:11: note: candidates are: 'template<class _CharT, class _Traits, class _Alloc> class std::__cxx11::basic_string'
   74 |     class basic_string;
      |           ^~~~~~~~~~~~
In file included from ../../../Extern/include/boost/functional/hash/extensions.hpp:17,
                 from ../../../Extern/include/boost/functional/hash/hash.hpp:494,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:17,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from BattleArena.cpp:6:
../../../Extern/include/boost/detail/container_fwd.hpp:63:65: note:                 'template<class charT, class traits, class Allocator> class std::basic_string'
   63 |     template <class charT, class traits, class Allocator> class basic_string;
      |                                                                 ^~~~~~~~~~~~
In file included from /usr/local/lib/gcc9/include/c++/ios:43,
                 from /usr/local/lib/gcc9/include/c++/ostream:38,
                 from /usr/local/lib/gcc9/include/c++/iterator:64,
                 from ../../../Extern/include/boost/detail/iterator.hpp:54,
                 from ../../../Extern/include/boost/iterator/iterator_categories.hpp:10,
                 from ../../../Extern/include/boost/unordered/detail/table.hpp:14,
                 from ../../../Extern/include/boost/unordered/detail/equivalent.hpp:10,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:19,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from BattleArena.cpp:6:
/usr/local/lib/gcc9/include/c++/streambuf:176:6: error: 'basic_string' has not been declared
  176 |      basic_string<_CharT2, _Traits2, _Alloc>&);
      |      ^~~~~~~~~~~~
/usr/local/lib/gcc9/include/c++/streambuf:176:18: error: expected ',' or '...' before '<' token
  176 |      basic_string<_CharT2, _Traits2, _Alloc>&);
      |                  ^
/usr/local/lib/gcc9/include/c++/streambuf:181:3: error: reference to 'basic_string' is ambiguous
  181 |   basic_string<_CharT2, _Traits2, _Alloc>&, _CharT2);
      |   ^~~~~~~~~~~~
In file included from /usr/local/lib/gcc9/include/c++/string:39,
                 from /usr/local/lib/gcc9/include/c++/stdexcept:39,
                 from /usr/local/lib/gcc9/include/c++/array:39,
                 from /usr/local/lib/gcc9/include/c++/tuple:39,
                 from /usr/local/lib/gcc9/include/c++/bits/stl_map.h:63,
                 from /usr/local/lib/gcc9/include/c++/map:61,
                 from stdafx.h:18,
                 from BattleArena.cpp:1:
/usr/local/lib/gcc9/include/c++/bits/stringfwd.h:74:11: note: candidates are: 'template<class _CharT, class _Traits, class _Alloc> class std::__cxx11::basic_string'
   74 |     class basic_string;
      |           ^~~~~~~~~~~~
In file included from ../../../Extern/include/boost/functional/hash/extensions.hpp:17,
                 from ../../../Extern/include/boost/functional/hash/hash.hpp:494,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:17,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from BattleArena.cpp:6:
../../../Extern/include/boost/detail/container_fwd.hpp:63:65: note:                 'template<class charT, class traits, class Allocator> class std::basic_string'
   63 |     template <class charT, class traits, class Allocator> class basic_string;
      |                                                                 ^~~~~~~~~~~~
In file included from /usr/local/lib/gcc9/include/c++/ios:43,
                 from /usr/local/lib/gcc9/include/c++/ostream:38,
                 from /usr/local/lib/gcc9/include/c++/iterator:64,
                 from ../../../Extern/include/boost/detail/iterator.hpp:54,
                 from ../../../Extern/include/boost/iterator/iterator_categories.hpp:10,
                 from ../../../Extern/include/boost/unordered/detail/table.hpp:14,
                 from ../../../Extern/include/boost/unordered/detail/equivalent.hpp:10,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:19,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from BattleArena.cpp:6:
/usr/local/lib/gcc9/include/c++/streambuf:181:3: error: 'basic_string' has not been declared
  181 |   basic_string<_CharT2, _Traits2, _Alloc>&, _CharT2);
      |   ^~~~~~~~~~~~
/usr/local/lib/gcc9/include/c++/streambuf:181:15: error: expected ',' or '...' before '<' token
  181 |   basic_string<_CharT2, _Traits2, _Alloc>&, _CharT2);
      |               ^
In file included from /usr/local/lib/gcc9/include/c++/bits/locale_facets.h:2655,
                 from /usr/local/lib/gcc9/include/c++/bits/basic_ios.h:37,
                 from /usr/local/lib/gcc9/include/c++/ios:44,
                 from /usr/local/lib/gcc9/include/c++/ostream:38,
                 from /usr/local/lib/gcc9/include/c++/iterator:64,
                 from ../../../Extern/include/boost/detail/iterator.hpp:54,
                 from ../../../Extern/include/boost/iterator/iterator_categories.hpp:10,
                 from ../../../Extern/include/boost/unordered/detail/table.hpp:14,
                 from ../../../Extern/include/boost/unordered/detail/equivalent.hpp:10,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:19,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from BattleArena.cpp:6:
/usr/local/lib/gcc9/include/c++/bits/locale_facets.tcc: In member function 'void std::__numpunct_cache<_CharT>::_M_cache(const std::locale&)':
/usr/local/lib/gcc9/include/c++/bits/locale_facets.tcc:96:10: error: reference to 'basic_string' is ambiguous
   96 |    const basic_string<_CharT>& __tn = __np.truename();
      |          ^~~~~~~~~~~~
In file included from /usr/local/lib/gcc9/include/c++/string:39,
                 from /usr/local/lib/gcc9/include/c++/stdexcept:39,
                 from /usr/local/lib/gcc9/include/c++/array:39,
                 from /usr/local/lib/gcc9/include/c++/tuple:39,
                 from /usr/local/lib/gcc9/include/c++/bits/stl_map.h:63,
                 from /usr/local/lib/gcc9/include/c++/map:61,
                 from stdafx.h:18,
                 from BattleArena.cpp:1:
/usr/local/lib/gcc9/include/c++/bits/stringfwd.h:74:11: note: candidates are: 'template<class _CharT, class _Traits, class _Alloc> class std::__cxx11::basic_string'
   74 |     class basic_string;
      |           ^~~~~~~~~~~~
In file included from ../../../Extern/include/boost/functional/hash/extensions.hpp:17,
                 from ../../../Extern/include/boost/functional/hash/hash.hpp:494,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:17,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from BattleArena.cpp:6:
../../../Extern/include/boost/detail/container_fwd.hpp:63:65: note:                 'template<class charT, class traits, class Allocator> class std::basic_string'
   63 |     template <class charT, class traits, class Allocator> class basic_string;
      |                                                                 ^~~~~~~~~~~~
In file included from /usr/local/lib/gcc9/include/c++/bits/locale_facets.h:2655,
                 from /usr/local/lib/gcc9/include/c++/bits/basic_ios.h:37,
                 from /usr/local/lib/gcc9/include/c++/ios:44,
                 from /usr/local/lib/gcc9/include/c++/ostream:38,
                 from /usr/local/lib/gcc9/include/c++/iterator:64,
                 from ../../../Extern/include/boost/detail/iterator.hpp:54,
                 from ../../../Extern/include/boost/iterator/iterator_categories.hpp:10,
                 from ../../../Extern/include/boost/unordered/detail/table.hpp:14,
                 from ../../../Extern/include/boost/unordered/detail/equivalent.hpp:10,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:19,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from BattleArena.cpp:6:
/usr/local/lib/gcc9/include/c++/bits/locale_facets.tcc:97:23: error: '__tn' was not declared in this scope
   97 |    _M_truename_size = __tn.size();
      |                       ^~~~
/usr/local/lib/gcc9/include/c++/bits/locale_facets.tcc:101:10: error: reference to 'basic_string' is ambiguous
  101 |    const basic_string<_CharT>& __fn = __np.falsename();
      |          ^~~~~~~~~~~~
In file included from /usr/local/lib/gcc9/include/c++/string:39,
                 from /usr/local/lib/gcc9/include/c++/stdexcept:39,
                 from /usr/local/lib/gcc9/include/c++/array:39,
                 from /usr/local/lib/gcc9/include/c++/tuple:39,
                 from /usr/local/lib/gcc9/include/c++/bits/stl_map.h:63,
                 from /usr/local/lib/gcc9/include/c++/map:61,
                 from stdafx.h:18,
                 from BattleArena.cpp:1:
/usr/local/lib/gcc9/include/c++/bits/stringfwd.h:74:11: note: candidates are: 'template<class _CharT, class _Traits, class _Alloc> class std::__cxx11::basic_string'
   74 |     class basic_string;
      |           ^~~~~~~~~~~~
In file included from ../../../Extern/include/boost/functional/hash/extensions.hpp:17,
                 from ../../../Extern/include/boost/functional/hash/hash.hpp:494,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:17,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from BattleArena.cpp:6:
../../../Extern/include/boost/detail/container_fwd.hpp:63:65: note:                 'template<class charT, class traits, class Allocator> class std::basic_string'
   63 |     template <class charT, class traits, class Allocator> class basic_string;
      |                                                                 ^~~~~~~~~~~~
In file included from /usr/local/lib/gcc9/include/c++/bits/locale_facets.h:2655,
                 from /usr/local/lib/gcc9/include/c++/bits/basic_ios.h:37,
                 from /usr/local/lib/gcc9/include/c++/ios:44,
                 from /usr/local/lib/gcc9/include/c++/ostream:38,
                 from /usr/local/lib/gcc9/include/c++/iterator:64,
                 from ../../../Extern/include/boost/detail/iterator.hpp:54,
                 from ../../../Extern/include/boost/iterator/iterator_categories.hpp:10,
                 from ../../../Extern/include/boost/unordered/detail/table.hpp:14,
                 from ../../../Extern/include/boost/unordered/detail/equivalent.hpp:10,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:19,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from BattleArena.cpp:6:
/usr/local/lib/gcc9/include/c++/bits/locale_facets.tcc:102:24: error: '__fn' was not declared in this scope
  102 |    _M_falsename_size = __fn.size();
      |                        ^~~~
In file included from BattleArena.cpp:6:
char.h: At global scope:
char.h:916:9: error: reference to 'list' is ambiguous
  916 |   const std::list<CAffect *> & GetAffectContainer() const { return m_list_pkAffect; }
      |         ^~~
In file included from /usr/local/lib/gcc9/include/c++/list:63,
                 from stdafx.h:17,
                 from BattleArena.cpp:1:
/usr/local/lib/gcc9/include/c++/bits/stl_list.h:552:11: note: candidates are: 'template<class _Tp, class _Alloc> class std::__cxx11::list'
  552 |     class list : protected _List_base<_Tp, _Alloc>
      |           ^~~~
In file included from ../../../Extern/include/boost/functional/hash/extensions.hpp:17,
                 from ../../../Extern/include/boost/functional/hash/hash.hpp:494,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:17,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from BattleArena.cpp:6:
../../../Extern/include/boost/detail/container_fwd.hpp:81:47: note:                 'template<class T, class Allocator> class std::list'
   81 |     template <class T, class Allocator> class list;
      |                                               ^~~~
In file included from BattleArena.cpp:6:
char.h:922:3: error: reference to 'list' is ambiguous
  922 |   std::list<CAffect *> m_list_pkAffect;
      |   ^~~
In file included from /usr/local/lib/gcc9/include/c++/list:63,
                 from stdafx.h:17,
                 from BattleArena.cpp:1:
/usr/local/lib/gcc9/include/c++/bits/stl_list.h:552:11: note: candidates are: 'template<class _Tp, class _Alloc> class std::__cxx11::list'
  552 |     class list : protected _List_base<_Tp, _Alloc>
      |           ^~~~
In file included from ../../../Extern/include/boost/functional/hash/extensions.hpp:17,
                 from ../../../Extern/include/boost/functional/hash/hash.hpp:494,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:17,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from BattleArena.cpp:6:
../../../Extern/include/boost/detail/container_fwd.hpp:81:47: note:                 'template<class T, class Allocator> class std::list'
   81 |     template <class T, class Allocator> class list;
      |                                               ^~~~
gmake[1]: *** [Makefile:120: OBJDIR/BattleArena.o] Error 1
gmake[1]: Leaving directory '/usr/src/GrobiSource/source/game/src'
gmake: *** [Makefile:77: all] Error 2
 
Kod:
1)gmake:

cd /usr/ports/devel/gmake && make install clean
cd /usr/ports/devel/gmake && make install clean
2)makedepend:

cd /usr/ports/devel/makedepend && make install clean
cd /usr/ports/devel/makedepend && make install clean
3)svn:

cd /usr/ports/devel/subversion && make install clean
cd /usr/ports/devel/subversion && make install clean
4)devil:

cd /usr/ports/graphics/devil && make install clean
cd /usr/ports/graphics/devil && make install clean
5)G++:

cd /usr/ports/lang/gcc48/ && make install clean
cd /usr/ports/lang/gcc48/ && make install clean
burdakilerin hepsini pkg install xxx şeklinde hepsini kurdum test için hepsini tekrar pkg install dediğim zaman çıkanlar;
Kod:
root@[DEV]Grobi:~ # pkg install gmake
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Checking integrity... done (0 conflicting)
The most recent versions of packages are already installed
root@[DEV]Grobi:~ # pkg install makedepend
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Checking integrity... done (0 conflicting)
The most recent versions of packages are already installed
root@[DEV]Grobi:~ # pkg install subversion
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Checking integrity... done (0 conflicting)
The most recent versions of packages are already installed
root@[DEV]Grobi:~ # pkg install devil
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Checking integrity... done (0 conflicting)
The most recent versions of packages are already installed
root@[DEV]Grobi:~ # pkg install gcc48
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Checking integrity... done (0 conflicting)
The most recent versions of packages are already installed
root@[DEV]Grobi:~ # pkg install gcc
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Checking integrity... done (0 conflicting)
The most recent versions of packages are already installed
root@[DEV]Grobi:~ #
 
@KorcaHost aynen hocam fakat build olmuyor source
Kod:
f: 
root@[DEV]Grobi:/usr/src/GrobiSource/source # gmake all
--------------------------------------
Full Build Start
--------------------------------------
gmake -C liblua clean
gmake[1]: Entering directory '/usr/src/GrobiSource/source/liblua'
cd include; gmake clean
gmake[2]: Entering directory '/usr/src/GrobiSource/source/liblua/include'
gmake[2]: Nothing to be done for 'clean'.
gmake[2]: Leaving directory '/usr/src/GrobiSource/source/liblua/include'
cd src; gmake clean
gmake[2]: Entering directory '/usr/src/GrobiSource/source/liblua/src'
rm -f lapi.o lcode.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o ltests.o ltm.o lundump.o lvm.o lzio.o ../lib/liblua.a
gmake[2]: Leaving directory '/usr/src/GrobiSource/source/liblua/src'
cd src/lib; gmake clean
gmake[2]: Entering directory '/usr/src/GrobiSource/source/liblua/src/lib'
rm -f lauxlib.o lbaselib.o ldblib.o liolib.o lmathlib.o ltablib.o lstrlib.o loadlib.o ../../lib/liblualib.a
gmake[2]: Leaving directory '/usr/src/GrobiSource/source/liblua/src/lib'
gmake[1]: Leaving directory '/usr/src/GrobiSource/source/liblua'
gmake -C liblua
gmake[1]: Entering directory '/usr/src/GrobiSource/source/liblua'
cd include; gmake all
gmake[2]: Entering directory '/usr/src/GrobiSource/source/liblua/include'
gmake[2]: Nothing to be done for 'all'.
gmake[2]: Leaving directory '/usr/src/GrobiSource/source/liblua/include'
cd src; gmake all
gmake[2]: Entering directory '/usr/src/GrobiSource/source/liblua/src'
gcc -O2 -w -g -Wall -I../include      -c -o lapi.o lapi.c
gcc -O2 -w -g -Wall -I../include      -c -o lcode.o lcode.c
gcc -O2 -w -g -Wall -I../include      -c -o ldebug.o ldebug.c
gcc -O2 -w -g -Wall -I../include      -c -o ldo.o ldo.c
gcc -O2 -w -g -Wall -I../include      -c -o ldump.o ldump.c
gcc -O2 -w -g -Wall -I../include      -c -o lfunc.o lfunc.c
gcc -O2 -w -g -Wall -I../include      -c -o lgc.o lgc.c
gcc -O2 -w -g -Wall -I../include      -c -o llex.o llex.c
gcc -O2 -w -g -Wall -I../include      -c -o lmem.o lmem.c
gcc -O2 -w -g -Wall -I../include      -c -o lobject.o lobject.c
gcc -O2 -w -g -Wall -I../include      -c -o lopcodes.o lopcodes.c
gcc -O2 -w -g -Wall -I../include      -c -o lparser.o lparser.c
gcc -O2 -w -g -Wall -I../include      -c -o lstate.o lstate.c
gcc -O2 -w -g -Wall -I../include      -c -o lstring.o lstring.c
gcc -O2 -w -g -Wall -I../include      -c -o ltable.o ltable.c
gcc -O2 -w -g -Wall -I../include      -c -o ltests.o ltests.c
gcc -O2 -w -g -Wall -I../include      -c -o ltm.o ltm.c
gcc -O2 -w -g -Wall -I../include      -c -o lundump.o lundump.c
gcc -O2 -w -g -Wall -I../include      -c -o lvm.o lvm.c
gcc -O2 -w -g -Wall -I../include      -c -o lzio.o lzio.c
if [ ! -d ../lib ]; then mkdir ; fi
ar rcu ../lib/liblua.a lapi.o lcode.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o ltests.o ltm.o lundump.o lvm.o lzio.o
ranlib ../lib/liblua.a
gmake[2]: Leaving directory '/usr/src/GrobiSource/source/liblua/src'
cd src/lib; gmake all
gmake[2]: Entering directory '/usr/src/GrobiSource/source/liblua/src/lib'
gcc -O2 -w -g -Wall -I../../include         -c -o lauxlib.o lauxlib.c
gcc -O2 -w -g -Wall -I../../include         -c -o lbaselib.o lbaselib.c
gcc -O2 -w -g -Wall -I../../include         -c -o ldblib.o ldblib.c
gcc -O2 -w -g -Wall -I../../include         -c -o liolib.o liolib.c
gcc -O2 -w -g -Wall -I../../include         -c -o lmathlib.o lmathlib.c
gcc -O2 -w -g -Wall -I../../include         -c -o ltablib.o ltablib.c
gcc -O2 -w -g -Wall -I../../include         -c -o lstrlib.o lstrlib.c
gcc -O2 -w -g -Wall -I../../include         -c -o loadlib.o loadlib.c
ar rcu ../../lib/liblualib.a lauxlib.o lbaselib.o ldblib.o liolib.o lmathlib.o ltablib.o lstrlib.o loadlib.o
ranlib ../../lib/liblualib.a
gmake[2]: Leaving directory '/usr/src/GrobiSource/source/liblua/src/lib'
gmake[1]: Leaving directory '/usr/src/GrobiSource/source/liblua'
gmake -C libsql dep
gmake[1]: Entering directory '/usr/src/GrobiSource/source/libsql'
touch Depend
g++ -I../../Extern/include/mysql -Wall -O2 -w -pipe -mtune=i686 -D_THREAD_SAFE -fno-exceptions  -MM *.cpp > Depend
gmake[1]: Leaving directory '/usr/src/GrobiSource/source/libsql'
gmake -C libsql clean
gmake[1]: Entering directory '/usr/src/GrobiSource/source/libsql'
rm -f *.o
rm -f ./libsql.a
gmake[1]: Leaving directory '/usr/src/GrobiSource/source/libsql'
gmake -C libsql
gmake[1]: Entering directory '/usr/src/GrobiSource/source/libsql'
gmake ./libsql.a
gmake[2]: Entering directory '/usr/src/GrobiSource/source/libsql'
g++ -I../../Extern/include/mysql -Wall -O2 -w -pipe -mtune=i686 -D_THREAD_SAFE -fno-exceptions  -c AsyncSQL.cpp
g++ -I../../Extern/include/mysql -Wall -O2 -w -pipe -mtune=i686 -D_THREAD_SAFE -fno-exceptions  -c Semaphore.cpp
g++ -I../../Extern/include/mysql -Wall -O2 -w -pipe -mtune=i686 -D_THREAD_SAFE -fno-exceptions  -c Tellwait.cpp
g++ -I../../Extern/include/mysql -Wall -O2 -w -pipe -mtune=i686 -D_THREAD_SAFE -fno-exceptions  -c Statement.cpp
ar cru ./libsql.a AsyncSQL.o Semaphore.o Tellwait.o Statement.o
ranlib ./libsql.a
chmod 700 ./libsql.a
gmake[2]: Leaving directory '/usr/src/GrobiSource/source/libsql'
gmake[1]: Leaving directory '/usr/src/GrobiSource/source/libsql'
gmake -C libgame/src dep
gmake[1]: Entering directory '/usr/src/GrobiSource/source/libgame/src'
touch Depend
g++ -Wall -O2 -w -pipe -mcpu=i686 -fno-exceptions -I../include -MM *.cc > Depend
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
gmake[1]: Leaving directory '/usr/src/GrobiSource/source/libgame/src'
gmake -C libgame/src clean
gmake[1]: Entering directory '/usr/src/GrobiSource/source/libgame/src'
rm -f *.o
rm -f ../lib/libgame.a
gmake[1]: Leaving directory '/usr/src/GrobiSource/source/libgame/src'
gmake -C libgame/src
gmake[1]: Entering directory '/usr/src/GrobiSource/source/libgame/src'
gmake ../lib/libgame.a
gmake[2]: Entering directory '/usr/src/GrobiSource/source/libgame/src'
g++ -Wall -O2 -w -pipe -mcpu=i686 -fno-exceptions -I../include -c grid.cc
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++ -Wall -O2 -w -pipe -mcpu=i686 -fno-exceptions -I../include -c attribute.cc
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++ -Wall -O2 -w -pipe -mcpu=i686 -fno-exceptions -I../include -c targa.cc
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
if [ ! -d ../lib ]; then mkdir ../lib; fi
ar cru ../lib/libgame.a grid.o attribute.o targa.o
ranlib ../lib/libgame.a
chmod 700 ../lib/libgame.a
gmake[2]: Leaving directory '/usr/src/GrobiSource/source/libgame/src'
gmake[1]: Leaving directory '/usr/src/GrobiSource/source/libgame/src'
gmake -C libpoly dep
gmake[1]: Entering directory '/usr/src/GrobiSource/source/libpoly'
touch Depend
g++ -Wall -O2 -w -pipe -mcpu=i686 -fno-exceptions -fno-rtti -MM *.cc > Depend
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
gmake[1]: Leaving directory '/usr/src/GrobiSource/source/libpoly'
gmake -C libpoly clean
gmake[1]: Entering directory '/usr/src/GrobiSource/source/libpoly'
rm -f *.o
rm -f ./libpoly.a
gmake[1]: Leaving directory '/usr/src/GrobiSource/source/libpoly'
gmake -C libpoly
gmake[1]: Entering directory '/usr/src/GrobiSource/source/libpoly'
gmake ./libpoly.a
gmake[2]: Entering directory '/usr/src/GrobiSource/source/libpoly'
g++ -Wall -O2 -w -pipe -mcpu=i686 -fno-exceptions -fno-rtti -c Base.cc
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++ -Wall -O2 -w -pipe -mcpu=i686 -fno-exceptions -fno-rtti -c Poly.cc
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++ -Wall -O2 -w -pipe -mcpu=i686 -fno-exceptions -fno-rtti -c SymTable.cc
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++ -Wall -O2 -w -pipe -mcpu=i686 -fno-exceptions -fno-rtti -c Symbol.cc
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
ar cru ./libpoly.a Base.o Poly.o SymTable.o Symbol.o
ranlib ./libpoly.a
chmod 700 ./libpoly.a
gmake[2]: Leaving directory '/usr/src/GrobiSource/source/libpoly'
gmake[1]: Leaving directory '/usr/src/GrobiSource/source/libpoly'
gmake -C libthecore/src dep
gmake[1]: Entering directory '/usr/src/GrobiSource/source/libthecore/src'
g++ -Wall -O2 -w -pipe -mcpu=i686 -g -I../include -MM *.c > Depend
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
gmake[1]: Leaving directory '/usr/src/GrobiSource/source/libthecore/src'
gmake -C libthecore/src clean
gmake[1]: Entering directory '/usr/src/GrobiSource/source/libthecore/src'
rm -f *.o
rm -f ../lib/libthecore.a
gmake[1]: Leaving directory '/usr/src/GrobiSource/source/libthecore/src'
gmake -C libthecore/src
gmake[1]: Entering directory '/usr/src/GrobiSource/source/libthecore/src'
gmake ../lib/libthecore.a
gmake[2]: Entering directory '/usr/src/GrobiSource/source/libthecore/src'
g++ -Wall -O2 -w -pipe -mcpu=i686 -g -I../include -c socket.c
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++ -Wall -O2 -w -pipe -mcpu=i686 -g -I../include -c fdwatch.c
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++ -Wall -O2 -w -pipe -mcpu=i686 -g -I../include -c buffer.c
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++ -Wall -O2 -w -pipe -mcpu=i686 -g -I../include -c signal.c
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++ -Wall -O2 -w -pipe -mcpu=i686 -g -I../include -c log.c
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++ -Wall -O2 -w -pipe -mcpu=i686 -g -I../include -c utils.c
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++ -Wall -O2 -w -pipe -mcpu=i686 -g -I../include -c kstbl.c
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++ -Wall -O2 -w -pipe -mcpu=i686 -g -I../include -c hangul.c
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++ -Wall -O2 -w -pipe -mcpu=i686 -g -I../include -c heart.c
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++ -Wall -O2 -w -pipe -mcpu=i686 -g -I../include -c main.c
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++ -Wall -O2 -w -pipe -mcpu=i686 -g -I../include -c tea.c
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++ -Wall -O2 -w -pipe -mcpu=i686 -g -I../include -c des.c
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++ -Wall -O2 -w -pipe -mcpu=i686 -g -I../include -c gost.c
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++ -Wall -O2 -w -pipe -mcpu=i686 -g -I../include -c memcpy.c
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
if [ ! -d ../lib ]; then mkdir ../lib; fi
ar cru ../lib/libthecore.a socket.o fdwatch.o buffer.o signal.o log.o utils.o kstbl.o hangul.o heart.o main.o tea.o des.o gost.o memcpy.o
ranlib ../lib/libthecore.a
chmod 700 ../lib/libthecore.a
gmake[2]: Leaving directory '/usr/src/GrobiSource/source/libthecore/src'
gmake[1]: Leaving directory '/usr/src/GrobiSource/source/libthecore/src'
gmake -C game/src dep
gmake[1]: Entering directory '/usr/src/GrobiSource/source/game/src'
makedepend -f Depend  -I../../../Extern/include/boost -I../../../Extern/include/devil -I../../../Extern/include/mysql -I../../../Extern/include/hackshield -I../../../Extern/include/xtrap -I../../../Extern/include -I../../liblua/include -I/usr/include/c++/3.3 -I/usr/include/c++/4.2 -pOBJDIR/ BattleArena.cpp FSM.cpp MarkConvert.cpp MarkImage.cpp MarkManager.cpp OXEvent.cpp TrafficProfiler.cpp ani.cpp arena.cpp banword.cpp battle.cpp blend_item.cpp block_country.cpp buffer_manager.cpp building.cpp castle.cpp char.cpp char_affect.cpp char_battle.cpp char_change_empire.cpp char_horse.cpp char_item.cpp char_manager.cpp char_quickslot.cpp char_resist.cpp char_skill.cpp char_state.cpp PetSystem.cpp cmd.cpp cmd_emotion.cpp cmd_general.cpp cmd_gm.cpp cmd_oxevent.cpp config.cpp constants.cpp crc32.cpp cube.cpp db.cpp desc.cpp desc_client.cpp desc_manager.cpp desc_p2p.cpp dev_log.cpp dungeon.cpp empire_text_convert.cpp entity.cpp entity_view.cpp event.cpp event_queue.cpp exchange.cpp file_loader.cpp fishing.cpp gm.cpp guild.cpp guild_manager.cpp guild_war.cpp horse_rider.cpp horsename_manager.cpp input.cpp input_auth.cpp input_db.cpp input_login.cpp input_main.cpp input_p2p.cpp input_teen.cpp input_udp.cpp ip_ban.cpp item.cpp item_addon.cpp item_attribute.cpp item_manager.cpp item_manager_idrange.cpp locale.cpp locale_service.cpp log.cpp login_data.cpp lzo_manager.cpp marriage.cpp matrix_card.cpp messenger_manager.cpp mining.cpp mob_manager.cpp monarch.cpp motion.cpp over9refine.cpp p2p.cpp packet_info.cpp party.cpp passpod.cpp pcbang.cpp polymorph.cpp priv_manager.cpp pvp.cpp questevent.cpp questlua.cpp questlua_affect.cpp questlua_arena.cpp questlua_ba.cpp questlua_building.cpp questlua_danceevent.cpp questlua_dungeon.cpp questlua_forked.cpp questlua_game.cpp questlua_global.cpp questlua_guild.cpp questlua_horse.cpp questlua_pet.cpp questlua_item.cpp questlua_marriage.cpp questlua_mgmt.cpp questlua_monarch.cpp questlua_npc.cpp questlua_oxevent.cpp questlua_party.cpp questlua_pc.cpp questlua_quest.cpp questlua_target.cpp questmanager.cpp questnpc.cpp questpc.cpp refine.cpp regen.cpp safebox.cpp sectree.cpp sectree_manager.cpp sequence.cpp shop.cpp skill.cpp start_position.cpp target.cpp text_file_loader.cpp trigger.cpp utils.cpp vector.cpp war_map.cpp wedding.cpp xmas_event.cpp version.cpp panama.cpp threeway_war.cpp map_location.cpp auth_brazil.cpp BlueDragon.cpp BlueDragon_Binder.cpp DragonLair.cpp questlua_dragonlair.cpp HackShield.cpp HackShield_Impl.cpp char_hackshield.cpp skill_power.cpp affect.cpp SpeedServer.cpp questlua_speedserver.cpp XTrapManager.cpp auction_manager.cpp FileMonitor_FreeBSD.cpp ClientPackageCryptInfo.cpp cipher.cpp buff_on_attributes.cpp dragon_soul_table.cpp DragonSoul.cpp group_text_parse_tree.cpp char_dragonsoul.cpp questlua_dragonsoul.cpp shop_manager.cpp shopEx.cpp item_manager_read_tables.cpp minilzo.c main.cpp test.cpp 2> /dev/null > Depend
gmake[1]: Leaving directory '/usr/src/GrobiSource/source/game/src'
gmake -C game/src clean
gmake[1]: Entering directory '/usr/src/GrobiSource/source/game/src'
gmake[1]: Leaving directory '/usr/src/GrobiSource/source/game/src'
gmake -C game/src
gmake[1]: Entering directory '/usr/src/GrobiSource/source/game/src'
compile BattleArena.cpp
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
In file included from ../../../Extern/include/boost/functional/hash/hash.hpp:494,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:17,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from BattleArena.cpp:6:
../../../Extern/include/boost/functional/hash/extensions.hpp:38:33: error: 'template<class T, class A> std::size_t boost::hash_value' redeclared as different kind of entity
   38 |     std::size_t hash_value(std::list<T, A> const& v);
      |                                 ^~~~
In file included from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:17,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from BattleArena.cpp:6:
../../../Extern/include/boost/functional/hash/hash.hpp:307:24: note: previous declaration 'std::size_t boost::hash_value(long double)'
  307 |     inline std::size_t hash_value(long double v)
      |                        ^~~~~~~~~~
In file included from ../../../Extern/include/boost/functional/hash/hash.hpp:494,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:17,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from BattleArena.cpp:6:
../../../Extern/include/boost/functional/hash/extensions.hpp:38:33: error: reference to 'list' is ambiguous
   38 |     std::size_t hash_value(std::list<T, A> const& v);
      |                                 ^~~~
In file included from /usr/local/lib/gcc9/include/c++/list:63,
                 from stdafx.h:17,
                 from BattleArena.cpp:1:
/usr/local/lib/gcc9/include/c++/bits/stl_list.h:552:11: note: candidates are: 'template<class _Tp, class _Alloc> class std::__cxx11::list'
  552 |     class list : protected _List_base<_Tp, _Alloc>
      |           ^~~~
In file included from ../../../Extern/include/boost/functional/hash/extensions.hpp:17,
                 from ../../../Extern/include/boost/functional/hash/hash.hpp:494,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:17,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from BattleArena.cpp:6:
../../../Extern/include/boost/detail/container_fwd.hpp:81:47: note:                 'template<class T, class Allocator> class std::list'
   81 |     template <class T, class Allocator> class list;
      |                                               ^~~~
In file included from ../../../Extern/include/boost/functional/hash/hash.hpp:494,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:17,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from BattleArena.cpp:6:
../../../Extern/include/boost/functional/hash/extensions.hpp:38:39: error: expected primary-expression before ',' token
   38 |     std::size_t hash_value(std::list<T, A> const& v);
      |                                       ^
../../../Extern/include/boost/functional/hash/extensions.hpp:38:42: error: expected primary-expression before '>' token
   38 |     std::size_t hash_value(std::list<T, A> const& v);
      |                                          ^
../../../Extern/include/boost/functional/hash/extensions.hpp:38:44: error: expected primary-expression before 'const'
   38 |     std::size_t hash_value(std::list<T, A> const& v);
      |                                            ^~~~~
../../../Extern/include/boost/functional/hash/extensions.hpp:69:33: error: 'template<class T, class A> std::size_t boost::hash_value' redeclared as different kind of entity
   69 |     std::size_t hash_value(std::list<T, A> const& v)
      |                                 ^~~~
In file included from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:17,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from BattleArena.cpp:6:
../../../Extern/include/boost/functional/hash/hash.hpp:307:24: note: previous declaration 'std::size_t boost::hash_value(long double)'
  307 |     inline std::size_t hash_value(long double v)
      |                        ^~~~~~~~~~
In file included from ../../../Extern/include/boost/functional/hash/hash.hpp:494,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:17,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from BattleArena.cpp:6:
../../../Extern/include/boost/functional/hash/extensions.hpp:69:33: error: reference to 'list' is ambiguous
   69 |     std::size_t hash_value(std::list<T, A> const& v)
      |                                 ^~~~
In file included from /usr/local/lib/gcc9/include/c++/list:63,
                 from stdafx.h:17,
                 from BattleArena.cpp:1:
/usr/local/lib/gcc9/include/c++/bits/stl_list.h:552:11: note: candidates are: 'template<class _Tp, class _Alloc> class std::__cxx11::list'
  552 |     class list : protected _List_base<_Tp, _Alloc>
      |           ^~~~
In file included from ../../../Extern/include/boost/functional/hash/extensions.hpp:17,
                 from ../../../Extern/include/boost/functional/hash/hash.hpp:494,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:17,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from BattleArena.cpp:6:
../../../Extern/include/boost/detail/container_fwd.hpp:81:47: note:                 'template<class T, class Allocator> class std::list'
   81 |     template <class T, class Allocator> class list;
      |                                               ^~~~
In file included from ../../../Extern/include/boost/functional/hash/hash.hpp:494,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:17,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from BattleArena.cpp:6:
../../../Extern/include/boost/functional/hash/extensions.hpp:69:39: error: expected primary-expression before ',' token
   69 |     std::size_t hash_value(std::list<T, A> const& v)
      |                                       ^
../../../Extern/include/boost/functional/hash/extensions.hpp:69:42: error: expected primary-expression before '>' token
   69 |     std::size_t hash_value(std::list<T, A> const& v)
      |                                          ^
../../../Extern/include/boost/functional/hash/extensions.hpp:69:44: error: expected primary-expression before 'const'
   69 |     std::size_t hash_value(std::list<T, A> const& v)
      |                                            ^~~~~
In file included from /usr/local/lib/gcc9/include/c++/bits/ios_base.h:41,
                 from /usr/local/lib/gcc9/include/c++/ios:42,
                 from /usr/local/lib/gcc9/include/c++/ostream:38,
                 from /usr/local/lib/gcc9/include/c++/iterator:64,
                 from ../../../Extern/include/boost/detail/iterator.hpp:54,
                 from ../../../Extern/include/boost/iterator/iterator_categories.hpp:10,
                 from ../../../Extern/include/boost/unordered/detail/table.hpp:14,
                 from ../../../Extern/include/boost/unordered/detail/equivalent.hpp:10,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:19,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from BattleArena.cpp:6:
/usr/local/lib/gcc9/include/c++/bits/locale_classes.h:284:24: error: reference to 'basic_string' is ambiguous
  284 |       operator()(const basic_string<_Char, _Traits, _Alloc>& __s1,
      |                        ^~~~~~~~~~~~
In file included from /usr/local/lib/gcc9/include/c++/string:39,
                 from /usr/local/lib/gcc9/include/c++/stdexcept:39,
                 from /usr/local/lib/gcc9/include/c++/array:39,
                 from /usr/local/lib/gcc9/include/c++/tuple:39,
                 from /usr/local/lib/gcc9/include/c++/bits/stl_map.h:63,
                 from /usr/local/lib/gcc9/include/c++/map:61,
                 from stdafx.h:18,
                 from BattleArena.cpp:1:
/usr/local/lib/gcc9/include/c++/bits/stringfwd.h:74:11: note: candidates are: 'template<class _CharT, class _Traits, class _Alloc> class std::__cxx11::basic_string'
   74 |     class basic_string;
      |           ^~~~~~~~~~~~
In file included from ../../../Extern/include/boost/functional/hash/extensions.hpp:17,
                 from ../../../Extern/include/boost/functional/hash/hash.hpp:494,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:17,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from BattleArena.cpp:6:
../../../Extern/include/boost/detail/container_fwd.hpp:63:65: note:                 'template<class charT, class traits, class Allocator> class std::basic_string'
   63 |     template <class charT, class traits, class Allocator> class basic_string;
      |                                                                 ^~~~~~~~~~~~
In file included from /usr/local/lib/gcc9/include/c++/bits/ios_base.h:41,
                 from /usr/local/lib/gcc9/include/c++/ios:42,
                 from /usr/local/lib/gcc9/include/c++/ostream:38,
                 from /usr/local/lib/gcc9/include/c++/iterator:64,
                 from ../../../Extern/include/boost/detail/iterator.hpp:54,
                 from ../../../Extern/include/boost/iterator/iterator_categories.hpp:10,
                 from ../../../Extern/include/boost/unordered/detail/table.hpp:14,
                 from ../../../Extern/include/boost/unordered/detail/equivalent.hpp:10,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:19,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from BattleArena.cpp:6:
/usr/local/lib/gcc9/include/c++/bits/locale_classes.h:284:36: error: expected ',' or '...' before '<' token
  284 |       operator()(const basic_string<_Char, _Traits, _Alloc>& __s1,
      |                                    ^
In file included from /usr/local/lib/gcc9/include/c++/bits/locale_classes.h:851,
                 from /usr/local/lib/gcc9/include/c++/bits/ios_base.h:41,
                 from /usr/local/lib/gcc9/include/c++/ios:42,
                 from /usr/local/lib/gcc9/include/c++/ostream:38,
                 from /usr/local/lib/gcc9/include/c++/iterator:64,
                 from ../../../Extern/include/boost/detail/iterator.hpp:54,
                 from ../../../Extern/include/boost/iterator/iterator_categories.hpp:10,
                 from ../../../Extern/include/boost/unordered/detail/table.hpp:14,
                 from ../../../Extern/include/boost/unordered/detail/equivalent.hpp:10,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:19,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from BattleArena.cpp:6:
/usr/local/lib/gcc9/include/c++/bits/locale_classes.tcc:81:22: error: reference to 'basic_string' is ambiguous
   81 |     operator()(const basic_string<_CharT, _Traits, _Alloc>& __s1,
      |                      ^~~~~~~~~~~~
In file included from /usr/local/lib/gcc9/include/c++/string:39,
                 from /usr/local/lib/gcc9/include/c++/stdexcept:39,
                 from /usr/local/lib/gcc9/include/c++/array:39,
                 from /usr/local/lib/gcc9/include/c++/tuple:39,
                 from /usr/local/lib/gcc9/include/c++/bits/stl_map.h:63,
                 from /usr/local/lib/gcc9/include/c++/map:61,
                 from stdafx.h:18,
                 from BattleArena.cpp:1:
/usr/local/lib/gcc9/include/c++/bits/stringfwd.h:74:11: note: candidates are: 'template<class _CharT, class _Traits, class _Alloc> class std::__cxx11::basic_string'
   74 |     class basic_string;
      |           ^~~~~~~~~~~~
In file included from ../../../Extern/include/boost/functional/hash/extensions.hpp:17,
                 from ../../../Extern/include/boost/functional/hash/hash.hpp:494,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:17,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from BattleArena.cpp:6:
../../../Extern/include/boost/detail/container_fwd.hpp:63:65: note:                 'template<class charT, class traits, class Allocator> class std::basic_string'
   63 |     template <class charT, class traits, class Allocator> class basic_string;
      |                                                                 ^~~~~~~~~~~~
In file included from /usr/local/lib/gcc9/include/c++/bits/locale_classes.h:851,
                 from /usr/local/lib/gcc9/include/c++/bits/ios_base.h:41,
                 from /usr/local/lib/gcc9/include/c++/ios:42,
                 from /usr/local/lib/gcc9/include/c++/ostream:38,
                 from /usr/local/lib/gcc9/include/c++/iterator:64,
                 from ../../../Extern/include/boost/detail/iterator.hpp:54,
                 from ../../../Extern/include/boost/iterator/iterator_categories.hpp:10,
                 from ../../../Extern/include/boost/unordered/detail/table.hpp:14,
                 from ../../../Extern/include/boost/unordered/detail/equivalent.hpp:10,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:19,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from BattleArena.cpp:6:
/usr/local/lib/gcc9/include/c++/bits/locale_classes.tcc:81:34: error: expected ',' or '...' before '<' token
   81 |     operator()(const basic_string<_CharT, _Traits, _Alloc>& __s1,
      |                                  ^
/usr/local/lib/gcc9/include/c++/bits/locale_classes.tcc: In member function 'bool std::locale::operator()(int) const':
/usr/local/lib/gcc9/include/c++/bits/locale_classes.tcc:86:33: error: '__s1' was not declared in this scope
   86 |       return (__collate.compare(__s1.data(), __s1.data() + __s1.length(),
      |                                 ^~~~
/usr/local/lib/gcc9/include/c++/bits/locale_classes.tcc:87:5: error: '__s2' was not declared in this scope
   87 |     __s2.data(), __s2.data() + __s2.length()) < 0);
      |     ^~~~
In file included from /usr/local/lib/gcc9/include/c++/ios:43,
                 from /usr/local/lib/gcc9/include/c++/ostream:38,
                 from /usr/local/lib/gcc9/include/c++/iterator:64,
                 from ../../../Extern/include/boost/detail/iterator.hpp:54,
                 from ../../../Extern/include/boost/iterator/iterator_categories.hpp:10,
                 from ../../../Extern/include/boost/unordered/detail/table.hpp:14,
                 from ../../../Extern/include/boost/unordered/detail/equivalent.hpp:10,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:19,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from BattleArena.cpp:6:
/usr/local/lib/gcc9/include/c++/streambuf: At global scope:
/usr/local/lib/gcc9/include/c++/streambuf:176:6: error: reference to 'basic_string' is ambiguous
  176 |      basic_string<_CharT2, _Traits2, _Alloc>&);
      |      ^~~~~~~~~~~~
In file included from /usr/local/lib/gcc9/include/c++/string:39,
                 from /usr/local/lib/gcc9/include/c++/stdexcept:39,
                 from /usr/local/lib/gcc9/include/c++/array:39,
                 from /usr/local/lib/gcc9/include/c++/tuple:39,
                 from /usr/local/lib/gcc9/include/c++/bits/stl_map.h:63,
                 from /usr/local/lib/gcc9/include/c++/map:61,
                 from stdafx.h:18,
                 from BattleArena.cpp:1:
/usr/local/lib/gcc9/include/c++/bits/stringfwd.h:74:11: note: candidates are: 'template<class _CharT, class _Traits, class _Alloc> class std::__cxx11::basic_string'
   74 |     class basic_string;
      |           ^~~~~~~~~~~~
In file included from ../../../Extern/include/boost/functional/hash/extensions.hpp:17,
                 from ../../../Extern/include/boost/functional/hash/hash.hpp:494,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:17,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from BattleArena.cpp:6:
../../../Extern/include/boost/detail/container_fwd.hpp:63:65: note:                 'template<class charT, class traits, class Allocator> class std::basic_string'
   63 |     template <class charT, class traits, class Allocator> class basic_string;
      |                                                                 ^~~~~~~~~~~~
In file included from /usr/local/lib/gcc9/include/c++/ios:43,
                 from /usr/local/lib/gcc9/include/c++/ostream:38,
                 from /usr/local/lib/gcc9/include/c++/iterator:64,
                 from ../../../Extern/include/boost/detail/iterator.hpp:54,
                 from ../../../Extern/include/boost/iterator/iterator_categories.hpp:10,
                 from ../../../Extern/include/boost/unordered/detail/table.hpp:14,
                 from ../../../Extern/include/boost/unordered/detail/equivalent.hpp:10,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:19,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from BattleArena.cpp:6:
/usr/local/lib/gcc9/include/c++/streambuf:176:6: error: 'basic_string' has not been declared
  176 |      basic_string<_CharT2, _Traits2, _Alloc>&);
      |      ^~~~~~~~~~~~
/usr/local/lib/gcc9/include/c++/streambuf:176:18: error: expected ',' or '...' before '<' token
  176 |      basic_string<_CharT2, _Traits2, _Alloc>&);
      |                  ^
/usr/local/lib/gcc9/include/c++/streambuf:181:3: error: reference to 'basic_string' is ambiguous
  181 |   basic_string<_CharT2, _Traits2, _Alloc>&, _CharT2);
      |   ^~~~~~~~~~~~
In file included from /usr/local/lib/gcc9/include/c++/string:39,
                 from /usr/local/lib/gcc9/include/c++/stdexcept:39,
                 from /usr/local/lib/gcc9/include/c++/array:39,
                 from /usr/local/lib/gcc9/include/c++/tuple:39,
                 from /usr/local/lib/gcc9/include/c++/bits/stl_map.h:63,
                 from /usr/local/lib/gcc9/include/c++/map:61,
                 from stdafx.h:18,
                 from BattleArena.cpp:1:
/usr/local/lib/gcc9/include/c++/bits/stringfwd.h:74:11: note: candidates are: 'template<class _CharT, class _Traits, class _Alloc> class std::__cxx11::basic_string'
   74 |     class basic_string;
      |           ^~~~~~~~~~~~
In file included from ../../../Extern/include/boost/functional/hash/extensions.hpp:17,
                 from ../../../Extern/include/boost/functional/hash/hash.hpp:494,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:17,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from BattleArena.cpp:6:
../../../Extern/include/boost/detail/container_fwd.hpp:63:65: note:                 'template<class charT, class traits, class Allocator> class std::basic_string'
   63 |     template <class charT, class traits, class Allocator> class basic_string;
      |                                                                 ^~~~~~~~~~~~
In file included from /usr/local/lib/gcc9/include/c++/ios:43,
                 from /usr/local/lib/gcc9/include/c++/ostream:38,
                 from /usr/local/lib/gcc9/include/c++/iterator:64,
                 from ../../../Extern/include/boost/detail/iterator.hpp:54,
                 from ../../../Extern/include/boost/iterator/iterator_categories.hpp:10,
                 from ../../../Extern/include/boost/unordered/detail/table.hpp:14,
                 from ../../../Extern/include/boost/unordered/detail/equivalent.hpp:10,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:19,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from BattleArena.cpp:6:
/usr/local/lib/gcc9/include/c++/streambuf:181:3: error: 'basic_string' has not been declared
  181 |   basic_string<_CharT2, _Traits2, _Alloc>&, _CharT2);
      |   ^~~~~~~~~~~~
/usr/local/lib/gcc9/include/c++/streambuf:181:15: error: expected ',' or '...' before '<' token
  181 |   basic_string<_CharT2, _Traits2, _Alloc>&, _CharT2);
      |               ^
In file included from /usr/local/lib/gcc9/include/c++/bits/locale_facets.h:2655,
                 from /usr/local/lib/gcc9/include/c++/bits/basic_ios.h:37,
                 from /usr/local/lib/gcc9/include/c++/ios:44,
                 from /usr/local/lib/gcc9/include/c++/ostream:38,
                 from /usr/local/lib/gcc9/include/c++/iterator:64,
                 from ../../../Extern/include/boost/detail/iterator.hpp:54,
                 from ../../../Extern/include/boost/iterator/iterator_categories.hpp:10,
                 from ../../../Extern/include/boost/unordered/detail/table.hpp:14,
                 from ../../../Extern/include/boost/unordered/detail/equivalent.hpp:10,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:19,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from BattleArena.cpp:6:
/usr/local/lib/gcc9/include/c++/bits/locale_facets.tcc: In member function 'void std::__numpunct_cache<_CharT>::_M_cache(const std::locale&)':
/usr/local/lib/gcc9/include/c++/bits/locale_facets.tcc:96:10: error: reference to 'basic_string' is ambiguous
   96 |    const basic_string<_CharT>& __tn = __np.truename();
      |          ^~~~~~~~~~~~
In file included from /usr/local/lib/gcc9/include/c++/string:39,
                 from /usr/local/lib/gcc9/include/c++/stdexcept:39,
                 from /usr/local/lib/gcc9/include/c++/array:39,
                 from /usr/local/lib/gcc9/include/c++/tuple:39,
                 from /usr/local/lib/gcc9/include/c++/bits/stl_map.h:63,
                 from /usr/local/lib/gcc9/include/c++/map:61,
                 from stdafx.h:18,
                 from BattleArena.cpp:1:
/usr/local/lib/gcc9/include/c++/bits/stringfwd.h:74:11: note: candidates are: 'template<class _CharT, class _Traits, class _Alloc> class std::__cxx11::basic_string'
   74 |     class basic_string;
      |           ^~~~~~~~~~~~
In file included from ../../../Extern/include/boost/functional/hash/extensions.hpp:17,
                 from ../../../Extern/include/boost/functional/hash/hash.hpp:494,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:17,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from BattleArena.cpp:6:
../../../Extern/include/boost/detail/container_fwd.hpp:63:65: note:                 'template<class charT, class traits, class Allocator> class std::basic_string'
   63 |     template <class charT, class traits, class Allocator> class basic_string;
      |                                                                 ^~~~~~~~~~~~
In file included from /usr/local/lib/gcc9/include/c++/bits/locale_facets.h:2655,
                 from /usr/local/lib/gcc9/include/c++/bits/basic_ios.h:37,
                 from /usr/local/lib/gcc9/include/c++/ios:44,
                 from /usr/local/lib/gcc9/include/c++/ostream:38,
                 from /usr/local/lib/gcc9/include/c++/iterator:64,
                 from ../../../Extern/include/boost/detail/iterator.hpp:54,
                 from ../../../Extern/include/boost/iterator/iterator_categories.hpp:10,
                 from ../../../Extern/include/boost/unordered/detail/table.hpp:14,
                 from ../../../Extern/include/boost/unordered/detail/equivalent.hpp:10,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:19,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from BattleArena.cpp:6:
/usr/local/lib/gcc9/include/c++/bits/locale_facets.tcc:97:23: error: '__tn' was not declared in this scope
   97 |    _M_truename_size = __tn.size();
      |                       ^~~~
/usr/local/lib/gcc9/include/c++/bits/locale_facets.tcc:101:10: error: reference to 'basic_string' is ambiguous
  101 |    const basic_string<_CharT>& __fn = __np.falsename();
      |          ^~~~~~~~~~~~
In file included from /usr/local/lib/gcc9/include/c++/string:39,
                 from /usr/local/lib/gcc9/include/c++/stdexcept:39,
                 from /usr/local/lib/gcc9/include/c++/array:39,
                 from /usr/local/lib/gcc9/include/c++/tuple:39,
                 from /usr/local/lib/gcc9/include/c++/bits/stl_map.h:63,
                 from /usr/local/lib/gcc9/include/c++/map:61,
                 from stdafx.h:18,
                 from BattleArena.cpp:1:
/usr/local/lib/gcc9/include/c++/bits/stringfwd.h:74:11: note: candidates are: 'template<class _CharT, class _Traits, class _Alloc> class std::__cxx11::basic_string'
   74 |     class basic_string;
      |           ^~~~~~~~~~~~
In file included from ../../../Extern/include/boost/functional/hash/extensions.hpp:17,
                 from ../../../Extern/include/boost/functional/hash/hash.hpp:494,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:17,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from BattleArena.cpp:6:
../../../Extern/include/boost/detail/container_fwd.hpp:63:65: note:                 'template<class charT, class traits, class Allocator> class std::basic_string'
   63 |     template <class charT, class traits, class Allocator> class basic_string;
      |                                                                 ^~~~~~~~~~~~
In file included from /usr/local/lib/gcc9/include/c++/bits/locale_facets.h:2655,
                 from /usr/local/lib/gcc9/include/c++/bits/basic_ios.h:37,
                 from /usr/local/lib/gcc9/include/c++/ios:44,
                 from /usr/local/lib/gcc9/include/c++/ostream:38,
                 from /usr/local/lib/gcc9/include/c++/iterator:64,
                 from ../../../Extern/include/boost/detail/iterator.hpp:54,
                 from ../../../Extern/include/boost/iterator/iterator_categories.hpp:10,
                 from ../../../Extern/include/boost/unordered/detail/table.hpp:14,
                 from ../../../Extern/include/boost/unordered/detail/equivalent.hpp:10,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:19,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from BattleArena.cpp:6:
/usr/local/lib/gcc9/include/c++/bits/locale_facets.tcc:102:24: error: '__fn' was not declared in this scope
  102 |    _M_falsename_size = __fn.size();
      |                        ^~~~
In file included from BattleArena.cpp:6:
char.h: At global scope:
char.h:916:9: error: reference to 'list' is ambiguous
  916 |   const std::list<CAffect *> & GetAffectContainer() const { return m_list_pkAffect; }
      |         ^~~
In file included from /usr/local/lib/gcc9/include/c++/list:63,
                 from stdafx.h:17,
                 from BattleArena.cpp:1:
/usr/local/lib/gcc9/include/c++/bits/stl_list.h:552:11: note: candidates are: 'template<class _Tp, class _Alloc> class std::__cxx11::list'
  552 |     class list : protected _List_base<_Tp, _Alloc>
      |           ^~~~
In file included from ../../../Extern/include/boost/functional/hash/extensions.hpp:17,
                 from ../../../Extern/include/boost/functional/hash/hash.hpp:494,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:17,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from BattleArena.cpp:6:
../../../Extern/include/boost/detail/container_fwd.hpp:81:47: note:                 'template<class T, class Allocator> class std::list'
   81 |     template <class T, class Allocator> class list;
      |                                               ^~~~
In file included from BattleArena.cpp:6:
char.h:922:3: error: reference to 'list' is ambiguous
  922 |   std::list<CAffect *> m_list_pkAffect;
      |   ^~~
In file included from /usr/local/lib/gcc9/include/c++/list:63,
                 from stdafx.h:17,
                 from BattleArena.cpp:1:
/usr/local/lib/gcc9/include/c++/bits/stl_list.h:552:11: note: candidates are: 'template<class _Tp, class _Alloc> class std::__cxx11::list'
  552 |     class list : protected _List_base<_Tp, _Alloc>
      |           ^~~~
In file included from ../../../Extern/include/boost/functional/hash/extensions.hpp:17,
                 from ../../../Extern/include/boost/functional/hash/hash.hpp:494,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:17,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from BattleArena.cpp:6:
../../../Extern/include/boost/detail/container_fwd.hpp:81:47: note:                 'template<class T, class Allocator> class std::list'
   81 |     template <class T, class Allocator> class list;
      |                                               ^~~~
gmake[1]: *** [Makefile:120: OBJDIR/BattleArena.o] Error 1
gmake[1]: Leaving directory '/usr/src/GrobiSource/source/game/src'
gmake: *** [Makefile:77: all] Error 2
bu syserr i çıkartıyor karşıma sebebini anlamadım
 
"CC=g++48 " olarak editledikten sonra tekrar build işlemine başladım. Fakat bu seferde compile ederken makefile içerisindeki -mcpu için hata mesajı çıkartıyor.
-mcpu kaldırıldı yerine -mtune veya -march kullan diye. Hangisini kullanmalıyım
 
-mcpu'yu -mtune olarak editledikten sonra build e başladı fakat bir kısımdan sonra tekrar hataya geçti

Kod:
root@[DEV]Grobi:/usr/src/GrobiSource/Server/game/src # gmake clean
root@[DEV]Grobi:/usr/src/GrobiSource/Server/game/src # gmake -j20
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 banword.cpp
compile arena.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_battle.cpp
compile char_affect.cpp
compile char_change_empire.cpp
compile char_horse.cpp
compile char_item.cpp
compile char_manager.cpp
compile char_resist.cpp
compile char_quickslot.cpp
compile char_skill.cpp
compile char_state.cpp
compile PetSystem.cpp
compile cmd.cpp
compile cmd_emotion.cpp
g++48: internal compiler error: Killed (program cc1plus)
libbacktrace could not find executable to open
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
gmake: *** [Makefile:120: OBJDIR/char_battle.o] Error 4
gmake: *** Waiting for unfinished jobs....
 
-j4 de hata ;
Kod:
root@[DEV]Grobi:/usr/src/GrobiSource/Server/game/src # gmake -j4
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 XTrapManager.cpp
compile auction_manager.cpp
compile FileMonitor_FreeBSD.cpp
compile ClientPackageCryptInfo.cpp
compile cipher.cpp
In file included from ../../../Extern/include/cryptopp/modes.h:8:0,
                 from cipher.cpp:7:
../../../Extern/include/cryptopp/secblock.h: In instantiation of 'CryptoPP::Allo                    catorWithCleanup<T, T_Align16>::pointer CryptoPP::AllocatorWithCleanup<T, T_Alig                    n16>::allocate(CryptoPP::AllocatorWithCleanup<T, T_Align16>::size_type, const vo                    id*) [with T = unsigned char; bool T_Align16 = false; CryptoPP::AllocatorWithCle                    anup<T, T_Align16>::pointer = unsigned char*; CryptoPP::AllocatorWithCleanup<T,                     T_Align16>::size_type = unsigned int]':
../../../Extern/include/cryptopp/secblock.h:247:25:   required from 'CryptoPP::S                    ecBlock<T, A>::SecBlock(CryptoPP::SecBlock<T, A>::size_type) [with T = unsigned                     char; A = CryptoPP::AllocatorWithCleanup<unsigned char>; CryptoPP::SecBlock<T, A                    >::size_type = unsigned int]'
../../../Extern/include/cryptopp/algparam.h:17:2:   required from here
../../../Extern/include/cryptopp/secblock.h:91:14: error: 'CheckSize' was not de                    clared in this scope, and no declarations were found by argument-dependent looku                    p at the point of instantiation [-fpermissive]
   CheckSize(n);
              ^
../../../Extern/include/cryptopp/secblock.h:91:14: note: declarations in depende                    nt base 'CryptoPP::AllocatorBase<unsigned char>' are not found by unqualified lo                    okup
../../../Extern/include/cryptopp/secblock.h:91:14: note: use 'this->CheckSize' i                    nstead
../../../Extern/include/cryptopp/secblock.h: In instantiation of 'CryptoPP::Allo                    catorWithCleanup<T, T_Align16>::pointer CryptoPP::AllocatorWithCleanup<T, T_Alig                    n16>::allocate(CryptoPP::AllocatorWithCleanup<T, T_Align16>::size_type, const vo                    id*) [with T = unsigned char; bool T_Align16 = true; CryptoPP::AllocatorWithClea                    nup<T, T_Align16>::pointer = unsigned char*; CryptoPP::AllocatorWithCleanup<T, T                    _Align16>::size_type = unsigned int]':
../../../Extern/include/cryptopp/secblock.h:247:25:   required from 'CryptoPP::S                    ecBlock<T, A>::SecBlock(CryptoPP::SecBlock<T, A>::size_type) [with T = unsigned                     char; A = CryptoPP::AllocatorWithCleanup<unsigned char, true>; CryptoPP::SecBloc                    k<T, A>::size_type = unsigned int]'
../../../Extern/include/cryptopp/modes.h:63:34:   required from here
../../../Extern/include/cryptopp/secblock.h:91:14: error: 'CheckSize' was not de                    clared in this scope, and no declarations were found by argument-dependent looku                    p at the point of instantiation [-fpermissive]
../../../Extern/include/cryptopp/secblock.h:91:14: note: declarations in depende                    nt base 'CryptoPP::AllocatorBase<unsigned char>' are not found by unqualified lo                    okup
../../../Extern/include/cryptopp/secblock.h:91:14: note: use 'this->CheckSize' i                    nstead
../../../Extern/include/cryptopp/secblock.h: In instantiation of 'CryptoPP::Allo                    catorWithCleanup<T, T_Align16>::pointer CryptoPP::AllocatorWithCleanup<T, T_Alig                    n16>::allocate(CryptoPP::AllocatorWithCleanup<T, T_Align16>::size_type, const vo                    id*) [with T = unsigned int; bool T_Align16 = true; CryptoPP::AllocatorWithClean                    up<T, T_Align16>::pointer = unsigned int*; CryptoPP::AllocatorWithCleanup<T, T_A                    lign16>::size_type = unsigned int]':
../../../Extern/include/cryptopp/secblock.h:249:29:   required from 'CryptoPP::S                    ecBlock<T, A>::SecBlock(const CryptoPP::SecBlock<T, A>&) [with T = unsigned int;                     A = CryptoPP::AllocatorWithCleanup<unsigned int, true>]'
../../../Extern/include/cryptopp/modarith.h:122:20:   required from here
../../../Extern/include/cryptopp/secblock.h:91:14: error: 'CheckSize' was not de                    clared in this scope, and no declarations were found by argument-dependent looku                    p at the point of instantiation [-fpermissive]
../../../Extern/include/cryptopp/secblock.h:91:14: note: declarations in depende                    nt base 'CryptoPP::AllocatorBase<unsigned int>' are not found by unqualified loo                    kup
../../../Extern/include/cryptopp/secblock.h:91:14: note: use 'this->CheckSize' i                    nstead
../../../Extern/include/cryptopp/secblock.h: In instantiation of 'CryptoPP::Allo                    catorWithCleanup<T, T_Align16>::pointer CryptoPP::AllocatorWithCleanup<T, T_Alig                    n16>::allocate(CryptoPP::AllocatorWithCleanup<T, T_Align16>::size_type, const vo                    id*) [with T = unsigned int; bool T_Align16 = false; CryptoPP::AllocatorWithClea                    nup<T, T_Align16>::pointer = unsigned int*; CryptoPP::AllocatorWithCleanup<T, T_                    Align16>::size_type = unsigned int]':
../../../Extern/include/cryptopp/secblock.h:247:25:   required from 'CryptoPP::S                    ecBlock<T, A>::SecBlock(CryptoPP::SecBlock<T, A>::size_type) [with T = unsigned                     int; A = CryptoPP::AllocatorWithCleanup<unsigned int>; CryptoPP::SecBlock<T, A>:                    :size_type = unsigned int]'
../../../Extern/include/cryptopp/rc5.h:22:27:   required from 'CryptoPP::BlockCi                    pherFinal<DIR, BASE>::BlockCipherFinal() [with CryptoPP::CipherDir DIR = (Crypto                    PP::CipherDir)0u; BASE = CryptoPP::RC5::Enc]'
../../../Extern/include/cryptopp/misc.h:82:7:   required from 'CryptoPP::CipherM                    odeFinalTemplate_CipherHolder<CIPHER, BASE>::CipherModeFinalTemplate_CipherHolde                    r(const byte*, size_t, const byte*) [with CIPHER = CryptoPP::BlockCipherFinal<(C                    ryptoPP::CipherDir)0u, CryptoPP::RC5::Enc>; BASE = CryptoPP::ConcretePolicyHolde                    r<CryptoPP::Empty, CryptoPP::AdditiveCipherTemplate<CryptoPP::AbstractPolicyHold                    er<CryptoPP::AdditiveCipherAbstractPolicy, CryptoPP::CTR_ModePolicy> > >; byte =                     unsigned char; size_t = unsigned int]'
cipher.cpp:88:64:   required from 'CryptoPP::SymmetricCipher* BlockCipherDetail<                    T>::CreateEncoder(const byte*, size_t, const byte*) const [with T = CryptoPP::RC                    5; byte = unsigned char; size_t = unsigned int]'
cipher.cpp:398:1:   required from here
../../../Extern/include/cryptopp/secblock.h:91:14: error: 'CheckSize' was not de                    clared in this scope, and no declarations were found by argument-dependent looku                    p at the point of instantiation [-fpermissive]
../../../Extern/include/cryptopp/secblock.h:91:14: note: declarations in depende                    nt base 'CryptoPP::AllocatorBase<unsigned int>' are not found by unqualified loo                    kup
../../../Extern/include/cryptopp/secblock.h:91:14: note: use 'this->CheckSize' i                    nstead
gmake: *** [Makefile:119: OBJDIR/cipher.o] Error 1
gmake: *** Waiting for unfinished jobs....
 
Linkleri görebilmek için giriş yap veya kayıt ol.


C++:
// secblock.h - written and placed in the public domain by Wei Dai

#ifndef CRYPTOPP_SECBLOCK_H
#define CRYPTOPP_SECBLOCK_H

#include "config.h"
#include "misc.h"
#include <assert.h>

NAMESPACE_BEGIN(CryptoPP)

// ************** secure memory allocation ***************

template<class T>
class AllocatorBase
{
public:
    typedef T value_type;
    typedef size_t size_type;
#ifdef CRYPTOPP_MSVCRT6
    typedef ptrdiff_t difference_type;
#else
    typedef std::ptrdiff_t difference_type;
#endif
    typedef T * pointer;
    typedef const T * const_pointer;
    typedef T & reference;
    typedef const T & const_reference;

    pointer address(reference r) const {return (&r);}
    const_pointer address(const_reference r) const {return (&r); }
    void construct(pointer p, const T& val) {new (p) T(val);}
    void destroy(pointer p) {p->~T();}
    size_type max_size() const {return ~size_type(0)/sizeof(T);}    // switch to std::numeric_limits<T>::max later

protected:
    static void CheckSize(size_t n)
    {
        if (n > ~size_t(0) / sizeof(T))
            throw InvalidArgument("AllocatorBase: requested size would cause integer overflow");
    }
};

#define CRYPTOPP_INHERIT_ALLOCATOR_TYPES    \
typedef typename AllocatorBase<T>::value_type value_type;\
typedef typename AllocatorBase<T>::size_type size_type;\
typedef typename AllocatorBase<T>::difference_type difference_type;\
typedef typename AllocatorBase<T>::pointer pointer;\
typedef typename AllocatorBase<T>::const_pointer const_pointer;\
typedef typename AllocatorBase<T>::reference reference;\
typedef typename AllocatorBase<T>::const_reference const_reference;

#if defined(_MSC_VER) && (_MSC_VER < 1300)
// this pragma causes an internal compiler error if placed immediately before std::swap(a, b)
#pragma warning(push)
#pragma warning(disable: 4700)    // VC60 workaround: don't know how to get rid of this warning
#endif

template <class T, class A>
typename A::pointer StandardReallocate(A& a, T *p, typename A::size_type oldSize, typename A::size_type newSize, bool preserve)
{
    if (oldSize == newSize)
        return p;

    if (preserve)
    {
        typename A::pointer newPointer = a.allocate(newSize, NULL);
        memcpy_s(newPointer, sizeof(T)*newSize, p, sizeof(T)*STDMIN(oldSize, newSize));
        a.deallocate(p, oldSize);
        return newPointer;
    }
    else
    {
        a.deallocate(p, oldSize);
        return a.allocate(newSize, NULL);
    }
}

#if defined(_MSC_VER) && (_MSC_VER < 1300)
#pragma warning(pop)
#endif

template <class T, bool T_Align16 = false>
class AllocatorWithCleanup : public AllocatorBase<T>
{
public:
    CRYPTOPP_INHERIT_ALLOCATOR_TYPES

    pointer allocate(size_type n, const void * = NULL)
    {
        CheckSize(n);
        if (n == 0)
            return NULL;

#if CRYPTOPP_BOOL_ALIGN16_ENABLED
        if (T_Align16 && n*sizeof(T) >= 16)
            return (pointer)AlignedAllocate(n*sizeof(T));
#endif

        return (pointer)UnalignedAllocate(n*sizeof(T));
    }

    void deallocate(void *p, size_type n)
    {
        SecureWipeArray((pointer)p, n);

#if CRYPTOPP_BOOL_ALIGN16_ENABLED
        if (T_Align16 && n*sizeof(T) >= 16)
            return AlignedDeallocate(p);
#endif

        UnalignedDeallocate(p);
    }

    pointer reallocate(T *p, size_type oldSize, size_type newSize, bool preserve)
    {
        return StandardReallocate(*this, p, oldSize, newSize, preserve);
    }

    // VS.NET STL enforces the policy of "All STL-compliant allocators have to provide a
    // template class member called rebind".
    template <class U> struct rebind { typedef AllocatorWithCleanup<U, T_Align16> other; };
#if _MSC_VER >= 1500
    AllocatorWithCleanup() {}
    template <class U, bool A> AllocatorWithCleanup(const AllocatorWithCleanup<U, A> &) {}
#endif
};

CRYPTOPP_DLL_TEMPLATE_CLASS AllocatorWithCleanup<byte>;
CRYPTOPP_DLL_TEMPLATE_CLASS AllocatorWithCleanup<word16>;
CRYPTOPP_DLL_TEMPLATE_CLASS AllocatorWithCleanup<word32>;
CRYPTOPP_DLL_TEMPLATE_CLASS AllocatorWithCleanup<word64>;
#if CRYPTOPP_BOOL_X86
CRYPTOPP_DLL_TEMPLATE_CLASS AllocatorWithCleanup<word, true>;    // for Integer
#endif

template <class T>
class NullAllocator : public AllocatorBase<T>
{
public:
    CRYPTOPP_INHERIT_ALLOCATOR_TYPES

    pointer allocate(size_type n, const void * = NULL)
    {
        assert(false);
        return NULL;
    }

    void deallocate(void *p, size_type n)
    {
        assert(false);
    }

    size_type max_size() const {return 0;}
};

// This allocator can't be used with standard collections because
// they require that all objects of the same allocator type are equivalent.
// So this is for use with SecBlock only.
template <class T, size_t S, class A = NullAllocator<T>, bool T_Align16 = false>
class FixedSizeAllocatorWithCleanup : public AllocatorBase<T>
{
public:
    CRYPTOPP_INHERIT_ALLOCATOR_TYPES

    FixedSizeAllocatorWithCleanup() : m_allocated(false) {}

    pointer allocate(size_type n)
    {
        assert(IsAlignedOn(m_array, 8));

        if (n <= S && !m_allocated)
        {
            m_allocated = true;
            return GetAlignedArray();
        }
        else
            return m_fallbackAllocator.allocate(n);
    }

    pointer allocate(size_type n, const void *hint)
    {
        if (n <= S && !m_allocated)
        {
            m_allocated = true;
            return GetAlignedArray();
        }
        else
            return m_fallbackAllocator.allocate(n, hint);
    }

    void deallocate(void *p, size_type n)
    {
        if (p == GetAlignedArray())
        {
            assert(n <= S);
            assert(m_allocated);
            m_allocated = false;
            SecureWipeArray((pointer)p, n);
        }
        else
            m_fallbackAllocator.deallocate(p, n);
    }

    pointer reallocate(pointer p, size_type oldSize, size_type newSize, bool preserve)
    {
        if (p == GetAlignedArray() && newSize <= S)
        {
            assert(oldSize <= S);
            if (oldSize > newSize)
                SecureWipeArray(p+newSize, oldSize-newSize);
            return p;
        }

        pointer newPointer = allocate(newSize, NULL);
        if (preserve)
            memcpy(newPointer, p, sizeof(T)*STDMIN(oldSize, newSize));
        deallocate(p, oldSize);
        return newPointer;
    }

    size_type max_size() const {return STDMAX(m_fallbackAllocator.max_size(), S);}

private:
#ifdef __BORLANDC__
    T* GetAlignedArray() {return m_array;}
    T m_array[S];
#else
    T* GetAlignedArray() {return (CRYPTOPP_BOOL_ALIGN16_ENABLED && T_Align16) ? (T*)(((byte *)m_array) + (0-(size_t)m_array)%16) : m_array;}
    CRYPTOPP_ALIGN_DATA(8) T m_array[(CRYPTOPP_BOOL_ALIGN16_ENABLED && T_Align16) ? S+8/sizeof(T) : S];
#endif
    A m_fallbackAllocator;
    bool m_allocated;
};

//! a block of memory allocated using A
template <class T, class A = AllocatorWithCleanup<T> >
class SecBlock
{
public:
    typedef typename A::value_type value_type;
    typedef typename A::pointer iterator;
    typedef typename A::const_pointer const_iterator;
    typedef typename A::size_type size_type;

    explicit SecBlock(size_type size=0)
        : m_size(size) {m_ptr = m_alloc.allocate(size, NULL);}
    SecBlock(const SecBlock<T, A> &t)
        : m_size(t.m_size) {m_ptr = m_alloc.allocate(m_size, NULL); memcpy_s(m_ptr, m_size*sizeof(T), t.m_ptr, m_size*sizeof(T));}
    SecBlock(const T *t, size_type len)
        : m_size(len)
    {
        m_ptr = m_alloc.allocate(len, NULL);
        if (t == NULL)
            memset_z(m_ptr, 0, len*sizeof(T));
        else
            memcpy(m_ptr, t, len*sizeof(T));
    }

    ~SecBlock()
        {m_alloc.deallocate(m_ptr, m_size);}

#ifdef __BORLANDC__
    operator T *() const
        {return (T*)m_ptr;}
#else
    operator const void *() const
        {return m_ptr;}
    operator void *()
        {return m_ptr;}

    operator const T *() const
        {return m_ptr;}
    operator T *()
        {return m_ptr;}
#endif

//    T *operator +(size_type offset)
//        {return m_ptr+offset;}

//    const T *operator +(size_type offset) const
//        {return m_ptr+offset;}

//    T& operator[](size_type index)
//        {assert(index >= 0 && index < m_size); return m_ptr[index];}

//    const T& operator[](size_type index) const
//        {assert(index >= 0 && index < m_size); return m_ptr[index];}

    iterator begin()
        {return m_ptr;}
    const_iterator begin() const
        {return m_ptr;}
    iterator end()
        {return m_ptr+m_size;}
    const_iterator end() const
        {return m_ptr+m_size;}

    typename A::pointer data() {return m_ptr;}
    typename A::const_pointer data() const {return m_ptr;}

    size_type size() const {return m_size;}
    bool empty() const {return m_size == 0;}

    byte * BytePtr() {return (byte *)m_ptr;}
    const byte * BytePtr() const {return (const byte *)m_ptr;}
    size_type SizeInBytes() const {return m_size*sizeof(T);}

    //! set contents and size
    void Assign(const T *t, size_type len)
    {
        New(len);
        memcpy_s(m_ptr, m_size*sizeof(T), t, len*sizeof(T));
    }

    //! copy contents and size from another SecBlock
    void Assign(const SecBlock<T, A> &t)
    {
        if (this != &t)
        {
            New(t.m_size);
            memcpy_s(m_ptr, m_size*sizeof(T), t.m_ptr, m_size*sizeof(T));
        }
    }

    SecBlock<T, A>& operator=(const SecBlock<T, A> &t)
    {
        Assign(t);
        return *this;
    }

    // append to this object
    SecBlock<T, A>& operator+=(const SecBlock<T, A> &t)
    {
        size_type oldSize = m_size;
        Grow(m_size+t.m_size);
        memcpy_s(m_ptr+oldSize, m_size*sizeof(T), t.m_ptr, t.m_size*sizeof(T));
        return *this;
    }

    // append operator
    SecBlock<T, A> operator+(const SecBlock<T, A> &t)
    {
        SecBlock<T, A> result(m_size+t.m_size);
        memcpy_s(result.m_ptr, result.m_size*sizeof(T), m_ptr, m_size*sizeof(T));
        memcpy_s(result.m_ptr+m_size, t.m_size*sizeof(T), t.m_ptr, t.m_size*sizeof(T));
        return result;
    }

    bool operator==(const SecBlock<T, A> &t) const
    {
        return m_size == t.m_size && VerifyBufsEqual(m_ptr, t.m_ptr, m_size*sizeof(T));
    }

    bool operator!=(const SecBlock<T, A> &t) const
    {
        return !operator==(t);
    }

    //! change size, without preserving contents
    void New(size_type newSize)
    {
        m_ptr = m_alloc.reallocate(m_ptr, m_size, newSize, false);
        m_size = newSize;
    }

    //! change size and set contents to 0
    void CleanNew(size_type newSize)
    {
        New(newSize);
        memset_z(m_ptr, 0, m_size*sizeof(T));
    }

    //! change size only if newSize > current size. contents are preserved
    void Grow(size_type newSize)
    {
        if (newSize > m_size)
        {
            m_ptr = m_alloc.reallocate(m_ptr, m_size, newSize, true);
            m_size = newSize;
        }
    }

    //! change size only if newSize > current size. contents are preserved and additional area is set to 0
    void CleanGrow(size_type newSize)
    {
        if (newSize > m_size)
        {
            m_ptr = m_alloc.reallocate(m_ptr, m_size, newSize, true);
            memset(m_ptr+m_size, 0, (newSize-m_size)*sizeof(T));
            m_size = newSize;
        }
    }

    //! change size and preserve contents
    void resize(size_type newSize)
    {
        m_ptr = m_alloc.reallocate(m_ptr, m_size, newSize, true);
        m_size = newSize;
    }

    //! swap contents and size with another SecBlock
    void swap(SecBlock<T, A> &b)
    {
        std::swap(m_alloc, b.m_alloc);
        std::swap(m_size, b.m_size);
        std::swap(m_ptr, b.m_ptr);
    }

//private:
    A m_alloc;
    size_type m_size;
    T *m_ptr;
};

typedef SecBlock<byte> SecByteBlock;
typedef SecBlock<byte, AllocatorWithCleanup<byte, true> > AlignedSecByteBlock;
typedef SecBlock<word> SecWordBlock;

//! a SecBlock with fixed size, allocated statically
template <class T, unsigned int S, class A = FixedSizeAllocatorWithCleanup<T, S> >
class FixedSizeSecBlock : public SecBlock<T, A>
{
public:
    explicit FixedSizeSecBlock() : SecBlock<T, A>(S) {}
};

template <class T, unsigned int S, bool T_Align16 = true>
class FixedSizeAlignedSecBlock : public FixedSizeSecBlock<T, S, FixedSizeAllocatorWithCleanup<T, S, NullAllocator<T>, T_Align16> >
{
};

//! a SecBlock that preallocates size S statically, and uses the heap when this size is exceeded
template <class T, unsigned int S, class A = FixedSizeAllocatorWithCleanup<T, S, AllocatorWithCleanup<T> > >
class SecBlockWithHint : public SecBlock<T, A>
{
public:
    explicit SecBlockWithHint(size_t size) : SecBlock<T, A>(size) {}
};

template<class T, bool A, class U, bool B>
inline bool operator==(const CryptoPP::AllocatorWithCleanup<T, A>&, const CryptoPP::AllocatorWithCleanup<U, B>&) {return (true);}
template<class T, bool A, class U, bool B>
inline bool operator!=(const CryptoPP::AllocatorWithCleanup<T, A>&, const CryptoPP::AllocatorWithCleanup<U, B>&) {return (false);}

NAMESPACE_END

NAMESPACE_BEGIN(std)
template <class T, class A>
inline void swap(CryptoPP::SecBlock<T, A> &a, CryptoPP::SecBlock<T, A> &b)
{
    a.swap(b);
}

#if defined(_STLP_DONT_SUPPORT_REBIND_MEMBER_TEMPLATE) || (defined(_STLPORT_VERSION) && !defined(_STLP_MEMBER_TEMPLATE_CLASSES))
// working for STLport 5.1.3 and MSVC 6 SP5
template <class _Tp1, class _Tp2>
inline CryptoPP::AllocatorWithCleanup<_Tp2>&
__stl_alloc_rebind(CryptoPP::AllocatorWithCleanup<_Tp1>& __a, const _Tp2*)
{
    return (CryptoPP::AllocatorWithCleanup<_Tp2>&)(__a);
}
#endif

NAMESPACE_END

#endif
 
Linkleri görebilmek için giriş yap veya kayıt ol.

dene bakalım çözüldü mü

C++:
Paste2
Create Paste
Followup Paste
QR
// secblock.h - written and placed in the public domain by Wei Dai

#ifndef CRYPTOPP_SECBLOCK_H
#define CRYPTOPP_SECBLOCK_H

#include "config.h"
#include "misc.h"
#include <assert.h>

NAMESPACE_BEGIN(CryptoPP)

// ************** secure memory allocation ***************

template<class T>
class AllocatorBase
{
public:
    typedef T value_type;
    typedef size_t size_type;
#ifdef CRYPTOPP_MSVCRT6
    typedef ptrdiff_t difference_type;
#else
    typedef std::ptrdiff_t difference_type;
#endif
    typedef T * pointer;
    typedef const T * const_pointer;
    typedef T & reference;
    typedef const T & const_reference;

    pointer address(reference r) const {return (&r);}
    const_pointer address(const_reference r) const {return (&r); }
    void construct(pointer p, const T& val) {new (p) T(val);}
    void destroy(pointer p) {p->~T();}
    size_type max_size() const {return ~size_type(0)/sizeof(T);}    // switch to std::numeric_limits<T>::max later

protected:
    static void CheckSize(size_t n)
    {
        if (n > ~size_t(0) / sizeof(T))
            throw InvalidArgument("AllocatorBase: requested size would cause integer overflow");
    }
};

#define CRYPTOPP_INHERIT_ALLOCATOR_TYPES    \
typedef typename AllocatorBase<T>::value_type value_type;\
typedef typename AllocatorBase<T>::size_type size_type;\
typedef typename AllocatorBase<T>::difference_type difference_type;\
typedef typename AllocatorBase<T>::pointer pointer;\
typedef typename AllocatorBase<T>::const_pointer const_pointer;\
typedef typename AllocatorBase<T>::reference reference;\
typedef typename AllocatorBase<T>::const_reference const_reference;

#if defined(_MSC_VER) && (_MSC_VER < 1300)
// this pragma causes an internal compiler error if placed immediately before std::swap(a, b)
#pragma warning(push)
#pragma warning(disable: 4700)    // VC60 workaround: don't know how to get rid of this warning
#endif

template <class T, class A>
typename A::pointer StandardReallocate(A& a, T *p, typename A::size_type oldSize, typename A::size_type newSize, bool preserve)
{
    if (oldSize == newSize)
        return p;

    if (preserve)
    {
        typename A::pointer newPointer = a.allocate(newSize, NULL);
        memcpy_s(newPointer, sizeof(T)*newSize, p, sizeof(T)*STDMIN(oldSize, newSize));
        a.deallocate(p, oldSize);
        return newPointer;
    }
    else
    {
        a.deallocate(p, oldSize);
        return a.allocate(newSize, NULL);
    }
}

#if defined(_MSC_VER) && (_MSC_VER < 1300)
#pragma warning(pop)
#endif

template <class T, bool T_Align16 = false>
class AllocatorWithCleanup : public AllocatorBase<T>
{
public:
    CRYPTOPP_INHERIT_ALLOCATOR_TYPES

    pointer allocate(size_type n, const void * = NULL)
    {
        this->CheckSize(n);
        if (n == 0)
            return NULL;

#if CRYPTOPP_BOOL_ALIGN16_ENABLED
        if (T_Align16 && n*sizeof(T) >= 16)
            return (pointer)AlignedAllocate(n*sizeof(T));
#endif

        return (pointer)UnalignedAllocate(n*sizeof(T));
    }

    void deallocate(void *p, size_type n)
    {
        SecureWipeArray((pointer)p, n);

#if CRYPTOPP_BOOL_ALIGN16_ENABLED
        if (T_Align16 && n*sizeof(T) >= 16)
            return AlignedDeallocate(p);
#endif

        UnalignedDeallocate(p);
    }

    pointer reallocate(T *p, size_type oldSize, size_type newSize, bool preserve)
    {
        return StandardReallocate(*this, p, oldSize, newSize, preserve);
    }

    // VS.NET STL enforces the policy of "All STL-compliant allocators have to provide a
    // template class member called rebind".
    template <class U> struct rebind { typedef AllocatorWithCleanup<U, T_Align16> other; };
#if _MSC_VER >= 1500
    AllocatorWithCleanup() {}
    template <class U, bool A> AllocatorWithCleanup(const AllocatorWithCleanup<U, A> &) {}
#endif
};

CRYPTOPP_DLL_TEMPLATE_CLASS AllocatorWithCleanup<byte>;
CRYPTOPP_DLL_TEMPLATE_CLASS AllocatorWithCleanup<word16>;
CRYPTOPP_DLL_TEMPLATE_CLASS AllocatorWithCleanup<word32>;
CRYPTOPP_DLL_TEMPLATE_CLASS AllocatorWithCleanup<word64>;
#if CRYPTOPP_BOOL_X86
CRYPTOPP_DLL_TEMPLATE_CLASS AllocatorWithCleanup<word, true>;    // for Integer
#endif

template <class T>
class NullAllocator : public AllocatorBase<T>
{
public:
    CRYPTOPP_INHERIT_ALLOCATOR_TYPES

    pointer allocate(size_type n, const void * = NULL)
    {
        assert(false);
        return NULL;
    }

    void deallocate(void *p, size_type n)
    {
        assert(false);
    }

    size_type max_size() const {return 0;}
};

// This allocator can't be used with standard collections because
// they require that all objects of the same allocator type are equivalent.
// So this is for use with SecBlock only.
template <class T, size_t S, class A = NullAllocator<T>, bool T_Align16 = false>
class FixedSizeAllocatorWithCleanup : public AllocatorBase<T>
{
public:
    CRYPTOPP_INHERIT_ALLOCATOR_TYPES

    FixedSizeAllocatorWithCleanup() : m_allocated(false) {}

    pointer allocate(size_type n)
    {
        assert(IsAlignedOn(m_array, 8));

        if (n <= S && !m_allocated)
        {
            m_allocated = true;
            return GetAlignedArray();
        }
        else
            return m_fallbackAllocator.allocate(n);
    }

    pointer allocate(size_type n, const void *hint)
    {
        if (n <= S && !m_allocated)
        {
            m_allocated = true;
            return GetAlignedArray();
        }
        else
            return m_fallbackAllocator.allocate(n, hint);
    }

    void deallocate(void *p, size_type n)
    {
        if (p == GetAlignedArray())
        {
            assert(n <= S);
            assert(m_allocated);
            m_allocated = false;
            SecureWipeArray((pointer)p, n);
        }
        else
            m_fallbackAllocator.deallocate(p, n);
    }

    pointer reallocate(pointer p, size_type oldSize, size_type newSize, bool preserve)
    {
        if (p == GetAlignedArray() && newSize <= S)
        {
            assert(oldSize <= S);
            if (oldSize > newSize)
                SecureWipeArray(p+newSize, oldSize-newSize);
            return p;
        }

        pointer newPointer = allocate(newSize, NULL);
        if (preserve)
            memcpy(newPointer, p, sizeof(T)*STDMIN(oldSize, newSize));
        deallocate(p, oldSize);
        return newPointer;
    }

    size_type max_size() const {return STDMAX(m_fallbackAllocator.max_size(), S);}

private:
#ifdef __BORLANDC__
    T* GetAlignedArray() {return m_array;}
    T m_array[S];
#else
    T* GetAlignedArray() {return (CRYPTOPP_BOOL_ALIGN16_ENABLED && T_Align16) ? (T*)(((byte *)m_array) + (0-(size_t)m_array)%16) : m_array;}
    CRYPTOPP_ALIGN_DATA(8) T m_array[(CRYPTOPP_BOOL_ALIGN16_ENABLED && T_Align16) ? S+8/sizeof(T) : S];
#endif
    A m_fallbackAllocator;
    bool m_allocated;
};

//! a block of memory allocated using A
template <class T, class A = AllocatorWithCleanup<T> >
class SecBlock
{
public:
    typedef typename A::value_type value_type;
    typedef typename A::pointer iterator;
    typedef typename A::const_pointer const_iterator;
    typedef typename A::size_type size_type;

    explicit SecBlock(size_type size=0)
        : m_size(size) {m_ptr = m_alloc.allocate(size, NULL);}
    SecBlock(const SecBlock<T, A> &t)
        : m_size(t.m_size) {m_ptr = m_alloc.allocate(m_size, NULL); memcpy_s(m_ptr, m_size*sizeof(T), t.m_ptr, m_size*sizeof(T));}
    SecBlock(const T *t, size_type len)
        : m_size(len)
    {
        m_ptr = m_alloc.allocate(len, NULL);
        if (t == NULL)
            memset_z(m_ptr, 0, len*sizeof(T));
        else
            memcpy(m_ptr, t, len*sizeof(T));
    }

    ~SecBlock()
        {m_alloc.deallocate(m_ptr, m_size);}

#ifdef __BORLANDC__
    operator T *() const
        {return (T*)m_ptr;}
#else
    operator const void *() const
        {return m_ptr;}
    operator void *()
        {return m_ptr;}

    operator const T *() const
        {return m_ptr;}
    operator T *()
        {return m_ptr;}
#endif

//    T *operator +(size_type offset)
//        {return m_ptr+offset;}

//    const T *operator +(size_type offset) const
//        {return m_ptr+offset;}

//    T& operator[](size_type index)
//        {assert(index >= 0 && index < m_size); return m_ptr[index];}

//    const T& operator[](size_type index) const
//        {assert(index >= 0 && index < m_size); return m_ptr[index];}

    iterator begin()
        {return m_ptr;}
    const_iterator begin() const
        {return m_ptr;}
    iterator end()
        {return m_ptr+m_size;}
    const_iterator end() const
        {return m_ptr+m_size;}

    typename A::pointer data() {return m_ptr;}
    typename A::const_pointer data() const {return m_ptr;}

    size_type size() const {return m_size;}
    bool empty() const {return m_size == 0;}

    byte * BytePtr() {return (byte *)m_ptr;}
    const byte * BytePtr() const {return (const byte *)m_ptr;}
    size_type SizeInBytes() const {return m_size*sizeof(T);}

    //! set contents and size
    void Assign(const T *t, size_type len)
    {
        New(len);
        memcpy_s(m_ptr, m_size*sizeof(T), t, len*sizeof(T));
    }

    //! copy contents and size from another SecBlock
    void Assign(const SecBlock<T, A> &t)
    {
        if (this != &t)
        {
            New(t.m_size);
            memcpy_s(m_ptr, m_size*sizeof(T), t.m_ptr, m_size*sizeof(T));
        }
    }

    SecBlock<T, A>& operator=(const SecBlock<T, A> &t)
    {
        Assign(t);
        return *this;
    }

    // append to this object
    SecBlock<T, A>& operator+=(const SecBlock<T, A> &t)
    {
        size_type oldSize = m_size;
        Grow(m_size+t.m_size);
        memcpy_s(m_ptr+oldSize, m_size*sizeof(T), t.m_ptr, t.m_size*sizeof(T));
        return *this;
    }

    // append operator
    SecBlock<T, A> operator+(const SecBlock<T, A> &t)
    {
        SecBlock<T, A> result(m_size+t.m_size);
        memcpy_s(result.m_ptr, result.m_size*sizeof(T), m_ptr, m_size*sizeof(T));
        memcpy_s(result.m_ptr+m_size, t.m_size*sizeof(T), t.m_ptr, t.m_size*sizeof(T));
        return result;
    }

    bool operator==(const SecBlock<T, A> &t) const
    {
        return m_size == t.m_size && VerifyBufsEqual(m_ptr, t.m_ptr, m_size*sizeof(T));
    }

    bool operator!=(const SecBlock<T, A> &t) const
    {
        return !operator==(t);
    }

    //! change size, without preserving contents
    void New(size_type newSize)
    {
        m_ptr = m_alloc.reallocate(m_ptr, m_size, newSize, false);
        m_size = newSize;
    }

    //! change size and set contents to 0
    void CleanNew(size_type newSize)
    {
        New(newSize);
        memset_z(m_ptr, 0, m_size*sizeof(T));
    }

    //! change size only if newSize > current size. contents are preserved
    void Grow(size_type newSize)
    {
        if (newSize > m_size)
        {
            m_ptr = m_alloc.reallocate(m_ptr, m_size, newSize, true);
            m_size = newSize;
        }
    }

    //! change size only if newSize > current size. contents are preserved and additional area is set to 0
    void CleanGrow(size_type newSize)
    {
        if (newSize > m_size)
        {
            m_ptr = m_alloc.reallocate(m_ptr, m_size, newSize, true);
            memset(m_ptr+m_size, 0, (newSize-m_size)*sizeof(T));
            m_size = newSize;
        }
    }

    //! change size and preserve contents
    void resize(size_type newSize)
    {
        m_ptr = m_alloc.reallocate(m_ptr, m_size, newSize, true);
        m_size = newSize;
    }

    //! swap contents and size with another SecBlock
    void swap(SecBlock<T, A> &b)
    {
        std::swap(m_alloc, b.m_alloc);
        std::swap(m_size, b.m_size);
        std::swap(m_ptr, b.m_ptr);
    }

//private:
    A m_alloc;
    size_type m_size;
    T *m_ptr;
};

typedef SecBlock<byte> SecByteBlock;
typedef SecBlock<byte, AllocatorWithCleanup<byte, true> > AlignedSecByteBlock;
typedef SecBlock<word> SecWordBlock;

//! a SecBlock with fixed size, allocated statically
template <class T, unsigned int S, class A = FixedSizeAllocatorWithCleanup<T, S> >
class FixedSizeSecBlock : public SecBlock<T, A>
{
public:
    explicit FixedSizeSecBlock() : SecBlock<T, A>(S) {}
};

template <class T, unsigned int S, bool T_Align16 = true>
class FixedSizeAlignedSecBlock : public FixedSizeSecBlock<T, S, FixedSizeAllocatorWithCleanup<T, S, NullAllocator<T>, T_Align16> >
{
};

//! a SecBlock that preallocates size S statically, and uses the heap when this size is exceeded
template <class T, unsigned int S, class A = FixedSizeAllocatorWithCleanup<T, S, AllocatorWithCleanup<T> > >
class SecBlockWithHint : public SecBlock<T, A>
{
public:
    explicit SecBlockWithHint(size_t size) : SecBlock<T, A>(size) {}
};

template<class T, bool A, class U, bool B>
inline bool operator==(const CryptoPP::AllocatorWithCleanup<T, A>&, const CryptoPP::AllocatorWithCleanup<U, B>&) {return (true);}
template<class T, bool A, class U, bool B>
inline bool operator!=(const CryptoPP::AllocatorWithCleanup<T, A>&, const CryptoPP::AllocatorWithCleanup<U, B>&) {return (false);}

NAMESPACE_END

NAMESPACE_BEGIN(std)
template <class T, class A>
inline void swap(CryptoPP::SecBlock<T, A> &a, CryptoPP::SecBlock<T, A> &b)
{
    a.swap(b);
}

#if defined(_STLP_DONT_SUPPORT_REBIND_MEMBER_TEMPLATE) || (defined(_STLPORT_VERSION) && !defined(_STLP_MEMBER_TEMPLATE_CLASSES))
// working for STLport 5.1.3 and MSVC 6 SP5
template <class _Tp1, class _Tp2>
inline CryptoPP::AllocatorWithCleanup<_Tp2>&
__stl_alloc_rebind(CryptoPP::AllocatorWithCleanup<_Tp1>& __a, const _Tp2*)
{
    return (CryptoPP::AllocatorWithCleanup<_Tp2>&)(__a);
}
#endif

NAMESPACE_END

#endif


© 2006 - 2020 Paste2.org.
Follow paste2.org on Twitter
 
game'i önceki game konumuna attım fakat kanalları açarken ;
Kod:
GIRISLER ACILIYOR ..
ld-elf.so.1: /usr/local/lib/compat/libstdc++.so.6: version GLIBCXX_3.4.10 required by /usr/game/share/game not found

KANAL1 ACILIYOR ..
ld-elf.so.1: /usr/local/lib/compat/libstdc++.so.6: version GLIBCXX_3.4.10 required by /usr/game/share/game not found

GAME99 ACILIYOR ..
ld-elf.so.1: /usr/local/lib/compat/libstdc++.so.6: version GLIBCXX_3.4.10 required by /usr/game/share/game not found
hatası alıyorum. Girişleri açamıyor. Dosya izinleri 777. Birde eski game dosyası 66mb'ken yeni oluşan game 41.5mb.
 
Geri
Üst